HtmlView and additional controls

2 posts, 0 answers
  1. CC
    CC avatar
    8 posts
    Member since:
    Mar 2009

    Posted 07 Jul 2015 Link to this post

    I was looking for information on adding combo boxes and check boxes along with other controls that I can add to a row. I wanted to use a formatted row where I can use the HTML view to format the number of rows per row, but I have not located any help files on this.

    In the link provided, i wanted to be able to provide a combobox for the city or country, in addition to viewing several rows for 1 entry.

     Any help or a link to a previous forum entry that addresses this would be appreciated.


  2. Hristo
    Hristo avatar
    1028 posts

    Posted 10 Jul 2015 Link to this post

    Hi Chuck,

    Thank you for writing.

    The HtmlViewDefinition only defines a layout of how you would like your data be displayed in RadGridView. It also provides means for a quick set up of the layout by using Html. This does not alter the structure of RadGridView and the way how it works.

    If you would like to have combo boxes or check boxes in your grid control you would need to provide the relevant data and display it in a proper column GridViewComboBoxColumn or GridViewCheckBoxColumn. In case you need to display the data in custom cells, incorporating controls not having their analog column or cell type in RadGridView, this is also possible: Creating Custom Cells.

    Please note that you would also need to add all your columns as table entries in your Html file. I created and example project demonstrating how this can be achieved. I am also sending you gif file showing the result on my end.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov
    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 Feedback Portal and vote to affect the priority of the items
Back to Top