Question about Cell Edit Templates, I think?

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    13 posts
    Member since:
    Dec 2012

    Posted 15 Jul Link to this post

    Hello All,
         I have been tasked in a WPF/MVVM application to setup a TreeListView that shows some "Property/Value" pairs.  For most of the properties, the value should be a simple textbox, but for some of the particular properties, the values should be displayed as a dropdown selection.  Is there a way to get this done.  I'm starting down the path of in the table that stores these property/value pairs, have a column that designates what type of "Value" cell show be displayed, the by using that setting up a CellEditTemplate to properly configure the cell as either a textbox or dropdown...  Having never created a CellEditTemplate before, I wasn't sure if this is possible or even the correct path to venture down...  So, there's my dilemma/question...  If this is the correct path, is there a good example of how to get this done???

     

    Thanks in advance,

    Kevin Orcutt
    Senior Software Engineer

    Wurth Electronics ICS, Inc.
    7496 Webster St., Dayton, OH 45414
    Tel: 937.415.7700 
    Toll Free: 877.690.2207
    Fax: 937.415.7710
    Email: Kevin.Orcutt@we-ics.com
    http://www.we-ics.com

  2. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 20 Jul Link to this post

    Hi Kevin,

    Can you please take a look at the CellTemplateSelector topic, as I believe the functionality demonstrated in it corresponds to your needs? You may also find the Template Selectors section of RadGridView's online examples useful. The same demos can be found in the local copy of the WPF Demos.

    I hope this suits your needs.

    Best Regards,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top