This is a migrated thread and some comments may be shown as answers.

Dynamically changing cell editor per row at runtime

6 Answers 194 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 12 Oct 2010, 11:45 PM
I am building an application that uses a grid much like the Properties grid is used in Visual Studio.  I basically need to display a list of name/value pairs within a grid, and the data type of the value will vary from row to row.  When the user clicks in the value cell on a given row, I would like to present the editor to them that is appropriate for that data type (date picker for dates, checkbox for booleans, dropdown or text box for strings, etc.).

Is this possible with the RadGridView?  All of the examples I've found so far are for setting the editor for an entire column rather than for an individual cell.

Thanks,
Ben

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Oct 2010, 07:31 AM
Hi Ben,

 Please check this demo for more info. 

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Subha
Top achievements
Rank 1
answered on 09 Dec 2010, 09:37 PM
Hi,

I am looking for the similar functionality where a cell editor should show datetime picker or combobox based on another cell value.  Do you have a sample avaialble for this?  I am using MVVM in my app.

Thanks in advance.

Subha
0
Maya
Telerik team
answered on 10 Dec 2010, 09:24 AM
Hi Subha,

I am sending you a sample project demonstrating a possible approach for achieving the desired result. Let me know if you need any further assistance.
 

Greetings,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Subha
Top achievements
Rank 1
answered on 13 Dec 2010, 06:10 PM
Thank you very much for the solution.  This is exactly what I was looking for!
0
Haggai
Top achievements
Rank 1
answered on 07 May 2016, 02:03 PM
Hi Maya,

 

I saw your post on how to change individual cell editor at runtime not the whole column

Will you please also send me your solution haggai@live.ca

Thanks,

haggai

0
Maya
Telerik team
answered on 09 May 2016, 02:05 PM
Hi Haggai,

You can create a CellEditTemplate for the column you want thus modifying the editor of the whole column. More information can be found in Setting CellTemplate and CellEditTemplate article.

Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Ben
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Subha
Top achievements
Rank 1
Maya
Telerik team
Haggai
Top achievements
Rank 1
Share this question
or