I have a simple grid where two columns are of type dropdownlist (Not webcombo)
On the client, in the BeforeEnterEditModeHandler event, I need to get one of the dropdownlists to set a filter on it, using selectWhere method.
I have done this with webcombos using igcmbo_getComboById, but is there a similar way to find the dropdownlist?
This sounds like you're using a ValueList. A ValueList doesn't exist as a standalone control, so there's no function similar to igcmbo_getComboById() to get a reference to it. Additionally, a ValueList does not have selectWhere() functionality or any other kind of filtering capabilities.
You'll need to use WebCombo if you want to use selectWhere functionality.
Thanks that answers my question. Then I need to solve this with webcombos, and that's what's hard to do properly.
What I am trying to achieve is simple: I need 2 columns with webcombos, where the second combo gets filtered according to the value in the first. I thought this should be easy, and implemented a similar solution to what's done in the sample "Dynamically Populated WebCombo" : https://ko.infragistics.com/samples/aspnet/data-grid/dropdown-editors
To be able to use clientside selectWhere method on the combo, I think "EnableXmlHTTP" must be set to true. Problem is that EnableXmlHTTP=True seems to have a flaw: On som of the rows it makes the cell show only the DataValueField, on others it correctly shows the DataTextField.
If I change to EnableXmlHTTP=False then each cell in the column correctly shows DataTextField. But the selectWhere does not work.
I have doublechecked the datatypes, from SQL they are Int for DataValueField and String for DataTextField, and I have used "System.Int32" as the ultragridcolumns datatype.
Any clues? Is this a known bug or am I doing something wrong. Do you know any real-life examples out there? (The adjustablecombo sample is not a good one because it does not show the grid with multiple rows. I suspect multiple rows in that example would have the same problem I'm experiencing)
yes but it doesn't address the issue here. the example doesn't postback, so it doesn't show the problem of the datavaluefield showing instead of the datatextfield after the postback.
You can find example at Infragistics Web Site,
https://ko.infragistics.com/samples/aspnet/data-grid/dropdown-editors
Select Grid -> WebCombo -> Dynamically Populated WebCombo
Did you ever find a solution to this? I'm having the same issue.