Hello!
I am migrating from UltraWebGrid to WebDataGrid and I have this column
<igtbl:TemplatedColumn DataFieldName="Ultra" AllowUpdate="Yes" DataType="bool" Width="62px">
Do I have to use the TemplateDataField?
In that case, shall I replace "DataFieldName" with "Key"? And what about "AllowUpdate"? because is not a valid option in the TemplateDataField...
Thank you very much!
Hello,
Thank you for contacting Infragistics!
That is correct that for template columns in the WebDataGrid you will want to use a TemplateDataField. Since the TemplateDataField isn’t directly bound to data you won’t use the DataFieldName. It is recommended to set the Key for all of your columns as by Key is one of the ways to access them.
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Column_Templates.html
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Using_Item_Template.html
As for AllowUpdate enabling or disabling editing is done though the behaviors and column settings in the EditingCore/CellEditing behavior:
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Cell_Editing.html
Which you can see done though the code behind in the following sample:
http://ko.infragistics.com/products/aspnet/sample/data-grid/edit-mode-actions
Please let me know if you have any further questions concerning this matter.
Sorry, the code didn't show up in my previous response.
this is the one:
<Behaviors>
<
Behaviors
>
<ig:EditingCore>
ig
:
EditingCore
<ig:CellEditing>
CellEditing
<EditModeActions MouseClick="Single" />
EditModeActions
MouseClick
="Single"
/>
</ig:CellEditing>
</
</Behaviors>
</ig:EditingCore>
Thank you for the update. To mark a column as read only you would do the following:
<Behaviors> <ig:EditingCore> <Behaviors> <ig:CellEditing> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="DepartmentName" ReadOnly="true" /> </ColumnSettings> </ig:CellEditing> </Behaviors> </ig:EditingCore> </Behaviors>
<ColumnSettings>
<ig:EditingColumnSetting ColumnKey="DepartmentName" ReadOnly="true" />
</ColumnSettings>
Please let me know if you have any questions concerning this matter.
Thanks again!
How can I set the HeaderClickActionDefault, RowHeightDefault and the RowSelectorsDefault in the HierarchicalDataGrid?
Thank you very much for your help, I am having trouble migrating the controls because I can't find the correspondence between properties!
Thank you for the update. Most things in the WebDataGrid and WebHierarchicalDataGrid are now done through behaviors. For examples for the HeaderClickActionDefault and RowSelectorsDefault you now have the sorting and row selectors behaviors:
Behaviors: http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebHierarchicalDataGrid_Behaviors.html
Sorting: http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebHierarchicalDataGrid_Sorting.html
RowSelectors: http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Enabling_Row_Selectors.html
As for the RowHeightDefault row height is now applied through CSS. In the ig_dataGrid.css in the ig_res/Default style folder is a class called tbody.igg_Item>tr>td where the height is set to 20px.
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=Web_WebHierarchicalDataGrid.html
I am following up to see if the information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.