ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
problem with grid in partial
Title:
B
I
{code}
?
I use to grid in many PartialView with ajax,but after switch between PartialViews I saw this error on the console =>" Cannot read property 'lrs' of undefined " => at awem.js:2783 how can I solve this problem?
Save Changes
Cancel
dear
asked at 18 Dec 2018
Answers
B
I
{code}
?
it could be that you have are rendering the same partial multiple times, so you have more than 1 grid with the same id, for example if you look at this demo: https://demo.aspnetawesome.com/GridNestingDemo#Nested-grids--Hierarchical-grid in the partial for the inner grid we have: `.Grid("MealsGrid" + ViewData["Id"])` this will give each nested grid a different id, even though they are rendered by the same partial
Save Changes
Cancel
Omu
answered at 18 Dec 2018
I can't set veiwdata for GridName,but set different name for grids. Because partials are completely apart and their information is nothing to do with each other,one Grid has 2 columns Or another Grid has 5 columns and ect
at 21 Dec 2018
dear
https://www.aspnetawesome.com/learn/mvc/CommonProblems#Isolate-the-problem
at 21 Dec 2018
Omu
I use to Grids with different name but the problem not solved.
at 21 Dec 2018
dear
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