ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: dbadmin on December 31, 2014, 02:25:10 am

Title: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on December 31, 2014, 02:25:10 am
Hi,

I'm getting an error "uncaught exception: dataIndx NA" after collapsing nested grid (no error occurs when I  open it up).
It seems to only happen when there's more than 1 row in a nested grid.

I can't seem to find any difference from example code, so I was wondering if it may ring any bell and you have some suggestions?

Thanks!
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on January 08, 2015, 10:44:56 pm
Any ideas?
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: paramvir on January 15, 2015, 11:33:42 am
check dataIndx and assign them correctly.
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on January 30, 2015, 03:49:12 am
I did check all the data indexes, and they're all fine.

I believe the problem may be related to pager. If there's only one page of results (or if I don't have pageModel specified at all) and I open up first row, I'll get behavior described in
http://paramquery.com/forum/index.php?topic=980.msg4844#msg4844

Could  you direct me to an example with remote paging and only one page of results that works?
I couldn't find this scenario in demos section.

Thanks
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 03, 2015, 07:26:28 pm
Hi,

Could you comment on this?
I have spent several days trying to figure this out and it still doesn't work.
If it's a known issue, please let me know.

Thanks.
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: paramvir on February 03, 2015, 08:06:05 pm
There is no known issue; it couldn't be reproduced so far.

The referenced post discusses about scrolling problem, user couldn't reproduce the "dataIndx NA" error in the jsfiddle.

Please share a jsfiddle of your implementation so that I may have a look.
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 03, 2015, 10:24:39 pm
Hi,

Here's my code http://jsfiddle.net/890wakod/
Please see LoadGrid function.

I either get the dataIndx error when collapsing the detail grid, or no error but the detail grid is collapsed incorrectly.
I'm not 100% sure, but it looks like these behavior is happening when there's only 1 page of results (like 2 records are present in the main grid, for example)

Thanks
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: paramvir on February 03, 2015, 10:31:46 pm
jsfiddle is incomplete and not functioning.

Please complete the code in HTML pane and css pane.

Also don't forget to include external dependencies. Take this jsfiddle as a base http://jsfiddle.net/b6b710mz/9/ as it includes the dependencies.
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 03, 2015, 10:34:26 pm
Could you confirm, which version of pq  grid is it using? is it the same as mine -- v 2.2.0 ?

Thanks!
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: paramvir on February 03, 2015, 10:48:49 pm
That is the latest version 2.3.0
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 03, 2015, 10:52:03 pm
Is there a pq grid link you can share for v 2.2.0 , so I can use it in my jsFiddle?
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 04, 2015, 12:20:35 am
So I started to modify the fiddle you provided and I"m not able to get a collapsible column working. If I comment it out, grid loads. If it's not commented out, the main grid looks empty.
http://jsfiddle.net/b6b710mz/39/

Any suggestions?
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: paramvir on February 04, 2015, 12:32:51 am
detailModel is not part of dataModel (obj.dataModel ) but main object ( obj ).
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 04, 2015, 12:42:35 am
I modified the code but it doesn't seem to help

http://jsfiddle.net/b6b710mz/42/
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 04, 2015, 08:26:13 pm
Anything else doesn't look correct to you?

I couldn't find a demo with local detail model, so not sure if I'm missing something.

Thanks!
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: dbadmin on February 10, 2015, 09:02:40 pm
Hi,

It's been more than a week and I didn't hear back from you.
Could you comment on this?

Thanks
Title: Re: Error when collapsing nested grid, v. 2.2.0
Post by: paramvir on February 10, 2015, 10:12:52 pm
Sorry your subscription has been long expired; we are not able to actively provide support to you.