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

Preserve edit form when multiple rows are edited ?

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aloys GAUTHEY
Top achievements
Rank 1
Aloys GAUTHEY asked on 06 Jul 2010, 10:37 AM
Hi,

When we perform an action on an edited row all other edited rows are rebinded, their states are not persisted. So, how could we preserve other edited rows states ?

Thanks !

@loys

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Jul 2010, 02:06 PM
Hai,

I am not sure about your requirement / "performing an action on edited row". I guess you want to save the edited state even after postback (the issue is not happening for me ;)  ). If so you can try same approach described for persisting selection on rebind: You need to save the keyvalue of edited rows in ItemCommand event and put it in editmode from code in PreRender according to the keyvalues saved.

Could you provide some more information about the scenario that you are trying, if this does not help?

Thanks,
Princy.
0
Aloys GAUTHEY
Top achievements
Rank 1
answered on 07 Jul 2010, 03:58 PM
Thanks for your reply !

I've made a short screen capture to show you the scenario :
=> Two rows in edit mode and modified, one updated
=> The first row is not persisted ( because all rows are rebinded systematically, even if they was already populated )

 [ Screen capture ]

Thanks.
@loys
0
Yavor
Telerik team
answered on 08 Jul 2010, 08:09 AM
Hello Aloys,

In this case, you can persist the entered data for all records, thus ensuring that no data is lost. This can be done by updating all records, when a postback is made. Additional information on this option is available in the following topic:

http://www.telerik.com/help/aspnet-ajax/grdperformingbatchupdates.html

I hope this gets you started properly.

Regards,
Yavor
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
Aloys GAUTHEY
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Aloys GAUTHEY
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or