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
245
Change the TabIndex in DataGrid
posted

 How do you change the TabIndex or Tab Sequence in a record?  We have a custom layout for the record and the TabIndex is not in the correct order.

Thank you.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

igDP:FieldLayout.Fields><igDP:Field Name="BookTrackDate" Label="{Localize Date}" Row="0" Column

="0">

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings AllowEdit="False" EditorStyle="{StaticResource XamDateTime}"/>

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

 

</igDP:Field

>

 

 

 

 

 

<igDP:Field Name="BookTrackContact" Label="{Localize Contact}" Row="1" Column

="0">

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings EditorStyle="{StaticResource XamTextBoldMSSansStyle

}"/>

 

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

 

</igDP:Field

>

 

 

 

 

 

<igDP:Field Name="BookTrackComment" Label="{Localize Status}" Row="0" RowSpan="2" Column="1" ColumnSpan="6" Width

="400">

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings EditorStyle="{StaticResource LoadStatusTextEditorStyle}" />

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

 

</igDP:Field

>

 

 

 

 

 

<igDP:Field Name="BookTrackStatus" Label="{Localize ReasonCode}" Row="0" Column

="8" >

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings AllowEdit="True" EditorStyle="{StaticResource ComboStyleReasonCodeDataItemStyle}" />

 

 

 

 

</igDP:Field.Settings>

 

 

 

 

</igDP:Field

>

 

 

 

 

 

<igDP:UnboundField Name="BookTrackStatusDescrip" BindingPath="BookTrackStatus" BindingMode="TwoWay" Label="{Localize ReasonDescription}" Row="1" Column

="8" >

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings AllowEdit="True" EditorStyle="{StaticResource ComboStyleReasonCodeDescripDataItemStyle}" />

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

 

</igDP:UnboundField

>

 

 

 

 

 

<igDP:Field Name="BookTrackModUser" Label="{Localize ModUser}" Row="0" Column

="9" >

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings AllowEdit="False" EditorStyle="{StaticResource XamTextBoldReadOnlyMSSansStyle

}"/>

 

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

 

</igDP:Field

>

 

 

 

 

 

<igDP:Field Name="BookTrackModDate" Label="{Localize ModDate}" Row="1" Column

="9">

 

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

 

<igDP:FieldSettings AllowEdit="False" EditorStyle="{StaticResource XamDateTime}" />

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

 

</igDP:Field

>

 

 

 

 

 

 

 

</igDP:FieldLayout.Fields

>

 

 

  • 17559
    posted

    Hello AristidesSmith,

     

    It has been a while since you have made your  post, in case you still need of support I will be glad to assist you on the matter. I suppose the other community members can benefit from this answer as well.  Regarding your issue I can suggest you handle the PreviewKeyDown and if the pressed key is Tab to force the cell you want to enter edit mode. You can use the following snippet to make the cell enter edit mode:

    CellValuePresenter.FromCell(c.Record.Cells["email"]).StartEditMode();

    For further reference, please have a look at the attached sample.

     

    If you still have any questions on this, please do not hesitate to ask.

    TabIndexXamDataGrid.zip