Hello,
When i am using FilterUIType -> FilterRecord i don't find "All" as a dropdownfilteroption in my xamgrid
<igdatagrid:XamDataGrid.FieldLayoutSettings> <igdatagrid:FieldLayoutSettings FilterUIType="FilterRecord"/> </igdatagrid:XamDataGrid.FieldLayoutSettings>
However if i use LabelIcons as a FilterUIType then i can see "All" dropdownfilteroption but then there is no editable combobox.
<igdatagrid:XamDataGrid.FieldLayoutSettings><igdatagrid:FieldLayoutSettings FilterUIType="LabelIcons"/></igdatagrid:XamDataGrid.FieldLayoutSettings>
Does anyone have nay idea how to add "All" as a dropdownfilteroption in my xamgrid using FilterRecord as a FilterUiType
Thanks,
Saurabh
Hello Saurabh,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hello Stefan,
I did the same you mentioned above in the code but for this i had to remove filter conditions because All filter don't have any filter condition. It shows all the data in the grid.
Anyways thanks for your reply. It assures me that is the only way to achieve All filter in "FilterRecord"
Thank you for your post. I have been looking into it and I can say that there is no “ALL” item in the ComboEditor, because when the FilterUIType is FilterRecord a clear button appears when you set filter which has the same functionality as the ALL item, but if you still want to add such item you can handle the XamDataGrid’s RecordFilterDropDownOpenning event and write the following handler:
FilterDropDownItem fddi = new FilterDropDownItem(DataPresenterCommands.ClearActiveCellFilters, "(ALL)"); private void xamDataGrid1_RecordFilterDropDownOpening(object sender, RecordFilterDropDownOpeningEventArgs e) { if (!e.DropDownItems.Contains(fddi)) { e.DropDownItems.Insert(0, fddi); } }
Please let me know if this helps you r you need further assistance on this matter.
Looking forward for your reply.