Bug causes duplicate record on Grid Reload button press

QuestionsBug causes duplicate record on Grid Reload button press
Chris Herbert asked 3 years ago

I’m using the following Javascript to auto resize the grid to full width and height. However, whenever I resize my browser window and then use the Grid Reload button the grid does two Ajax calls and retrieves two sets of data creating duplicate rows.

jQuery(document).ready(function(){
jQuery(window).bind(“resize”, function () {

// adjust height on resize
jQuery(“#list1”).jqGrid(‘setGridHeight’,jQuery(window).innerHeight()-330);
jQuery(“#list1”).jqGrid(‘setGridWidth’, parseInt($(window).width() – 220));
}).trigger(“resize”);
});

 

1 Answers
Abu Ghufran Staff answered 3 years ago

Hello,

I’m unable to understand the issue how it is linked with this code.

Please share your grid code and screen recording ( https://screencastify.com/ ) of the issue.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

6 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?