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

Exit Edit Mode from Code Behind

1 Answer 203 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Matteo Pellizzoni
Top achievements
Rank 1
Matteo Pellizzoni asked on 21 Apr 2011, 04:45 PM
Hello,
in my RadListView, in Edit Mode, I added an imagebutton which allow me (in the code behind), to change and then save data coming from a RadListView.
After this change and save, I want to reload data in the RadListView and exit the Edit mode.

How can I fire an event which bring me up to the "normal" mode, exiting the exit mode (using VB?)

Thanks in advance and best regards

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 27 Apr 2011, 08:13 AM
Hello Matteo,

Try setting the CommandName of the button to "Update". Thus the listview should automatically exit edit mode when the button is clicked and is would be implicitly rebound.

For more information, you can refer to the below resources:
http://demos.telerik.com/aspnet-ajax/listview/examples/dataediting/manualediting/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/listview-manual-editing.html

Regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ListView
Asked by
Matteo Pellizzoni
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or