Hi,
I am building the columns from a server side controller with below code in Index.chtml for Grid:
columns: @Html.Raw(Model.GridColumnPropertiesJson)
and in controller we are writing the .Net object GridColumnPropertyModel -->FilterablePropertyModel --> UI[string] and then generating JSON using seriailzer.
All works fine but when I try to provide a javascript function to UI property as in below code:
Model.Filterable = new FilterablePropertyModel { UI = "function(element) { myOwnFunction(element, '" + gridFieldName + "'); }" };.
It fails to recognize the myOwnFunction.
Is there a way to make sure myOwnFunction is called passing the colName from server side?
Regards,
Swatantra