I have DateColumn and ComboBoxColumn in xamgrid. When I am the row edit mode, I can see the date control and combox control in the edit mode, but they don't get focus when I tab through each cell. The Cell Control gets the focus but I want the default editor control (contained by the cell) to get focus, so that the user can edit the using keyboard only. How can default editor control will get the focus while tabbing in edit mode.
I do get the focus in editor control when I use TextColumn and TemplateColumn. How the same can be acheived for DateColumn and ComboBoxColumn?
I have created a sample to explain this better.
Hi Gajender,
This behavior is definitely possible, you will only need to set the IsOnCellActivatedEditingEnabled property to true, in conjunction with the AllowEditing property which you have applied already, within the XamGrid.EditingSettings; as demonstrated in the following code snippet.
<ig:XamGrid.EditingSettings> <ig:EditingSettings IsOnCellActiveEditingEnabled="True" AllowEditing="Cell"> </ig:EditingSettings></ig:XamGrid.EditingSettings>
I have also included a modified version of your sample which demonstrates this behavior, for further context.
If you have any further questions regarding this behavior, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
When I change AllowEditing property from "Row" to "Cell", it does not get the full row into edit mode. I want to show the full Row in the edit mode and tab thru each cell to change the value. But only issue I find that each cell get the focus but focus is not passed to its contained control. It happens for TextColumn (passes it focus to TextBox) but not working the same with DateColumn and ComboBoxColumn. Why this inconsistency? Any solution to it (other than using TemplateColumn) ?
This is misleading to have a thread on XamGrid in the XamDataGrid forum. Please consider moving it.
I also know about using the TemplateColumn to resolve this issue.
My XamGrid has about 90 columns, most of them are template columns. looks like using so many TemplateColumn has created performance issue in loading the XamGrid, enter/exit row edit mode. Is this true or using TemplateColumn in place of TextColumn/DateColumn/ComboBoxColumn has nothing to do with performance?
Hi,
I haven't heard back from you and I was wondering if you my suggestions resolved your issues. Please let me know if you have further questions.
Hi Varun,
If you are using a template column, you need to use the TemplateColumn object's EditorTemplate property to set the custom editor. Then it should work properly.
Gajender was also using AllowEditing set to Row and CellClickAction set to SelectRow because he wanted the whole row to be in edit mode once the row was selected.
This documentation may help you.
http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamGrid_Editing_Data_in_a_Template_Column.html
Please let me know if you have any questions.
I am facing similar problem. I have XamGrid and Template column which has Button in it. Now the requirement is when user uses tab to go the cell which has Button in it then focus should be set to Button instead of Cell. I also want to achieve similar behaviour for template columns for Combobox.
I have already tried following code but it didn't help-
<ig:XamGrid.EditingSettings>
<ig:EditingSettings IsOnCellActiveEditingEnabled="True" ></ig:EditingSettings>
</ig:XamGrid.EditingSettings>