Dynamically changing cell editor per row at runtime

7 posts, 0 answers
  1. Ben
    Ben avatar
    3 posts
    Member since:
    Oct 2010

    Posted 12 Oct 2010 Link to this post

    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

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Subha
    Subha avatar
    10 posts
    Member since:
    Dec 2010

    Posted 09 Dec 2010 Link to this post

    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
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 10 Dec 2010 Link to this post

    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
  6. Subha
    Subha avatar
    10 posts
    Member since:
    Dec 2010

    Posted 13 Dec 2010 Link to this post

    Thank you very much for the solution.  This is exactly what I was looking for!
  7. Haggai
    Haggai avatar
    1 posts
    Member since:
    Apr 2016

    Posted 07 May in reply to Maya Link to this post

    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

  8. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 09 May Link to this post

    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.
Back to Top
DevCraft banner