ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Force lazynode to reload grid node each time
Title:
B
I
{code}
?
I've noticed that after first node expanding with the lazy node, when collapsing it re-expanding it again I can see the previous results (already loaded but simply hidden until I re-expand the node again). Any way to force the node to make the load of the grid again ?
Save Changes
Cancel
Andrea Sperelli
asked at 10 Mar 2021
you can call `api.update(key)` to update the row/node, example: $('#LazyTreeGrid').data('api').update(2703);
at 10 Mar 2021
Omu
thank you for your answer, no way to reload data when re-expanding the node by UI ?
at 11 Mar 2021
Andrea Sperelli
Answers
B
I
{code}
?
you could use nests instead https://demo.aspnetawesome.com/GridNestingDemo or you can try this: var api = $('#LazyTreeGrid').data('api'); api.lzrep = function (lazyres, row, k, noNest) { var res = $(lazyres); if(res.length){ $(res[0]).data('l', 1); } row.before(res); var rowsToRemove = api.select(k, row, noNest); awef.loop(rowsToRemove, function (crow) { crow.remove(); }); };
Save Changes
Cancel
Omu
answered at 11 Mar 2021
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