Filter Multi Checkboxes w/ LoadSettings

6 posts, 0 answers
  1. Alex
    Alex avatar
    54 posts
    Member since:
    May 2015

    Posted 13 Jul Link to this post

    re: https://demos.telerik.com/aspnet-mvc/grid/filter-multi-checkboxes

     

    Is there a way to do filtering with check boxes but via LoadSettings? There does not seem to be a property in 'Field' that corresponses to 'Multi'

  2. Stefan
    Admin
    Stefan avatar
    1150 posts

    Posted 17 Jul Link to this post

    Hello Alex,

    I can assume that with LoadSettings means that the Grid will be loaded with a JSON formatted setting coming from the server for example.

    If this is the case, then the multi property is set via columns[i].filterable.multi = true.

    A similar format can be observed in our jQuery demo:

    http://demos.telerik.com/kendo-ui/grid/filter-multi-checkboxes

    If my assumption is not correct, please provide more details about the scenario and I will gladly assist.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Alex
    Alex avatar
    54 posts
    Member since:
    May 2015

    Posted 17 Jul in reply to Stefan Link to this post

    No, I am using the Razor function, wee below. "Model.Columns" is a list of objects that descend from "GridColumnSettings". GridColumnSettings does not contain a property called Filterable. The only thing filter related it contains is called "FilterUIRole", which is an enum. It seems the value I want to set doesn't even exist.

    @(Html.Kendo().Grid<dynamic>()
        .ToolBar(toolBar =>
        {
     
            toolBar.Template(
                @<text>
                    @Helpers.ToolbarTemplate(this, Model)
                </text>
                );
        })
        .Name(gridName)
        .Columns(columns => {
            columns.Select().Width(50);
            columns.LoadSettings(Model.Columns);
        })

     

  4. Stefan
    Admin
    Stefan avatar
    1150 posts

    Posted 19 Jul Link to this post

    Hello Alex,

    Thank you for the clarification.

    Indeed, not all of the properties are available when using the LoadSettings option.

    I logged an issue in our GitHub repository for adding all of the other options.

    In the meantime, I can suggest using the other approach for setting the column options:

    .Columns(columns => {
        columns.Bound(p => p.OrderID).Filterable(false);
        columns.Bound(p => p.Freight);
        columns.Bound(p => p.OrderDate).Format("{0:MM/dd/yyyy}");
        columns.Bound(p => p.ShipName);
        columns.Bound(p => p.ShipCity);
    })

    Apologies for the inconvenience this may have caused you.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. Alex
    Alex avatar
    54 posts
    Member since:
    May 2015

    Posted 19 Jul in reply to Stefan Link to this post

    Can I get some more information about that "issue", i.e. priority, status, etc?

    I need to use the LoadSettings method because we have a re-usable grid control that we built using the kendo grid.The alternative is not doable.

  6. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1768 posts

    Posted 21 Jul Link to this post

    Hi Alex,

    You can monitor the status of the issue in our feedback portal in the following link. Furthermore, other users can also vote for the feature in order to increase its priority.




    Regards,
    Viktor Tachev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 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