how to automatically refresh the grid when I click the grid tab?

Questionshow to automatically refresh the grid when I click the grid tab?
Man Lam asked 5 years ago

how to refresh the grid when I click the grid tab? I found that when i update the record in tab1, then i click the tab2, the data can't update automatically, i need to click the refresh icon manually to update the data.

1 Answers
Abu Ghufran answered 5 years ago

Assuming id tab-1 div has grid with id list1, then following would refresh grid on clicking tab.

<li><a href="#tabs-1" onclick="jQuery('#list1').trigger('reloadGrid',[{page:1}]);">Grid No 1</a></li>

Your Answer

18 + 15 =

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?