header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Byte_Head
Points:50
Posts:0
Answered

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. :)



1
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/

2
Byte_Head
Points: 50
Posts:0
Accepted Answer
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.

3
Shawn
Points: 680
Posts:0
9/3/2010 6:38:36 AM



@byte_head good and simple solution, well done

4
Byte_Head
Points: 50
Posts:0
9/3/2010 11:17:26 PM



Thanks Shawn.. :)


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions