I have a requirement to use a dropdown checkbox list in a grid. Each cell in this column should display the concatenation of the 'name' field of the checked items in its list.
I have done this before with a good deal of tinkering--see the post "Adding Checkbox List As Dropdown From Text Editor In Grid Cell", towards the bottom.
However, now I have available the new Infragistics CheckedListSettings, and am wondering: what is considered the 'best practice' for creating and using DataSources for an UltraCombo editor control set as a checkbox list that is assigned to a grid column? What is the easiest way to use this functionality? Anything to streamline the current approach (which is onerous) would be helpful.
Thanks,
J
Awesome, works! Sorry that took so long.
Thanks again for all the help. Only thing I would say is that your last reply doesn't show up in the thread when I access the thread from Forums --> My discussions --> then the thread.
Your reply *does* show up when I click on the link to it from my e-mail notification. The difference seems to be that your latest reply has the thread located in community.infragistics.com/forums, whereas when I access the thread through My Discussions, it takes me to forums.infragistics.com; this may cause confusion for other users.
Peace,
I took a quick look.I think the problem is that you are setting the Column Style to DropDownList. This style requires that the value of the cell match an item on the list and this case that will never happen. So if I turn off DropDownList style, it seems to work okay, at least in the first sample (DropdownCheckboxTestColumnMethod).
Hey Mike,
I got it to work in the sense that the dropdown properly checks the right rows and the cell itself has the right text; however, I get a data validation error when I try to leave the cell.
I also tried doing the other way you suggested, converting the data over from the cell with the List<int> to the unbound List<object> cell in InitializeRow, then pulling the data back out in BeforeRowUpdate. Same error. I've attached both examples, I'm calling the first attempt the Column method and this second attempt using InitializeRow the Row method.
I'm hoping you can take a look and see what I'm screwing up now. I know this has been a long and time-consuming thread, and I really appreciate your continued help.
//dt.Columns.Add("FUNDING_SOURCES", typeof(List<object>));dt.Columns.Add("FUNDING_SOURCES", typeof(object));
Now funding source will be a column in the grid instead of a set of child bands. It still contains a list<object> though. Once I do this, it works fine, except that your checked column is never getting added because you are not hooking InitializeLayout on the Combo until after you have already set the data source. So you need to make sure you hook the event before you set the DataSource on the combo.
Infragistics - Mike Saltzman said:You can't do this on the grid, you would have to do it on your data object class so that the actual property returns an object.
These are probably stupid questions, but what property do I need to have return an object? Is this for the class T that is in the list?