grid data not loading

Questionsgrid data not loading
Jorge asked 8 years ago

Hello Abu

I have two grids, master and detail. When active the hidden option on master grid
($grid["hiddengrid"] = true), master grid is empty and no data is loaded. Detail grid loads data correctly when a row in master is selected (and hidden option is deactivated on master).

Can you help me? Thanks

5 Answers
Abu Ghufran answered 8 years ago

Hi,

This is default function of hiddengrid. It only loads data when you click the top-right corner icon which the expand the grid and load data.
Detail grid will work after master row selection.

Jorge answered 8 years ago

OK. I call JS event click() on icon. Problem solved.

Thanks!

Abu Ghufran answered 8 years ago

You can use .jqGrid('getGridParam', gridstate)
Can have either of two states: visible or hidden.
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options

Also see:
http://stackoverflow.com/questions/4387522/jqgrid-expand-after-hiddengridtrue

Jorge answered 8 years ago

It is possible to know grid-visible state by .jqGrid('getGridParam'…) or similar?

Jorge answered 8 years ago

Works great! Thank you!

Your Answer

3 + 16 =

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?