I would like to have a dropdown column in a webdatagrid that have multiple columns. For example, the grid have 3 columns, the column3 is a dropdown columns. When click on it, it will display a dropdown grid that have 3 columns. Does anyone know if the webdatagrid supports that? If so, is there any example/ resources showing how it can be achieved. Thanks.
Column1 Column2 Column3 V
Column 3.1 Column3.2 Column3.3
Hello,
Based on functionality you suggested, I would recommend using Template for header. You can use any control(s) in Header template. I have attached a sample that will show another grid when the image in the header is clicked. I am using WebDialogWindow as a template in the attached sample.
You can also use DropDown control as a template control. Refer to the documentation on the below link:
<http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=WebDropDown_Create_a_Multi_Column_WebDropDown_using_Templates.html>
I hope this helps.
Hello Bhadresh,
Thanks for your response. I looked your example. The one I would like to achieve is not on the column header but in the data row. For example,
Column1 Column2 Column3data row1 xyz 123 xxx Vdata row2 xyz 123 yyy V Column3.1 Column3.2 Column3.3 1 yyy type1 2 kkk type2............
I have 3 columns in the webdatagrid, column3 is a dropdown column. When click on "yyy" on datarow2, the dropdown will expand and show a datagrid with the selected value. I tried to use TemplateDataField and add a webdropdown as itemTemplate which in turn contains a webdatagrid as another itemTemplate. But it seems this approach does not work. Can you please specifically provide me with an example in this scenario? Thanks.