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) ?
I am not quite sure that I understand your question; after setting AllowEditing to “Cell”, the actual behavior appears to contradict your most recent statement, that is, the contained controls are receiving focus as their cells are tabbed thru.
When the tab key is activated, the cells receive focus sequentially from left to right and the focus for each cell is passed to its contained control, when the last cell on the row is tabbed, the first row on the next row obtains focus; are you seeing a different behavior? And if so, are you making any modifications to the sample in my last response? As this sample produces the expected behavior that you expressed interest in, which has been consistent for the Text, Date and ComboBox Columns; a template column will not be necessary.
If I have misunderstood the behavior that you are trying to achieve, please let me know.
When I set the AllowEditing to “Cell”, user don't see the full row in edit mode. He only see the single cell in edit mode.
I want to show full row in edit mode and user can tab to next cell to edit values.
Thank you for clarifying your issue, the behavior that you are interested, where the row assumes a selected appearance while one of its associated cells is active is definitely possible; you would need to set the CellClickAction property of SelectionSettings of the XamGrid as in the following example.
<ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellClickAction="SelectRow"> </ig:SelectionSettings></ig:XamGrid.SelectionSettings>
I have also included a modified version of our earlier sample which demonstrates this behavior.
If you have any further questions, please let me know.
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>