"SelectedIndex" binding property

8 posts, 0 answers
  1. Mirko
    Mirko avatar
    17 posts
    Member since:
    Jul 2013

    Posted 10 Jul 2013 Link to this post

    Would it be possible to add to RadSlideView property "SelectedIndex", that could be databound to SelectedIndex in our viewmodel using TwoWay binding? Just like this property works in ItemsControl. Right now we cannot use for twoway binding the SelectedItem property.

    Thanks.
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 11 Jul 2013 Link to this post

    Hello Mirko,

    Thank you for contacting us.
    What prevents you from implementing a SelectedItem dependency property in your view model?

    An approach that comes to mind would be to bind the RadSlideView's SelectedItem property to your view model's SelectedIndex and use a converter. All you have to do is make sure you have a reference to your collection in the converter.

    Let me know how I can be of further assistance.

    Regards,
    Kiril Stanoev
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Mirko
    Mirko avatar
    17 posts
    Member since:
    Jul 2013

    Posted 11 Jul 2013 Link to this post

    In our viewmodel we use as reference collection of items for OneWay binding, and SelectedIndex property for TwoWay binding + read only SelectedItem property. I guess we can work around this issue, although having the possibility to use twoWay databinding either using SelectedItem or SelectedInex will be easier for us.
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 11 Jul 2013 Link to this post

    Hi Mirko,

    Thank you for the follow-up. I've added your request to our backlog. We'll consider implementing a SelectedIndex property for future versions of RadSlideView.

    Regards,
    Kiril Stanoev
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Mirko
    Mirko avatar
    17 posts
    Member since:
    Jul 2013

    Posted 30 Sep 2013 Link to this post

    Hi, are there any news about the implementation of databindable SelectedItem property on RadSlideView? It would allow us to remove some workarounds from our code, that we use right now.
    Note that both SelectedItem and SelectedIndex supports two-way binding on built-in controls like ItemsControl, ListBox and others as well.
    Thanks
  7. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 01 Oct 2013 Link to this post

    Hi Mirko,

    The SelectedItem property supports binding expressions. Could you please share with us what types of workarounds are you using regarding this functionality so that we make sure no issues are present currently?

    There is no SelectedIndex property exposed by RadSlideView that can be used in binding expressions.

    Looking forward to your response.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  8. Mirko
    Mirko avatar
    17 posts
    Member since:
    Jul 2013

    Posted 03 Oct 2013 Link to this post

    Sorry, I meant support for SelectedIndex databinding in Telerik controls.
    Most of our view models uses SelectedIndex as the main property for two-way bindings, so in case of Telerik controls we have to use manual SelectedIndex propagation in SelectionChanged event handlers which is less convenient than just using two-way databinding.

    To be more precise, it would be great if RadSlideView (and any other control with list of items and selected item) was a child of the Selector base class, just like similar native controls (ComboBox, ListBox, FlipView, GridView, ListView), rather than just based on Control.
    http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.selector.aspx
    Thanks
  9. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 04 Oct 2013 Link to this post

    Hi Mirko,

    Thanks for writing back and for your clarification.

    We will take this feedback into account and will try to include it in the planning for the next major release.

    Let us know if you have additional questions or need assistance.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner