Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Balaji Mani on Nov 18, 2008 04:34
open dhtmlx forum
How to check wheather a row is active or deleted

I have a dhtmlXGrid and the user loads the data through an interface.
I add a row to the grid as the user clicks a button. During validation I check for duplications against the grid.
The validation also includes the deleted rows ( striked-out rows ) and there arises a situvation where the user can't enter a valid data (deleted data again) because of the validation.
I wish to know wheather we have a way to check wheather a row is deleted or active, so that i can neglect deleted rows during validation.
Thanks in advance.
Answer posted by Support on Nov 18, 2008 05:11
>>I wish to know wheather we have a way to check wheather a row is deleted or active
You can check row's userdata as
       if (mygrid.getUserData(id,"!nativeeditor_status")=="deleted") alert("row already deleted");