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

Binding for property TabIndex not working

3 Answers 47 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Dirk
Top achievements
Rank 1
Dirk asked on 02 Nov 2011, 04:07 PM
Hi,

I've placed some  RadMaskedNumericInput controls in a RadTreeView and want to set the TabIndex via Binding.
But the binding is not working. I get alway a 0.

Are there any workarounds to set a TabIndex for navigation via Tab key.

Regards
Dirk

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 07 Nov 2011, 03:33 PM
Hi Dirk,

 I was unable to reproduce this issue. You can test my application where I have a RadTreeView bound to collection of ViewModels. In the ItemTemplate we have StackPanel holding TextBox, StackPanel and MaskedNumericInput. The TabIndex of the MaskedInput is successfully bound to an integer property in the ViewModel. Please note that in some cases the TabIndex may not work for you and you may need to use the KeyDown event handler of the RadTreeViewItem and implement your own navigation. Could you please elaborate more on your scenario if it is more complex from the one in the project ? 

Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Dirk
Top achievements
Rank 1
answered on 16 Dec 2011, 10:52 AM
Hi Petar,

I'm late ;-) but I'm just jumping back to this issue in my task list.
I've tested your example and it seems to show the correct way, but ...
.. do you know how to set the TabIndex for jumping directly from one control to another without focusing the treeview element like it does in your example.

Thank you and merry christmas.
Dirk
0
Petar Mladenov
Telerik team
answered on 21 Dec 2011, 10:48 AM
Hi Dirk,

 Playing with Focus in Silverlight is usually tricky. I prepared a custom focus changing by using the KeyDown of the RadMaskedNumericInout. Please check it out, hope you get the basic idea - playing with the ChildrenOfType and ParentOfType methods and invoking the Focus() method.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Dirk
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Dirk
Top achievements
Rank 1
Share this question
or