Hello,
I'm not sure what i'm doing wrong here, I get all the items I want in the valuelist I'm creating through code but
it doesn't want to appear as a dropdown in the filterrow for the column I want to use it for.
Following code is used to fill and attach the valuelist.
<code>
Dim valueList1 As New ValueList Dim valueListItem As ListItem Dim list As Dictionary(Of Integer, String) list = KlasseData.GetKlasseComboList() For Each key As Integer In list.Keys valueListItem = New ListItem(list(key), key) valueList1.ValueListItems.Add(valueListItem) Next valueList1.DisplayStyle = ValueListDisplayStyle.DisplayText Grid1.Columns.FromKey("WagKlasse").Type = ColumnType.DropDownList Grid1.Columns.FromKey("WagKlasse").FilterCollectionValues.ValueList = valueList1
</code>
Valuelist gets 10 items but the filterrow for the specific column stays an edit box.
TIA
W.
It really depends on where you execute the code. Are you doing it in the InitializeLayout event? In any case, I highly recommend the following forum thread for a real-world example of how to set filter options per columns:
https://www.infragistics.com/community/forums/f/retired-products-and-controls/625/filter-only-filtering-what-s-displayed/35611#35611
Please, let me know if this helps.
Hello Rumen,
Thx a lot for the link it solved me the another problem I had with filtering and paging where the filter results were spread out over the several pages.
Though I think it appears I cannot get a valuelist in the my filter using the Filterrow displaylayout. As this was what I wanted to implement because for some columns I didn't really want a dropdown filter , rather user input to filter the column.
Maybe there might still be a workaround though, I'll be looking further into this.