ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to improve performance when use huge awe-control
Title:
B
I
{code}
?
I mvc project I use Edittemplete for editFor And In Edittemplete view which have awe-control such as AjaxDropdownFor LookupFor And I bind editFor with list<object> then render more object (about 40 object) So my page response very slow !!!! and browser show warning message for long time process . for ask me waiting or end process when debug code at browser , problem cause is from , it lose time for call server-code for getItem with each awe-control in Edittemplete Please suggest me solve this problem
Save Changes
Cancel
nutfergie
asked at 06 Jun 2018
for AjaxDropdownFor look like I can solve via DataFunc https://demo.aspnetawesome.com/ClientDataLoadingDemo but for LookupFor I have not found solution yet , pls suggest me.
at 06 Jun 2018
nutfergie
Answers
B
I
{code}
?
I think the problem must be somewhere in your code, you can try adding a new page in our main demo, or minsetupdemo with this code: @for (var i = 0; i < 100; i++) { <p> @(Html.Awe().Lookup("lookup" + i).Controller<MealLookupController>().Value(Db.Meals[1].Id)) </p> <p> @(Html.Awe().AjaxDropdown("add" + i).Url(Url.Action("GetCategories","Data"))) </p> } You'll see that the page will load in `1 sec`
Save Changes
Cancel
Omu
answered at 07 Jun 2018
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