I use a UltraComboEditor control with checkboxes as a EditorComponent of a UltraGrid Column.
The UltraGrid Column is bound to a SQL Server varchar(1000) column.
I want to display inside this column a series of Bank Branches, the user can check the Branches he wants and two things should happen:
1. The UltraGrid Cell should display the selected Branches (using DisplayMember values separated by the defined ListSeparator: ";"). This happens fine, I see for example: BRANCH 200;BRANCH 201;BRANCH 202;BRANCH 203
2. The relevant data cell should contain the selected Branch's IDs (using ValueMember values) separated by the defined ListSeparator: ";" for example: 200;201;202;203. This doesn't happen. Instead I get the same value BRANCH 200;BRANCH 201;BRANCH 202;BRANCH 203 as above.
A sample of the code I use is:
uceActiveForBranchList.DataSource = dsReports.Tables(0) uceActiveForBranchList.DisplayMember = "BranchDescr" uceActiveForBranchList.ValueMember = "BranchId" uceActiveForBranchList.CheckedListSettings.CheckBoxStyle = CheckStyle.CheckBox uceActiveForBranchList.CheckedListSettings.EditorValueSource = EditorWithComboValueSource.CheckedItems uceActiveForBranchList.CheckedListSettings.ListSeparator = ";" uceActiveForBranchList.CheckedListSettings.ItemCheckArea = ItemCheckArea.CheckBox e.Layout.Bands(0).Columns("ActiveForBranchList").EditorComponent = uceActiveForBranchList
I use version 10.1.20101.2053 of Infragistics2.Win.UltraWinEditors.v10.1
and Infragistics2.Win.UltraWinGrid.v10.1 components.
What can I do to make this work as I want?
Hello Andres,
This seems like an odd behavior to me. Please take a look at my sample.
Did a solution was ever found for this?
Desired behavior is:
Assuming DataSource is a table with columns Id, Description (ex 1, "Option1", 2, "Option2", 3, "Option3")
Any luck?
Thanks!
Hi,
I have the same requirement as mentioned below:
1) UltraComboEditor with multi select option (Implementation Done).
2) Selected item shiould be displayed in the comma seperated manner with display member (Implementation Done)
3) Retreiving data on the selected item but value member should be considered rather than display member.(Not done)
4) after the saving the same when we retreive it ,same thing should be displayed in the UltracomboEditor as we were having at the time of saving.
Please reply to this atthe earliest because we need it on urgent basis.
Many Thanks,
Rajeev Ranjan
Hello Probank,
I am still following this forum thread.Please feel free to let us know if you have any other questions with this matter.
This might be expected behavior, since the "EditorValueSorce" has been set to CheckedItems, so the ultraGrid cell value matches the text representation fo the checked items in the ultraComboEditor.If you would like to get what is the real value behind those checked items, you could do something like:
Dim li As List(Of Object) = TryCast(DirectCast(ultraGrid1.Rows(index).Cells(column key).EditorComponentResolved, UltraComboEditor).Value, List(Of Object))So the list will actually would contains the desired values behind the visual representation of the checkedItems.Please feel free to let us know if you have any other questions with this matter.