0

i have an array list of data which i am showing in spark data grid.

once i select an idem and click on a button that i have linked with datagrid it adds a panel on screen. I want to disable this selection i-e to tell that this item panel have already been added. Any ideas how can i do that?

best Regards

Muhammad Umar
  • 11,391
  • 21
  • 91
  • 193

2 Answers2

0

I think there's a .disable() function on datagrids, or you can use return false; so that it won't proceed.

PinoyStackOverflower
  • 5,214
  • 18
  • 63
  • 126
0

Try this.contains(child:DisplayObject) It Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. The search includes the entire display list including this DisplayObjectContainer instance. Grandchildren, great-grandchildren, and so on each return true.

Santhosh Nayak
  • 2,312
  • 3
  • 35
  • 65