RadListView select item on right click

2 posts, 1 answers
  1. Vitalij
    Vitalij avatar
    35 posts
    Member since:
    Dec 2010

    Posted 01 Jun 2012 Link to this post


    Is there any way to select an item in RadListView on right mouse click?? I use this demo http://demos.telerik.com/aspnet-ajax/listview/examples/client/webservicedatabinding/defaultcs.aspx to populate the ListView, but the right click always shows me the browsers contextMenu.

  2. Answer
    Tsvetina avatar
    1862 posts

    Posted 06 Jun 2012 Link to this post

    Hi Vitalij,

    You can wrap the client ItemTemplate in a <div> and attach its oncontextmenu javascript event. Once you do so, call the toggleSelection(index) method of the listview and then return false from the event handler function, so that the default browser menu is not shown.  

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top