Hi, we have a WebHierarchicalDataGrid with some editable columns, but we need to allow multiple line editing in the cell, how to make ENTER key create a new line of text instead of finish editing ? I know UltraTextEditor can do that, but not sure how to connect it to WebHierarchicalDataGrid.....
You can use TextEditorProvider to achieve multiline editing support. Below is the markup:
<EditorProviders> <ig:TextEditorProvider ID="Wdg_TextEditorProvider1" EditorControl-TextMode="MultiLine"> </ig:TextEditorProvider> </EditorProviders>
<EditorProviders>
<ig:TextEditorProvider ID="Wdg_TextEditorProvider1"
EditorControl-TextMode="MultiLine">
</ig:TextEditorProvider>
</EditorProviders>
To know more about how to use editor provider, please refer to the following link
http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=WebDataGrid_Using_Editor_Providers_for_the_Filter_Box_in_WebDataGrid.html
Using above the user will be able to edit a cell and when the text of the cell reaches the end automatically the cursor is pushed to the next line and it is not needed the user to press enter. But if you want to do that on enter press or you want to implement custom logic and so on you can use provided by the grid client - side event handlers.
Please let me know if you have any further questions regarding this matter.
Hello Prabha, I'm trying to use the TextEditorProvider, and I need to be able to edit cell and hit ENTER without the editor losing focus. I thought this could be done with the property HideEnterKey, but that property does not seem to have any effect.
How can I achieve thi, that is, letting users insert lineshift in the text content of the cell ?