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,
I am just following up to see if you need any further assistance in this matter.
I have attached a modified sample that uses grid as an ItemTemplate of WebDropDownProvider. This sample is created from the link below with modifications since I have used WebDropDownProvider:
<http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=WebDropDown_Create_a_Multi_Column_WebDropDown_using_Templates.html>
The sample is created as a website. Run the sample and double click on “NumCol” cell in order to get cell in edit mode. It will show DropDownProvider. When you click DropDown button it will show grid in the DropDown area. You can select row and it will show the selected row data based on text field in grid cell. I have tested this sample using NetAdvantage 12.1.20121.2072, IE 9, and Visual Studio 2010.
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.
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: