I'm currently trying to validate a record in an AJAX Datagrid, for both editing and creation. I can easily do this in the code-behind (say, in the ItemCommand function), but I'm looking for a way to do this in JavaScript (to avoid an unnecessary postback). For example, lets say I have a grid with three columns. And for each record update / creation, if the second column is empty, the third one needs to be populated. I shouldn't have to post-back just to validate that these fields are populated.
Is there a clientside event I can subscribe to so that, prior to the page is being posted-back, I can do my validation and approve/cancel?
Much thanks in advance.
-J
Is there a clientside event I can subscribe to so that, prior to the page is being posted-back, I can do my validation and approve/cancel?
Much thanks in advance.
-J