Triggers are invoked on sorting (bug)

2 posts, 1 answers
  1. Valdo
    Valdo avatar
    26 posts
    Member since:
    Aug 2010

    Posted 18 Jul 2011 Link to this post


    There is an issue related to the EventTriggers and Sorting mechanism in TreeListView component.
    In short - I have a cell with custom template, which contains checkbox with event trigger on Check/Uncheck event. Trigger invokes a command. When the user performs sorting the command is invoked for checked rows. This is unwanted behavior.

    I've also made a sample project to demonstrate it. You can download it here:

    Any ideas on how to prevent this behavior?
  2. Answer
    Tsvyatko avatar
    858 posts

    Posted 19 Jul 2011 Link to this post

    Hi Valdo,

     We have spend some time investigating this issue. Here are the results:

     - The behavior is observed even if CheckBox is placed outside the GridView cell template. It seems to be triggered when checkbox DataContext is cleared (which happens on reset operations such as sorting). However, when command is invoked (due to the fact that the binding for isChecked fallback to default value) the command parameter still keeps the old datacontext.

    Please, check the modified project as reference.

    Kind regards,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top