cross control changes

2 posts, 1 answers
  1. Dawid Wódkowski
    Dawid Wódkowski avatar
    2 posts
    Member since:
    Dec 2009

    Posted 26 Aug 2010 Link to this post

    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?
  2. Answer
    Dobry Zranchev
    Dobry Zranchev avatar
    353 posts

    Posted 31 Aug 2010 Link to this post

    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.

    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
Back to Top