Hi,
I'm new in using the controls in infragistics so i hope you could help me. I'm trying to add a checkbox list in an ulragrid to represent the days of the week, so far the closest thing that i found was the WinListView. Is this the only control that can create a checkbox list? By the way, we already have the NetAdvantage 9.1 but we haven't tried the controls in it? Do you have any suggestions on how i can implemet the checkbox list in an ultragrid. You're help will be very much appreciated.
Cherry
I'm not sure if I am visualizing what you describe here correctly, but the grid itself can display checkboxes. If the data to which the grid is bound has (for example) a column of type System.Boolean, that column will appear with checkboxes by default.
If you want only one cell in the grid to show a list of checkable items, you could use the ValueList's new (2009.1) checkbox functionality, whereby the cell has a dropdown button which when clicked shows a list similar to a CheckedListBox.
With the 2009.2 release (available in October 2009), you will also be able to embed a control like the UltraListView within a grid cell, using the existing embeddable editor architecture.
Brian Fallon"] I'm not sure if I am visualizing what you describe here correctly, but the grid itself can display checkboxes. If the data to which the grid is bound has (for example) a column of type System.Boolean, that column will appear with checkboxes by default.
Thanks for the help. I'm referring to a checkbox list in one cell.
Brian Fallon"] If you want only one cell in the grid to show a list of checkable items, you could use the ValueList's new (2009.1) checkbox functionality, whereby the cell has a dropdown button which when clicked shows a list similar to a CheckedListBox.
When you said new in 2009.1 does that mean that the UltraGrid that i am using should be from 2009.1?
What you are trying to do with a list of checkboxes in a single grid cell? Are you saying you want a single cell to have say Sunday throught Saturday listed and then the user checks off which days they want?
Steve Smith said: What you are trying to do with a list of checkboxes in a single grid cell? Are you saying you want a single cell to have say Sunday throught Saturday listed and then the user checks off which days they want?
Yes that is exactly what I wanted. I used a UltraGrid displayed as a Card View. I was hoping that there is a way to do aside from using a dropdown.
Hi I have been trying to use the recommended solution but I could not get it to work. It just shows up as a normal dropdown. May I know if there are any sample code for this. I have tried all the versions including the 2009.1 and 2009.2 versions.
When is the planned 2009.2 release date?
chey386 said:I was hoping that there is a way to do aside from using a dropdown.
UltraComboEditor.CheckedListSettings.EditorValueSource = EditorWithComboValueSource.CheckedItems;UltraComboEditor.CheckedListSettings.CheckBoxStyle = CheckStyle.CheckBox;
Assuming the data type of the column can handle an array of integers (you can use object or object[]), each checked item's value will be included in that array, thus providing multiple selection of items. Since the cell value then reflects the multiple values, you could avoid having to use bitflags.
Another alternative is to create an embeddable editor from the UltraListView, so that you can embed it within the cell. This, however, can be a fairly intensive and time-consuming endeavor.
As I stated originally, the 2009.2 release will contain a mechanism by which you can wrap a control in a container that is designed to host an embeddable editor, alleviating most if not all of the grunt work involved in making a custom embeddable editor.
Yeah, you're right. My last resort is just to create a custom control separate from the UltraGrid. I was just hoping that there are better ways than doing that because I know that Infragistics is very powerful. Thanks for your prompt reply.
Ouch. That doesn't sounds like that is going to be a control drag and drop thing. If I had to do what you are doing today I'd be leaning towords creating a custom control with my checkboxes in it for each day of the week and then bit masking a value property to an integer based on the user selection and visa versa when the value is set. I'm not saying that is the only or best solution. Maybe one of these jedi master infragistics guys know a better way.