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

Need to Submit a form which contains Webforms and Telegrik Grid

2 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pranav
Top achievements
Rank 1
Pranav asked on 06 Dec 2008, 06:18 AM
Hi, 

need a quick help!

My form strcuture is :

<< Some Fields like Name, Address etc>>
<<Telerik Grid Contains the Shipping Addresses - inline add/edit/update>>
<<Telerik Grid Contains the Billing Addresses - inline add/edit/update>>
Then <<Save button>>

this is one form, now when user click on save button, i need to save all the data in the database in 3 separate tables.

I am not sure, how to call the add/update function of Telerik Grid on click of Save button. So that all the data will be saved in database in one click of Save.

Now, If i use inline Add/Edit/update of Telerik Grid - i need to save data in the table at the same moment when i click on Save/Update event of telerik grid, but this can not be done as i need to save the data in other table first (<< Some Fields like Name, Address etc>>) based on which i will insert the Grid records in other tables due to referencial integrity contstraint.

If i know to call the update/Save events of telerik grid on Save button of form, i think my problem can be resolved.

Please suggest.. need quick help.

Thanks in advance.

Best Regards.

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Dec 2008, 03:37 PM
Hi Pranav,

How to fire grid command events from code (in your case from the OnClick server handler of the [Save] button) you can learn from the following article in the documentation.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Pranav
Top achievements
Rank 1
answered on 09 Dec 2008, 04:35 AM
Hello Sebastian,

Thanks for your answer. This will help.

Regards,
Pranav
Tags
Grid
Asked by
Pranav
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Pranav
Top achievements
Rank 1
Share this question
or