Issues/Confusion with Filtering Flexgrid

Posted by: matth on 13 October 2017, 6:54 am EST

    • Post Options:
    • Link

    Posted 13 October 2017, 6:54 am EST

    Ok so when I filter using the first text box that displays when clicking the filter button, the filter returns a maximum of 255 items. But if I use a condition to filter, using contains I return all of the items I expect. Is there a way to ensure that the filter returns the appropriate amount whichever way it works?

    Thanks,

    Matt

  • Posted 15 October 2017, 10:05 pm EST

    Hi,

    Thank you for your query. We are looking into it and we shall get back to you on this soon.

    Thanks,

    Abhishek

  • Posted 16 October 2017, 9:36 pm EST

    Hi Matt,

    In a simple filterable grid, I cannot reproduce this. I tried with the following cases:

    1. Binding with DisableServerRead true and false.
    2. Binding with and without Paging.

    Can you share a sample or code?

    ~nilay

  • Posted 23 October 2017, 5:35 am EST

    Sure thing!

    @(Html.C1().FlexGrid<ItemViewModel>()
                    .Id("flexGrid")
                    .ShowGroupPanel(s => s
                        .MaxGroups(Convert.ToInt32(4))
                        .Placeholder("Please add columns for grouping here")
                        .HideGroupedColumns(Convert.ToBoolean(false)))
                    .Height("78vh")
                    .AutoGenerateColumns(false)
                    .GroupBy("SprayLineId")
                    .AutoClipboard(true)
                    .AllowResizing(AllowResizing.Columns)
                    .AllowAddNew(false)
                    .AllowDelete(false)
                    .Bind(b => b.DisableServerRead(true).InitialItemsCount(100).Bind(Model)
                    .Update(Url.Action("GridUpdate")))
                    .SelectionMode(SelectionMode.ListBox)
                    .Columns(bl =>
                    {
                        bl.Add(cb => cb.Binding("ItemName").Header("Name").Width("250").IsReadOnly(true));
                        bl.Add(cb => cb.Binding("ItemDesc").Header("Description").Width("*").IsReadOnly(true));
                        bl.Add(cb => cb.Binding("SprayLineId").Header("Spray Line ID").Format("0").Width("120").IsReadOnly(false));
                    })
                    .Filterable()
                    .CssClass("grid")
        )
    

    https://www.screencast.com/t/TvrD5MFivki

  • Posted 26 October 2017, 12:35 am EST

    Hi,

    With the same code, I can see no issue and the sample seems to filter fine. Do you have any sample where this could be debugged?

    ~nilay

  • Posted 26 October 2017, 8:11 am EST

    Did you watch the screen cast?

  • Posted 27 October 2017, 12:17 am EST

    Hi,

    Yes I can see the issue in the screen cast, but with this code in an isolated sample, the issue is not reproducible.

    If you have any project where I can debug this issue, it would be helpful.

    ~nilay

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels