Binding for property TabIndex not working

4 posts, 0 answers
  1. Dirk
    Dirk avatar
    43 posts
    Member since:
    May 2011

    Posted 02 Nov 2011 Link to this post

    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
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 07 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Dirk
    Dirk avatar
    43 posts
    Member since:
    May 2011

    Posted 16 Dec 2011 Link to this post

    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
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 21 Dec 2011 Link to this post

    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 >>

Back to Top