Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Keyboard Navigation Results in Odd Tab-like Behaviour
posted

We have a xamDataGrid which has CellSelectAction="SelectRecord" set, and FieldLayoutSettings.SelectionTypeCell="None", yet when I select a cell and the whole record is shown selected. However, if I then press the right cursor(/arrow) key [->] then you can see each cell being focussed on and when it reaches the end of the line it selects the entire XamDataGrid as if I'd pressed tab. This selection of the XamDataGrid even occurs if IsFocusable="False", but not when IsTabStop="False" although this seems to prevent any keyboard navigation within the XamDataGrid...

Can you help? I've included a very basic app below, You'll need an IEnumerable property called Customers in your class for this to work: 

<Window x:Class="XamTabTest2.Window1"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:ig="http://infragistics.com/DataPresenter"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Title="Window1" Height="300" Width="300" x:Name="window">

<Grid>

<ig:XamDataGrid DataSource="{Binding ElementName=window, Path=Customers}" Grid.Row="1">

<ig:XamDataGrid.ViewSettings>

<ig:GridViewSettings IsEnabled="True" Orientation="Vertical" />

</ig:XamDataGrid.ViewSettings>

<ig:XamDataGrid.FieldLayoutSettings>

<ig:FieldLayoutSettings SelectionTypeCell="None" SelectionTypeField="None" SelectionTypeRecord="Extended" />

</ig:XamDataGrid.FieldLayoutSettings>

<ig:XamDataGrid.FieldSettings>

<ig:FieldSettings CellClickAction="SelectRecord" AllowEdit="False" />

</ig:XamDataGrid.FieldSettings>

</ig:XamDataGrid>

</Grid>

</Window>

  • 138253
    Offline posted

    Hello richstokoe,

    Thank you for your post. I have been looking through it and I tested it with a couple of our versions (e.g. 8.2, 8.3, 10.3, 11.1), but I wasn’t able to reproduce your behavior, so please take a look at the attached sample which is using our latest version(11.1).

    Please let me know if I can be of any further assistance