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

cross control changes

1 Answer 53 Views
ListControl
This is a migrated thread and some comments may be shown as answers.
Dawid Wódkowski
Top achievements
Rank 1
Dawid Wódkowski asked on 26 Aug 2010, 02:19 PM
I've two RadListControl which have same DataSource object binded, however meaning of them is different(ex. sender and recipient both have users databinding, but different meaning). When i select when item both controls are reacting.
Currently I've used SelectedIndexChanging event to cancel if control is not focused, but that have some unwanted side effects like need to focus when I change something programmatically.
Is there a way to turn this behaviour off?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobry Zranchev
Telerik team
answered on 31 Aug 2010, 04:47 PM
Hello Dawid Wódkowski,

Thank you for writing.

By default, the selected index of a RadListContol, binded to a binding source, reacts when the Current of the binding source is changed. Since your both controls are binded to the same binding source, a user selection in the first control will be reflected by the second control and vise versa. In order to solve your issue, you should create two distinct binding sources and set them to your RadListControl instances.

If you have other questions, feel free to write back.

Greetings,
Dobry Zranchev
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
Tags
ListControl
Asked by
Dawid Wódkowski
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Share this question
or