We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem with filter and scrollbar

Hi,
I have a Grid with excel filter and scrollbar. I have changed the sample page grid/filteringmenu in this way:
    @(Html.EJ().Grid<EditableOrder>("Filtering")
        .Datasource((IEnumerable<object>)ViewBag.datasource)
        .AllowFiltering()
        .EnableHeaderHover()
        .FilterSettings(filter => { filter.FilterType(FilterType.Excel); })
        .AllowScrolling(true)
        .ScrollSettings(col => { col.Width("auto").Height("500"); })
        .PageSettings(page => { page.PageSize(50); })
        .AllowPaging(true)
        .IsResponsive(true)
        .Columns(col =>
        {
            col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(80).Add();
            col.Field("CustomerID").HeaderText("Customer ID").Width(100).Add();
            col.Field("EmployeeID").HeaderText("Employee ID").TextAlign(TextAlign.Right).Width(110).Add();
            col.Field("Freight").HeaderText("Freight").TextAlign(TextAlign.Right).Width(80).Format("{0:C2}").Add();
            col.Field("ShipCountry").HeaderText("Ship Country").Width(100).Add();
            col.Field("Verified").HeaderText("Verified").Width(90).Add();
        })
    )

The problem is that if I use the filter the scrollbar moves to the left. Can you please check the problem and help me?
Thank you.
Best regards,
Stefania Solari


3 Replies

BM Balaji Marimuthu Syncfusion Team March 21, 2016 06:59 AM UTC


Hi Stefania,

Thanks for contacting Syncfusion support.

We have created a sample using provided code example and checked the mentioned issue. But we were unable to reproduce the reported issue from our side, the scrollbar doesn’t move to the left after performed the filtering operation. Sample: 

We have recorded the demo for your reference:  
filter

Kindly check the attached sample and video. If you still face the issue ,could you please share following information to reproduce the issue from our side, that will be helpful to provide a better solution at the earliest?

1.     Scenario to reproduce the issue.

2.     Essential studio & Browser version details.

3.     Sample if possible or modify the attached sample as issue reproducible.

4.   How do you change the filtering type Excel to Menu? We have set the filter type as below. Or Are you changing the filter type dynamically?


    .FilterSettings(filter => { filter.FilterType(FilterType.Menu); })

      

      


5.   Are you facing the issue with Menu filter or both filtering(Excel and Menu filter)?


Regards,
Balaji Marimuthu



SS Stefania Solari April 4, 2016 05:11 PM UTC

Thank you for your answer. I've made som test and I've solved my problem.
Best regards,
Stefania Solari

Attachment: Cattura_89553d7a.rar


PK Prasanna Kumar Viswanathan Syncfusion Team April 5, 2016 06:55 AM UTC

Hi Stefania,

We are happy to hear that your issue has been resolved.

Please let us know if you need any further assistance.

Regards,
Prasanna Kumar N.S.V

Loader.
Up arrow icon