How do you get/set values from RowEditTemplate during onTemplateClosed client event using javascript? can someone share code with me? Thanks!
Thanks!!! I appreciiate your help!
Hi,
For future reference, a lot of these answers can be found in the documentation. This is something available off of the event args. args.get_saveChanges() It is true if it is going to save the changes to the row (ok was clicked) and false otherwise.
-Dave
Thanks...
Another question...how can I tell if the 'Ok' or 'Cancel' button is clicked?
Off the event args of the event, there should be a cancel method.
args.set_cancel(true);
As for focusing. You already have the dom element or javascript object. If it is an html element, just elem.focus() should do it. If its an object, there is probably a focus() method of some sort that you can call. Or just find an element that's part of the object and focus that.
A couple more questions, how do you keep the RowEditTemplate from closing and assign focus to a field that's in error?
Thanks!