Hello, I have a WebGrid with 2 columns.
The second one I have set the property Type to
Infragistics.WebUI.UltraWebGrid.
ColumnType.DropDownList
But I want to add diferent items to the DropDownList depending of the row.
For example:
Row1 Column2 Values: red green blue
Row2 Column2 Values: car plane
¿Is it posible? If not, there are other ways to do this?
Greetings.
Hi fantur,
Please feel free to contact me if you have any further questions regarding this matter.
Thank you for posting in the community.
Note that UltraWebGrid columns of type Dropdownlist share the same item pool for all cells in that column. Therefore I suggest that you either use a templated column with dropdown controls in the item templates, or use an WebCombo editor to load items on demand for each row.
The following article illustrates how WebCombo can be assigned as an editor for an UltraWebGrid column:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebGrid_Display_WebCombo_in_a_Cell.html
You may also find useful information on how to initiate a callback to load WebCombo's items at:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebCombo_Create_Cascading_WebCombo_Controls_using_client_side_events.html
Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
Do not hesitate to contact me if you have any questions.