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) ?
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.
CellClickAction="SelectRow" does not help in this case.
When I move to the next cell in the edit row, the first cell is no more in edit mode.
I want to see all cells of the row in edit mode. This happens when we use AllowEditing to “Row”.
I am following up for Chris because he is not currently available.
I used Chris' sample with the following modifications:
1) reset AllowEditing to Row
2) added the EditorDisplayBehavior set to Always to the DateColumn and the ComboBoxColumn.
This documentation describes this property and its use for specific column types.
http://help.infragistics.com/NetAdvantage/WPF/2013.1/CLR4.0/?page=xamGrid_Editors_Always_in_Edit_Mode.html
In any case, that solved your question for the comboBoxColumn but it looks like there is an issue with the DateColumn.
So I am in the process of logging a development issue for you. I will create a case for you also and will contact you directly concerning the status of that development issue thru that case.
You will hear from me shortly thru the case.
I was in the process of doing some additional testing and realized that this issue has already been resolved in the last service release for 2011.2, SR 20112.2316.
Download the latest service release from your account and use the properties that I mentioned, EditorDisplayBehavior set to Always for the DateColumn and the ComboBoxColumn. Then you will be able to use AllowEditing set to Row and still tab from cell to cell and immediately be in edit mode.
Please let me know if you have any questions.
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
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>