Hi,
I have an issue with Integer and Boolean column filters in Gridview, it's always displaying blanks in the filter value suggestions.
I attached a screenshot to show the issue.
Thank you.
5 Answers, 1 is accepted
Hi Karim !
I've found something that might interest you.. You could override default behavior by attaching to the DinstinctValuesLoading event of your RadGridView.
Then create your own distinct list of values from int to string for instance.
Don't forget to test the filtered column to apply the custom list to the desired ones.
See ya,
Lun@ir
As such issue is not known to us, would it be possible for you to reproduce it in a sample project and attach it in a new support ticket? You can take a look at the Isolating a problem in a sample project blog post for further reference.
I am looking forward to hearing from you.
Best Regards,
Stefan X1
Telerik
Hello Karim,
Is it working if you apply a string format in your bindings ?
Hi,
@Stefan unfortunately the issue is not reproducible in a sample project, when i do that it works fine. But i have found a turn around to resolve it in my project, it consist to just make a format to the data binded to the column that has issue in it's filtrer. Here the code :
<
telerik:GridViewDataColumn
Header
=
"{Binding Path=StringResource.LabelSearchOTNum, Source={StaticResource LocStrings}}"
Width
=
"auto"
DataMemberBinding
=
"{Binding IdOT}"
DataFormatString
=
"{}{0:N0}"
/>
Regards.
<
telerik:GridViewDataColumn
Header
=
"{Binding Path=StringResource.LabelId, Source={StaticResource LocStrings}}"
Width
=
"auto"
DataMemberBinding
=
"{Binding Id}"
DataFormatString
=
"{}{0:N0}"
/>
<
telerik:GridViewDataColumn
Header
=
"{Binding Path=StringResource.LabelId, Source={StaticResource LocStrings}}"
Width
=
"auto"
DataMemberBinding
=
"{Binding Id}"
DataFormatString
=
"{}{0:N0}"
/>
<
telerik:GridViewDataColumn
Header
=
"{Binding Path=StringResource.LabelId, Source={StaticResource LocStrings}}"
Width
=
"auto"
DataMemberBinding
=
"{Binding Id}"
DataFormatString
=
"{}{0:N0}"
/>
I am glad that this approach is working for you.
Do not hesitate to contact us in case you have any other questions on our controls.
Best Regards,
Stefan X1
Telerik