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

programmatically set column.filterable.ui

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 09 Jun 2016, 09:40 PM

Is there a way to programmatically set column.filterable.ui?

 

We are using the following

 filterable: { ui: function(element) { element.kendoNumericTextBox({ format: 'n', decimals: 10 });}}

to increase the number of decimals available to numeric columns.  However, we are having a problem serializing this using getOptions() and setOptions().  This data isn't retained when we use JSON.Stringify().  I can save data in the serialized json string that can allow me to recreate this; however, I have to be able to set the column.filterable.ui programmatically in order to restore it using the serialized json string.

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 13 Jun 2016, 02:53 PM

Hello Matt,

Indeed as mentioned in the setOptions article the JSON.stringify() cannot serialize function references (e.g. event handlers). There are two possible workarounds for this case explained in the article. 

Regards,
Boyan Dimitrov
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or