Prevent deselect item

4 posts, 0 answers
  1. John
    John avatar
    14 posts
    Member since:
    Sep 2016

    Posted 09 Mar Link to this post

    Hi,

    How can i prevent that an item is deselected when i click on a selected item?

  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    691 posts

    Posted 13 Mar Link to this post

    Hi John,

    RadListView works with commands and particulary in this case the ItemTapCommand. You can implement it and skip its execution when needed. But keep in mind it also handles the logic for action content. Another approach is to track the SelectionChanged event, and if the item is deselected(with no other item selected) you can select it again.

    I hope this helps.

    Regards,
    Ivaylo Gergov
    Telerik by Progress
    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 Feedback Portal and vote to affect the priority of the items
  3. John
    John avatar
    14 posts
    Member since:
    Sep 2016

    Posted 13 Mar in reply to Ivaylo Gergov Link to this post

    Hi,

    I tried both solutions before but they don't work right for me.

  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    691 posts

    Posted 16 Mar Link to this post

    Hello John,

    Unfortunately these are the current available options.

    Please, let me know if you have any questions or suggestions.  

    Regards,
    Ivaylo Gergov
    Telerik by Progress
    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 Feedback Portal and vote to affect the priority of the items
Back to Top