Overide CellType

Hi,

How can i add a custom control in a Cell (or in a Row) ?

Thanks in advance .

Thomas M.

3 Replies

GK Ganesan K Syncfusion Team November 13, 2009 02:59 PM UTC

Hi Thomas,

Thanks for using Syncfusion products.

You can create the Custom renderer class to hold your Custom Control.

Here is the sample for Custom CheckBox in GridDataControl.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GDCCheckBox_cfa311dc99580857.zip

Here is the sample for Custom Checkbox in GridControl.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GridControlCheckBox899348089.zip

Pleae let us know if you need any more details.

Thanks
Ganesan.



AB Alex Bruscke February 1, 2010 10:54 PM UTC

I have followed your suggestion and overrode the grid renderer in the same manner done in your example. However, I am having difficulty debugging the setting of cell values.

Can you explain the basic order of events that occur after a user leaves a cell, and the correct way to persist the value in the overridden cell renderer?

My specific problem is that a custom text box which is at the bottom of the visible part of the grid (within a scrollviewer), clears out its contents when the user leaves the cell.


KV Karthik Vishnu R Syncfusion Team February 15, 2010 04:59 AM UTC

Hi Alex,

Thanks for using Syncfusion products.

Download the attached PDF document to know more details about creating a CustomCellRenderer.

Please, let us know if you need more details.

Thanks,
Karthik



How To_d7319944.zip

Loader.
Up arrow icon