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

HtmlView and additional controls

1 Answer 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 07 Jul 2015, 02:15 PM

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.

 http://www.telerik.com/help/winforms/gridview-viewdefinitions-html-view.html

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.

 

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 10 Jul 2015, 01:00 PM
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.

Regards,
Hristo Merdjanov
Telerik
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
Tags
GridView
Asked by
Charles
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or