Hi IG team,
We are using a WebDataGrid of IG version 10.3 (latest build installed).We have few text fields in the gird for which we are using TextEditorProviders. Following is the code for one of our textEditorProvider.
<ig:TextEditorProvider ID="prvMaxLength" ExitEditModeOnEnter="false"> <EditorControl ID="txtAddress" runat="server" MaxLength="1500" TextMode="MultiLine" Visible="true" MultiLine-Rows="25" MultiLine-Wrap="True" MultiLine-Overflow="Visible" ClientIDMode="Inherit"></EditorControl ></ig:TextEditorProvider>
The textfield is a multiLine, so we are setting the textMode property to "MultiLine".The text can be entered and it doesnt exitEditModeonEnter, all works fine.BUTHow to Display it in the grid as multiLine? Meaning if the textField has following dataexample: This is firstLine. User Hits enter //First Lineand comes to next Line. //Second LineCurrently it displays data in ONE Line like this:
This is firstLine. User Hits enter and comes to next Line. // Single Line
Kindly help on this. Thanks in advance.
Hi IG Team,
Any help on this??
Hello nileshsaw,
could you try to use TextBoxProvider and set TextMode property to MultiLine:
<EditorProviders> <ig:TextBoxProvider ID="WebDataGrid1_TextBoxProvider1" EditorControl-TextMode="MultiLine"> <EditorControl ClientIDMode="Predictable"></EditorControl> </ig:TextBoxProvider></EditorProviders>Here is the result:
Hope this helps