In This Topic
This topic explains how you can use custom editors to change the values in the FlexGrid cells. The sample code given below uses the EditTemplate property to specify the column editor.
You can use three types of editors in the FlexGrid Control.
- Using C1 Input controls which has “Value” or “Text” property You need to set the EditTemplateId property of a column. If the grid allows adding a new row, you need set the editor's IsRequired to false. If you want the editor full with the whole cell, you can set the style width to "100%".
- Use other control or a C1 control which does not have “Value” and “Text” property To update the content from the custom editor, you need to implement the OnClientCellEditEnding event and set it to cellEditEndingEventArgs.cancel = true; to apply your value update.
- Use Grid’s internal editor We can use the FlexGrid’s internal editor to create custom editors. There is no additional implementation required, FlexGrid handles it.