action script

operation like update delete using check box in action script

Page 1 of 1

1 Replies - 831 Views - Last Post: 09 December 2009 - 08:53 AM

#1 Priyanka2286  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-December 09

action script

Post icon  Posted 08 December 2009 - 10:36 PM

operation like update delete using check box in action script
			  var item:Object=datagrid.selectedItems;
			   var idx:int=dataGridProvider.getItemIndex(item);
			   
			   
				if(datagrid.selectedIndex>=0)//selectCheckBox.selected)//if(datagrid selected index is greater than or equal to 0)
				{
					//Remove the task record from the Data Grid data provider
					dataGridProvider.removeItemAt(idx);	
 
				}
				
				
				
			}


Mod edit - Please :code:

Is This A Good Question/Topic? 0
  • +

Replies To: action script

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1133
  • View blog
  • Posts: 7,090
  • Joined: 07-September 06

Re: action script

Posted 09 December 2009 - 08:53 AM

What is it that you are trying to do? Delete things based on a checkbox being checked or not?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1