newfields.push({name: "Field 1", type: "string", label: "NEW Field 1" });
var filter = $("#viewdialogfiltercreator").getKendoFilter().setOptions({
expressionPreview: true,
fields: newfields,
applyButton: false
//expression: existingwhereexpression
});
0
Angel Petrov
Telerik team
answered on 19 May 2020, 02:01 PM
Hello Jeff,
Indeed calling the setOptions method is the way to go for this scenario as the widget in this case will re-initialize everything inside thus applying the new changes. Do not hestitate us to contact us again if you have any queries in regards of our controls.
Regards,
Angel Petrov
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.
This does not quite work. It puts an error into the console. I had to create a datasource with all the fields and then tie the datasource to the filter.