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

[Solved] Confirm on Edit

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jamal
Top achievements
Rank 1
Jamal asked on 09 Jul 2009, 12:37 PM
I've got a radgrid with a master table and a detail table, both of which are updatable using the built in Update/Insert options and databound using ObjectDataSources. The master table displays versioned information--data that changes QoQ for the business.

We want to change the functionality so that when changes are made, a confirmation dialog pops up to ask the user if they want to update the current record--or create a copy of it for the next quarter. And if they choose to create a copy of it, they will then need to enter a new Quarter Date. They want this confirmation fired whenever the "Edit" button is clicked or whenever the (Detail Table) "Expand" button is clicked.

Does anyone have any examples of something like this?

Thanks,

Jamal

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 13 Jul 2009, 11:19 AM
Hello Jamal,

Basically, there is no default mechanism to handle this kind of logic.
This can be done with custom code, for example keeping a track on the client of whether the text in a particular textbox control has been changed. The following example:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

demonstrates one similar approach. Whenever a chance is made in the edit form, the end user is prompted to verify if the changes are to be persisted.
I hope this suggestion helps.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Jamal
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or