The requirement is to allow the user multiple rows in a combo/ drop down. That is the user will click on drop down there will be a grid with all the values and the user should be able to select (using a checkbox) multiple rows in the drop down.
If the possible?
also what is the difference between a Ulrta Combo and a Drop down
Hi,
Let me start with your second question first. UltraCombo is a standalone control. You can place it on a form all by itself and it's like a ComboBox. The UltraDropDown cannot be used on it's own, because it has no text portion. It's meant to be used as a drop down in a grid cell.
Neither UltraDropDown nor UltraCombo support multiple selection.
But you can create your own multi-select combobox pretty easily using other Infragistics controls.
What you do is use an UltraTextEditor and an UltraWinGrid. On the UltraTextEditor, you use the ButtonsRight collection to add an DropDownEditorButton and set the button's Control property to the grid. Presto, instant dropdown grid. You will have to handle some events to decide what happens to the text portion when the user selects values in the grid and to select the appropriate values in the grid when the user drops down the list.
is it possible to do your solution for web? Im using Infragistics v5.1
if possible can you show me how since I'm a beginner in infragistics.
Hi Mike,
Our requirement is to allow the user multiple rows (around 5000 rows) in a combo/ drop down. This combo dropdown should have two columns (may be col1 and col2) displayed and user should be able to Auto-select only col1. This seems to be a by default behavior of the UltraCombo.
Now what we are looking forward to is that
1) when user types-in the UltraCombo then we should be able to search in both the columns i.e. col1 as well as col2 but the Combo Editor will receive values only from col1.
2) Also, User should be able to select more than 1 values using inline search functionality of the UltraCombo.
Example:-
there are 4 row in the UltraCombo
col1 col2
microsoft MicSof
Oracle Corp OraCor
Virgin Atlantic VirAtl
Visit Organic OrgVis
1) If user types in "Or" in the Combo editor then the drop down rows should be filtered not just on Col1 but also on Col2 and then gets sorted based on Col1 and the expected result is two rows in combo drop down (Oracle Corp, OraCor) & (Visit Organic, OrgVis) and "Oracle Corp" should be selected in the Combo editor.
2) and now once user has selected "Oracle Corp" in the Combo editor, then on Enter key the value ""Oracle Corp" stays there in the combo editor and user should be able to Auto-select some other value from the complete list of 4 values making it two values in the Combo editor.
Is it possible using UltraCombo?
otherwise, can you please some other infragistics control for this requirement.
I thikn you would have to create you own combo for this, I don't think you could get all this functionality using just the UltraCombo. But by using an UltraTextEditor and an UltraWinGrid in a DropDownEditorButton, you could do whatever you want.
Are there any code examples of doing this? I'm completely new to using infragistics and I have an app that requires a multi select drop down control. It would be very helpful to see this implemented in code if that exists somewhere.
Thanks!
No, I don't know of any samples of this. What you probably have to do is trap the CellChange event of the grid and search the list in the dropdown to find the matching item, then update the text in the cell. This is not a trivial task, either.
Is there a multi select list box available? Hoping to find a solution for multi selection in a wingrid without having a develop some kind of custom control!
Yeah, you definitely cannot mix references from different versions in the same application.
Hi, Mike.
I solved the problem. apparently taking the approach of replacing one v7.3 with v9.1 reference at a time was not good. I replaced all the references on v7.3 with v9.1 and is purring like a kitten.
I don't see why you would be getting an error on that line of code. The CellClickAction property has been around forever, it's not new.
Is there more detail available about the error?
Can you post the rest of the InitializeComponent code - sometimes VS reports the error on the wrong line and it's really one line above or below that is causing the problem.
I'm sure this is doable in v7.3 but just need a little help. I took the C# sample from the website. I had to add my 7.3 as a reference and removed the 5.2 references. I now get a compile error:
Warning 1 The designer cannot process the code at line 76:
this.UltraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.Edit;
The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
From what I understand, this is native to v9.1 and higher?
Dim b As New Infragistics.Win.UltraWinEditors.DropDownEditorButtonb.Control = Me.UltraGrid1Me.UltraTextEditor1.ButtonsRight.Add(b)