Hi,
How can I allow row adding in a webdatagrid only after the user clicks on a certain button; ideally if he clicks on an icon on the 1st row itself.
I mean, is it possible to make the row adding row disabled and put an icon on its selector, so the user can t enter values at first, but after he clicks on that icon, he can enter values and add the row later after clicking save.
if not pissible, can I enable adding a row , only on demand through some client script if user clicks a button somewhere on the page ?
Thank u :)
Hi rtutus,
It is not possible to enable and disable the row adding behavior on the client. However you could probably manage to do this. To put an image or something in the add row row selector, you could use the css class available for that. Then you would want to attach a client click handler to the row selector. In this click event, you could set a global boolean java script variable to true. In the row adding entering edit mode client event, you would need to cancel it if that var had not been set to true. As I mentioned in your other post, it is not truly possible to add the row on the client by default. But you could cancel row adding and do what I said in that post or you could simply keep the values in the add row until you commit on the click of the other save button.
regards,David Young
Can I enable that on code behind ??
also regarding this:
" or you could simply keep the values in the add row until you commit on the click of the other save button."
When I commit the editing core property on the client, then once I access the grid rows on the server code behind, I can't find the newly added row values ??
Is this normal (may be according to ur other post ? )
Thanks David :)