This is a migrated thread and some comments may be shown as answers.

custom function for previewFormat

3 Answers 129 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Bridge24
Top achievements
Rank 1
Iron
Iron
Bridge24 asked on 28 Apr 2020, 01:44 PM

Hi, I just discovered your filter component and that's exactly what we need for bridge24.com.

I tried it in that dojo, to find how I can use it with custom data source (users, ...), change the operators, add new types, ... and it works fine.

You can see my tests there

https://dojo.telerik.com/@foxontherock/iYelAJiP/4

There is 1 thing I was unable to do, it's use a previewFormat for values that are array of id, exemple "users" (multi) in my example.

Data values are [1,3], an array of "id". 

Is it possible to use a function in the previewFormat property, to return usernames instead of useridin the expressionPreview property?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 30 Apr 2020, 11:03 AM

Hello,

 

I am afraid that currently using a function for previewFormat is not available. Nevertheless, you can submit a feature request in our feedback portal.

https://feedback.telerik.com/kendo-jquery-ui

 

We prioritize the requests based on the votes they gather and also on the impact a given feature will have on the product.

 

Regards,
Viktor Tachev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Frederic
Top achievements
Rank 1
Veteran
Iron
answered on 02 Jun 2020, 08:35 PM

Thank you.  If I can't set a function, now I need to just dont't show some specific items.

Is there a format I can use to always return empty?

0
Viktor Tachev
Telerik team
answered on 04 Jun 2020, 12:31 PM

Hello Frederic,

 

The previewFormat option can be set to a valid format string. If an invalid value is used it will be ignored. 

If you would like not to show the filter expression I suggest setting the expressionPreview option to false.

 

Regards,
Viktor Tachev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Filter
Asked by
Bridge24
Top achievements
Rank 1
Iron
Iron
Answers by
Viktor Tachev
Telerik team
Frederic
Top achievements
Rank 1
Veteran
Iron
Share this question
or