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

ListView "Edit and Insert Templates" with MVC

1 Answer 106 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 24 Feb 2010, 02:44 PM
We would like to implement the same functionality of the "Edit and Insert Templates" demo
http://demos.telerik.com/aspnet-ajax/listview/examples/templates/editinserttemplates/defaultcs.aspx
, but rather than control the binded with SqlDataSource as shown in the example, our control binding occurs in the code behind of a .NET Model View Presenter (MVP) architecture. We can't seem to find any method or property that indicates the item index when a item in the is selected., when the "Edit" button is clicked. So, there doesn't seem to be a way to determine which "Edit" button was clicked and which item to edit.

Do you have an example the the ListView functionality at http://demos.telerik.com/aspnet-ajax/listview/examples/templates/editinserttemplates/defaultcs.aspx only in a MVP structure?

Thanks in advance,

Keith E.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 01 Mar 2010, 07:35 AM
Hi Keith,

You can hook to ItemCommand or to ItemEditing / ItemUpdating events. Event args is passed a reference to the item instance from which the Edit command is fired.

Regards,
Rosen
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
ListView
Asked by
Keith
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or