This is a migrated thread and some comments may be shown as answers.

Rad Grid Insert/Update Command not Firing After disabeling validation from javascript

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nisha
Top achievements
Rank 1
Nisha asked on 11 Nov 2011, 08:58 AM

Hello,

I have used rad grid with insert , update option using edit form template.While Add/Edit time Depending on Radio Button Selection I need to Enable , Disable Validation. I have putted java script for show hide panels and enable , disable validation for radio button selection.  Insert , Update option works perfect when validation are enable but when i am selecting radio button option which is disabling my validation then by clicking on Insert , Update button my insertcommand and updatecommand are not working. By clicking on insert or update button it direct comes to itemcommand event not on insert or update command.

I have debug javascript there is no issue in java script. page is getting postback and rather than insert or update command it comes to item data bound and item command.

Any Idea why rad grid insert , update command not working after disabling validation?

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 15 Nov 2011, 05:28 PM
Hello Nisha,

 Can you specify whether you use some custom client-side validation, or the built-in ASP.NET Validators? Additionally you can check the name of the command that is coming in the ItemCommand event (e.CommandName). If it is "Update" or "PerformInsert" then it should have fired the Update/InsertCommand events. If the problem persists I will appreciate if you could post the aspx page with any related code for validation.

Best wishes,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Nisha
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or