ListView "Edit and Insert Templates" with MVC

2 posts, 0 answers
  1. Keith
    Keith avatar
    61 posts
    Member since:
    May 2008

    Posted 24 Feb 2010 Link to this post

    We would like to implement the same functionality of the "Edit and Insert Templates" demo
    , 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 only in a MVP structure?

    Thanks in advance,

    Keith E.
  2. Rosen
    Rosen avatar
    3253 posts

    Posted 01 Mar 2010 Link to this post

    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.

    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.
Back to Top