I see that the GetList action is called two times, one with the request pageSize = 0, and other with the request pageSize = 10
Is there any problem in my code? Is it a nomal behaviour?
3 Answers, 1 is accepted
answered on 12 Oct 2015, 06:50 AM
Indeed, this is the designed behavior. The controller action is called multiple times as the grid's DataSource is cloned and assign as DataSource for the AutoComplete widget inside the filter row. This is due to the fact that no specific DataSource is set via the Column filterable settings. You can assign a separate DataSource for the filter row cell similar to the following:
Ok. I now understand why I get two read requests with one of page size 0. I also see that i can put a separate Action on this request so it goes to a different method. My question is what am i suppose to return? What is the point of it? What is it used for?
answered on 21 Feb 2018, 08:32 AM
Regarding the questions:
1) The data which should be shown in the AutoComplete filter has to be returned.
2) The point and the use of it are that the developer may need to return a different set of data for the AutoComplete. For example is the scenario, where the user may be allowed to filter only on some of the value not all of them.
Let me know if you need additional information on this matter.