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

Confirm dialog on insert/update in RADGrid Hierarchy

3 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PV
Top achievements
Rank 1
PV asked on 25 Mar 2010, 10:51 AM
Hello Team,

I need to provide a Confirm dialog to proceed by check some validations of Parent and Detail table controls.

1. How do I get the values of Child edit form control on client side?
2. I have written onclientclick event on update button, but the post back happens though it returns false.... I had set causes validation property to true?
3. Finally I am planning to write on server side validation to check for parent item value and detail table edit form control. Which event needs to be handled in this case. I shud show confirm dialog on validation. How do I achieve this?

Please provide me pointers.

Reg
Prema

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 30 Mar 2010, 03:05 PM
Hi Prema,

I recommend you go through the following code library submission link which demonstrates how to access Grid Template Controls on the client side.
Accessing server controls in a grid template on the client

Additionally, you can also examine the code library below:
Retrieving grid editor value client side

For your next question - I suggest you refer to Flexible Server-side Validation example which demonstrates the flexible server-side validation mechanism of the Telerik RadGrid edit form.

Best wishes,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
PV
Top achievements
Rank 1
answered on 31 Mar 2010, 10:42 AM
Hello Team,

thank you for response.

I tried doing it and I had captured the edit form control values on client side in javascript.

The method is called in update button of edit form.
Thought the OnclientClick event returns false, it is getting postback.

I have set validationsettings-enablevalidation to true.

Am i missing anything?

Prema
0
Pavlina
Telerik team
answered on 02 Apr 2010, 02:33 PM
Hi Prema,

Could you post your aspx, ascx and code-behind. Thus we could understand the logic of your application and advise you further. Please, use the Code Formatter tool of the html editor.

I'd also suggest that you open up a support ticket and send us a test project that we can run our side and get back to your with more information.

Greetings,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
PV
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
PV
Top achievements
Rank 1
Share this question
or