This is a migrated thread and some comments may be shown as answers.

DataSourceRequest is null (Passing too much data?)

3 Answers 390 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ricky
Top achievements
Rank 1
Ricky asked on 02 Apr 2020, 02:29 PM

I have a multiselect that I am using to filter the data for a graph. When I select a small number of items from the multiselect everything is working properly. However, when I select 1100 items from the multiselect, the DataSourceRequest is null. Is there a data limit that I have hit? Can I get pass it and actually pass all 1100 item?

I have attached screenshots for context. And here is the .Read call

.Read(read => read.Action("SampleMethodTest", "MyController").Data("MultiSelectFilterValue"))

 

Thanks,

Ricky

 

 

 

3 Answers, 1 is accepted

Sort by
0
Ricky
Top achievements
Rank 1
answered on 02 Apr 2020, 05:59 PM

Please see attached sample project. Selecting all items will cause a null datasourcerequest. FYI. The data refresh happens after closing the multiselect (i.e. click "select all" -> open and close the multiselect -> fires the event to send data).

Thank you,

-Ricky

 

0
Aleksandar
Telerik team
answered on 06 Apr 2020, 02:20 PM

Hi Ricky,

Thank you for the provided details. When submitting FormData there is a limit in the number of fields submitted with the form - 1024. The issue occurs as the amount of fields is being exceeded. You can read more about the issue in this StackOverflow thread:

https://stackoverflow.com/questions/38357108/form-submit-resulting-in-invaliddataexception-form-value-count-limit-1024-exce

To resolve it you can try and set the RequestLimitsForm attribute for the count of values per form and configure the MaxModelBindingCollectionSize to increase the size of the collection to bind to a model.

I hope the above helps resolve the issue.

Regards,
Aleksandar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Ricky
Top achievements
Rank 1
answered on 07 Apr 2020, 02:11 PM

Thank you for the links.

 

Tags
General Discussions
Asked by
Ricky
Top achievements
Rank 1
Answers by
Ricky
Top achievements
Rank 1
Aleksandar
Telerik team
Share this question
or