PDA

View Full Version : XMLDataModel...Adding row dynamically



booshan
27 Mar 2007, 10:36 AM
Hello List,

I am using XMLDataModel for the grid. I need to add rows dynamically and currently I am able to do only by adding the labels as JSON object. While doing so, I am losing the id of the row and unable to perform edit on that row.

Is there any way to add XML row data itself dynamically in the XMLDataModel?

For example, while loading initially, I am using the following model


<users>
<user>
<id>1</id> //used by the render to show edit link
...other fields
</user>
</users


But while adding the row I am not able to provide id, as I can only provide labels for that row. Appreciate your help!

Thanks in advance
Booshan