Ticket T727544
Visible to All Users

DataGrid - AspNet.Data - An error occurs if request contains a lot of parameters to the server

created 6 years ago

[DevExpress Support Team: CLONED FROM T707120: How to filter data with DataSourceLoadOptions on the server]
Hi Ilya,

Here is one issue i found in above code like if suppose i have more than 200 CCount selected row by user then it is throwing client side error like 404 not found. When i checked in Network tab of Developer tools in browser then get to know that when application url is passing CCount value as Query string then it reaches the limit of it and due to it is throwing error.

Kindly provide the solution for it.

Thanks,

Vikash

Answers approved by DevExpress Support

created 6 years ago

Hi Veera,

It looks like you encountered the issue described at DataGrid cannot pass a long filter expression to the server after the selectRows method is used. The DevExtreme.AspNet.Data library provides the LoadMethod option in the recent versions. If you set it to "POST", all parameters will be passed in the request body. Please review the attached example illustrating this idea.
Note that DevExtreme.AspNet.Data documentation is located on GitHub. I recommend you use it to see what options and methods can be used for different cases.

Let us know if you have additional questions.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.