开发者

JQGrid loading message displayed after the grid container is hidden

I have a jqgrid whose html is displayed in the following way.

I build this myTable as a jqgrid using some custom javascript. This was working fine for a long time.

I made a change to collapse(in simple terms to hide) the div "tableSectionDiv" when the grid does not have any records.

In order to do this, on the grid complete event I computed,

var r = jQuery("#myTable").getGridParam('reccount');

if(r == 0) { $("#tableSectionDiv").hide(); }

the开发者_JAVA技巧re by collapsing the div. There is a button which will show the div with a simple $("#tableSectionDiv").show(); code

But when I see the grid it displays the empty grid, But I SEE THE LOADING IMAGE WITH NO TEXT IN IT.

Any idea on why it is happening?


You should post the code which reproduce the problem. In another example http://www.ok-soft-gmbh.com/jqGrid/GetScheduledReleases1.htm I hide table immediately after loading (independent on the number of rows having). With "Show Grid" button one can show the grid and with "Refresh" button from the navigator, with the sorting of any column or with the button "Hide Grid" one could hide the grid. No problems with the "LOADING IMAGE WITH NO TEXT IN IT" I can not reproduce.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜