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

"overload" LoadSettings

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 09 Apr 2018, 05:39 PM

I need to call LoadSettings (via razor) as per a previous post; In short I need to call LoadSettings, but I also need to be able to set columns to be multi-select fitlerable.

 

How can I call LoadSettings and then do additional settings that are not yet implemented via LoadSettings? Can I overload LoadSettings in some way? Is the implementation of LoadSettings available? Is it likely to be re-implemented in the future?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 11 Apr 2018, 01:26 PM
Hello Alex,

I understand that your project requires using the LoadSettings configuration. However, for the time being, there is no straightforward way to do that. What I would suggest is one of the following workarounds:

1) After the Grid initialization, use the JavaScript setOptions method to set new columns with the desired configurations.
2) Set the column using the approach outlined in this demo:
For example:

.Columns(columns =>
{
    columns.Bound(p => p.ProductName).Filterable(ftb => ftb.Multi(true).Search(true));
    columns.Bound(p => p.UnitPrice).Width(140).Filterable(ftb => ftb.Multi(true)).Format("{0:c}");
    columns.Bound(p => p.UnitsInStock).Width(140).Filterable(ftb => ftb.Multi(true));
    columns.Bound(p => p.Discontinued).Width(100).Filterable(ftb => ftb.Multi(true));
    columns.Command(command => command.Destroy()).Width(110);
})

Furthermore, I checked the feature request, and it has small interest from our community. Thus, implementing it is not in a high priority, for now. 


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or