Hi I am using XamGrid and having problem in providing tab navigation on it cells.I am using a couple of UnboundFeilds in XamGrid and specifying CellValuePresenter for them.The Code looks sopmething like this <igDP:XamDataGrid> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False"> </igDP:FieldLayoutSettings> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:UnboundField Name="PaidAmount" Label="Amount"> <igDP:UnboundField.Settings> <igDP:FieldSettings CellValuePresenterStyle="{StaticResource AmountCellStyle}" /> </igDP:UnboundField.Settings> </igDP:UnboundField> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid>and the CellValuePresenter is something like this <Style x:Key="AmountCellStyle" TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <igEditors:XamCurrencyEditor /> </StackPanel> </ControlTemplate> </Setter.Value> </Setter> </Style>The problem i am facing is that if i press tab to navigate to next cell/record only the cell gets the tab focus rather than the control inside that cell.So with above code if you hit tab then cell gets selected where as i need the focus on the CurrencyEditor(which is inside that cell)
Thanks in advance.
Rehman.
Hi,
If you would like to embed a XamCurrencyEditor into the cells of an UnboundField, I suggest you set the EditorType on the FieldSettings, instead of use a custom control template. Here's how you can set that:
<igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}" />
Josh