Forum Replies Created
-
Author
-
March 22, 2024 at 6:26 am in reply to: Updating text in dropdown with groups updates group instead of the text Updating text in dropdown with groups updates group instead of the text #134490
Thank you Peter
March 21, 2024 at 12:47 pm in reply to: Updating text in dropdown with groups updates group instead of the text Updating text in dropdown with groups updates group instead of the text #134485Currently I’m using rather nasty workaround, where on every
checkChange
allItems are retrieved, looped over and counter is incremented until match with currently clicked item is found. But there must be a better wayMarch 21, 2024 at 12:34 pm in reply to: Updating text in dropdown with groups updates group instead of the text Updating text in dropdown with groups updates group instead of the text #134484thank you!
but how do I know by what number should I increment the index?
E.g.: https://jsfiddle.net/3hkoyLn9/
I want to update the checked item with “hello”. Try to click on any item in second group – it will rename the group
August 11, 2022 at 8:10 am in reply to: grid does not update if filter is set (bug?) grid does not update if filter is set (bug?) #122315Hello,
thanks a lot! Good idea.I ended up using combination of
getfilterinformation
andaddfilter
. It was 7 times faster thangetstate
andloadstate
Also applying filters this way caused grid to scroll to the top (first row), so I also saved the scroll position (
scrollposition
) and then after applying filters scrolled to previous positionscrolloffset
August 9, 2022 at 11:27 am in reply to: grid does not update if filter is set (bug?) grid does not update if filter is set (bug?) #122300By slower I meant performance-wise, not by typing code
Consider this example:
http://jsfiddle.net/myzd78o2/Press the button and see console for how many milliseconds it took to execute the code.
Updating 100 rows using loop over individual row takes ~1500ms
Updating the same 100 rows using one call of
updaterow
with array takes 20ms, but has the bug that prevents it to use it together with filter.So the question is if there is workaround that will allow to updaterows with filter applied and it won’t be that much slower. 1500ms is huge performance hit, especially when it is called regularly.
Thank you!
August 8, 2022 at 7:48 am in reply to: grid does not update if filter is set (bug?) grid does not update if filter is set (bug?) #122290Hello,
is there any workaround?What works is to use
$("#grid").jqxGrid('updaterow', "C", newRowC);
$("#grid").jqxGrid('updaterow', "D", newRowD);
instead of
$("#grid").jqxGrid('updaterow', ["C", "D"], [newRowC, newRowD]);
But it is much slower (e.g. I try to update 100 rows at once).
Thanks!
-
AuthorPosts