ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
MVC Grid size increases on every refresh from client side data('api').load -
Title:
B
I
{code}
?
I'm doing refresh grid using data('api').load, if I check developer tools - post size of api increases automatically on every server call.
Save Changes
Cancel
Datta
asked at 18 Dec 2015
tried in the demo on multiple pages, getting about 2.1KB size for each request, any special configuration, parents, load parameters that you have set for that grid ?
at 18 Dec 2015
Omu
This is how I have declared the grid. by default grid is not loaded. later reload the grid using data('api').load @(Html.Awe().Grid("Grid").Url(Url.Action("GridGetCoursesItems")).Columns(columns.OrderBy(o => o.Order).ToArray()).Parent("PageSize", "PageSize").Load(false).Resizable(true).SingleColumnSort(true)) on btn click it doing load call and retrieve data from server $('#Grid').data('api').load({ params: { whereClause: whereClause }, oparams: { page: 1 } });
at 18 Dec 2015
Datta
maybe it's your whereclause, in chrome dev tools you can click on the request and see on the "Headers" tab what FormData is being sent, so you could see exactly what info is getting bigger
at 18 Dec 2015
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK