Filter not working on radGrid

1 Answer 11 Views
Filter Grid
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Rakhee asked on 15 Apr 2025, 01:02 PM

I have created an application within Visual Studio 2019 and using c#.

The project has a page which uses a telerik RadGrid. It is populated on page load and I have filtering enabled on 3 of the columns. I have set the aspx for the columns to have AutoPostBackOnFilter="true" AllowFiltering="true"  ShowFilterIcon="true"

The runs perfectly when ran in development environment but when I publish my application to the web server the filter does not work at all. Nothing happens if I tab out of the filter text box or if I select anything from the filter icon.

Can anyone advise what the issue could be please? I am using Telerik.web.ui version 2024.1.131.45

Thanks

RR

1 Answer, 1 is accepted

Sort by
0
Vasko
Telerik team
answered on 18 Apr 2025, 12:13 PM

Hello Rakhee,

Can you please check your web.config file and see whether RadCompression is enabled? If yes, please remove it and see whether the problem persists. If that does not fix the issue, here are a few steps to help troubleshoot and resolve the filtering not working after deploying your application to a production environment:

  • Open the browser's Developer Tools and inspect the console for any JavaScript errors or warnings when trying to use the filter. Errors like TypeError: $find(...) is null suggest that the client-side scripts might not be loading correctly.

  • Ensure that all necessary Telerik script resources are correctly deployed and accessible in the production environment. Check that the Telerik.Web.UI.WebResource.axd handler is configured correctly in your web.config. Confirm that the script files are not blocked by any security settings on the server.

    • Turn off AJAX on your page to see if any server-side errors are being hidden. This can help identify server-side issues that aren't visible due to AJAX.

    • Compare your development and production configurations for discrepancies, particularly in web.config settings related to script management and authorization.

    • Check server-specific settings, such as IIS configurations, that might affect script execution or resource loading.

    If these steps do not resolve the issue, please provide more details about any errors you encounter or any differences between your development and production environments. This information can help further diagnose the problem.

    Please refer to the following articles for additional information:

    Regards,
    Vasko
    Progress Telerik

    Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

    Rakhee
    Top achievements
    Rank 1
    Iron
    Iron
    Iron
    commented on 22 Apr 2025, 08:36 AM

    Thank you for your comments, I have an error below when using the filter, can you advise what it means?

    Vasko
    Telerik team
    commented on 25 Apr 2025, 06:01 AM

    Hello Rakhee,

    Thank you for the screenshot provided. From it, it is clear that filtering doesn't work due to a JavaScript error; however, it is not enough to help me identify why the error occurred. Can you share more details regarding the Grid configuration, like markup/code behind?  Ultimately, isolating the issue in a runnable sample project and sending it for investigation would help drastically in troubleshooting it.

    I look forward to your reply.

    Regards,
    Vasko
    Progress Telerik

    Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
    Tags
    Filter Grid
    Asked by
    Rakhee
    Top achievements
    Rank 1
    Iron
    Iron
    Iron
    Answers by
    Vasko
    Telerik team
    Share this question
    or