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

Triggers are invoked on sorting (bug)

1 Answer 44 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Valdo
Top achievements
Rank 1
Valdo asked on 18 Jul 2011, 11:36 AM
Hello,

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:
http://dl.dropbox.com/u/23090332/TreeListViewSorting.zip

Any ideas on how to prevent this behavior?

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 19 Jul 2011, 11:27 AM
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,
Tsvyatko
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!

Tags
TreeListView
Asked by
Valdo
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or