9/3/2010 12:31:15 AM
Title:
Disabling the itemEditors for a specific row
Hi All,
I have a special need in my DataGrid. On the click of Delete which is present as a column in the DataGrid. The whole row is marked as Deleted.
Now my requirement is that when the whole row is marked deleted. The itemEditors for all the cells in that particular row should be disabled.
Please let me know, how to get it done.
Thanks in advance. :)
Davis
Points: 740
Posts:0
9/3/2010 4:28:42 AM
datagrid in flex does not allow us to disable rows. See this article to implement this functionality
http://enginyoyen.com/blog/eng/disabling-certain-rows-in-data-grid/
9/3/2010 4:52:18 AM
Thanks Davis,
As per my question i was expecting the itemEditors to be disabled.
Now i have achieved the same by using itemEditBeginning event.
Inside the event handler, i am first of all checking that if the row is deleted or not. This was set into the data inside the itemRenderer for the Delete column. And based on that i am calling event.preventDefault() which will stop the editing.
Shawn
Points: 680
Posts:0
9/3/2010 6:38:36 AM
@byte_head good and simple solution, well done