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

"SelectedIndex" binding property

7 Answers 95 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mirko
Top achievements
Rank 1
Mirko asked on 10 Jul 2013, 01:30 PM
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.

7 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 11 Jul 2013, 08:00 AM
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.
0
Mirko
Top achievements
Rank 1
answered on 11 Jul 2013, 10:29 AM
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.
0
Kiril Stanoev
Telerik team
answered on 11 Jul 2013, 02:14 PM
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.
0
Mirko
Top achievements
Rank 1
answered on 30 Sep 2013, 11:02 AM
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
0
Deyan
Telerik team
answered on 01 Oct 2013, 01:07 PM
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.
0
Mirko
Top achievements
Rank 1
answered on 03 Oct 2013, 07:46 AM
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
0
Deyan
Telerik team
answered on 04 Oct 2013, 11:40 AM
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.
Tags
SlideView
Asked by
Mirko
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Mirko
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or