"overload" LoadSettings

2 posts, 0 answers
  1. Alex
    Alex avatar
    71 posts
    Member since:
    May 2015

    Posted 09 Apr Link to this post

    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?

     

     

     

  2. Preslav
    Admin
    Preslav avatar
    439 posts

    Posted 11 Apr Link to this post

    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.
Back to Top