C1DataGrid Focus Tab

Posted by: patrick.muellner on 27 December 2022, 1:07 am EST

    • Post Options:
    • Link

    Posted 27 December 2022, 1:07 am EST

    Hi,

    I click with tab through the window - problem is that I have to press two times in the DataGrid, that the focus comes to the button.

    I include you the sample and also a video.

    Additional - with old version from 2018 it works - now 4.6.2 not.

    Regardsvideo.zipDataGrid.zip

  • Posted 27 December 2022, 10:43 pm EST - Updated 27 December 2022, 10:50 pm EST

    Hi Patrick,

    We could replicate the behavior at our end.

    By pressing the ‘Tab’ key in Datagrid version 4.6.2, we can traverse through each row.

    By pressing the Tab key, Datagrid rows are not traversed on the previous version (2018). Therefore, with just one “Tab” key hit, the focus gets shifted away from the Datagrid. (See tabFocus.zip)

    The behavior shown by the 4.6.2 version seems to be valid to us when we have multiple rows in C1DataGrid.

    You can check the behavior from the sample attached.(C1datagridFocusIssue.zip)

    We welcome your opinion in this regard for further consideration.

    Thanks & Regards,

    Aastha

  • Posted 27 December 2022, 10:51 pm EST

    Hi,

    ok this is now a big problem for us. Because I want on Tab, that the focus away. And at your sample the focus is running through the rows.

    How can I change this? With TabNavigation=“Continue” it doesn’t works?

    Regards

  • Posted 28 December 2022, 6:39 pm EST - Updated 28 December 2022, 7:44 pm EST

    Hi Patrick,

    You can handle C1DataGrid’s PreviewKeyDown event as shown in the following to shift the focus away from the DataGrid on pressing the ‘Tab’ key for the first time.

    Private Sub datagrid_PreviewKeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
        Dim grid = TryCast(sender, C1DataGrid)
        If e.Key = Key.Tab AndAlso grid.IsEditingRowsAllowed = False Then
            e.Handled = True
            Dim request As TraversalRequest = New TraversalRequest(FocusNavigationDirection.Next)
            request.Wrapped = True
            grid.MoveFocus(request)
        End If
    End Sub

    Please refer to the attached sample for full implementation.C1DataGridFocusIssue_ModVB.zip

    Thanks & Regards,

    Aastha

  • Posted 28 December 2022, 7:59 pm EST

    Hi Aastha,

    thanks for your sample.

    I will be honest - for us it is very difficult to update now from 2018 to 2022. I know that we customized many things from C1.

    But that “normal” functions like this still not working any more is very bad.

    We also work with Graphical Tests and I think 70% after the C1 Update don’t work anymore.

    For us it is very difficult, how we can go on.

    Regards

  • Posted 30 December 2022, 6:29 am EST

    Hi Patrick,

    We understand your concerns and are sorry for the inconvenience caused to you.

    Since each updated version of the products comes with updated APIs, differences in functionality and feature enhancements can be seen in the control.

    You can raise a support ticket on our forum whenever you have an issue. We will try to assist you in the best way we can.

    Thanks & Regards,

    Aastha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels