Is there a way to turn on multi line for cell editing without using a template field?
In the older ultra web grid it was done like this:
this.UltraWebGrid1.Columns.FromKey("Description").CellMultiline = CellMultiline.Yes;
Is there something similar for a Web data grid?
Thanks
Hello,
I am not sure I understand well your scenario but keep in mind that the grid is designed to do CRUD operations in automatic or manual manner. If you use the first approach the grid is bound to some of the supported datasoruces and once a row has been updated the grid try to commit the changes to the database. This scenario requires minimum effort from developer side. If you prefer to implement CRUD operation for yourself it means that you must take care for the changes to be persist into the database and for this scenario the grid exposes events like RowUpdating / ed to be handled. The easiest way would be to handle RowUpdating event and take the new data in it and update your db. When editor provider is used for example WebTextEditor actually one instance is render down to the client and when a given cell get into edit mode the editor shows up. Once the user done with the editing the editor becomes hidden and its value is set to the cell of the grid.
Hope this will help you.
No, this does not work. Basically we have a form that allows client side CRUD. In this form exists a multi-line text box that must update CR/LF to the database.
We update the database by first using javascript to update the cells in the datagrid. Once the cells are updated we send a post back. When we go from text box to datagrid cell, all CR/LF are lost and then not updated to the database.
I tried using the text editor and set it to multi-line as suggested, but the result is the same. Any other ideas on how to resolve this issue would be appreciated.
Could you have a look at the following forum thread ;
http://forums.infragistics.com/forums/p/38263/220806.aspx#220806
Hope it helps.