Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dbadmin

Pages: [1] 2 3 ... 5
1
correction: rowData = data [ i ] ; (looks like autocorrection eliminated indexing)

2
I tried your suggestion and I get an error
"rowData.pq_detail is undefined" (I checked that the rows do have detail data)

Here's my code

var data=$( "#grid_array" ).pqGrid( "option" , "dataModel.data" );           


for ( var i = 0; i < data.length; i ++ )
{
     var rowData = data;
     if (rowData.pq_detail) // is never true, although data does exist
     {
     var $child_grid = rowData.pq_detail.child.find( ".pq-grid" );
     rowData["PackageContent"] = $child_grid.pqGrid( "option" , "dataModel.data" );
     }
   }

3
Thank you.

Is there a way to retrieve data for all the rows in one shot though? So that I get all rows with all their subrows in one array.

4
Hi Param,

So is there a way to do it? Retrieving data from nested grids sounds like something that should be supported in the product, I'd assume?

Thank you.

5
Help for ParamQuery Pro / Re: Serialize detailmodel as json object with data
« on: September 29, 2015, 11:51:43 pm »
I'd like to get a data array for each row with it's detail model (so basically I need to get data from "sub-rows" in an array form). I was looking through demo-s but couldn't find an example how to do it.

6
Help for ParamQuery Pro / Serialize detailmodel as json object with data
« on: September 23, 2015, 05:47:40 am »
What is the right way to serialize main grid so that its' detailed model serialized as an object with properties defined via detailmodel dataIndx for each column?

With the following code child grid is not accessible as an object:

var rawData=$( "#grid_array" ).pqGrid( "option" , "dataModel.data" );           
   var str = { "dataArray": rawData };
   var str1 = JSON.stringify(str);   


7
Help for ParamQuery Grid (free version) / Print color grid
« on: June 15, 2015, 04:46:04 pm »
Hi,

When my grid is printed / print preview -- it's always black & white, colors don't get printed (I color specific cells on "render" event of each column). Is it expected behavior? Is there a quick way to fix it?

Thanks!

8
Hi!

I'm trying to use wrap = "false" for a grid & text-align: right in one of the columns.
The problem I'm facing is that "..." appears on the right side of the text, not the left side.

So I'm getting "Mor..." instead of "..ning" for "Morning".

Is there any way to get the latter option working, so a user sees the right-most part of a word?

Thanks!

9
Help for ParamQuery Pro / ui.rowData is not defined in editor
« on: February 24, 2015, 10:50:52 pm »
Hi,

I'm trying to access ui.rowData in a column editor, and this property doesn't seem to be defined.

 {title:"ID", width:150, dataType:"string",editable: true, dataIndx:"ID",
           editor:{
                 type:'textbox',
               getData:  function (ui)
                {
                   if (ui.rowData != null) // it's always null
                   {
                      var val = 1;
                   }

                }
                }}

I'm using v 2.2.0. Is it a known issue or am I doing something wrong?

10
Just wanted to share my code for future users (as it wasn't obvious to me how to implement color formatting when detail grid is opened)

detail model refresh function:

 refresh: function( event, ui ) {
        var id = $(this).data("rowData")["id"];
        var data = ui.dataModel.data;
        for (var i = 0; i < data.length; i++)
           {
                 if(data["detailID"] == id)
                 {
                    row = $(this).pqGrid( "getRow", {rowIndx: i} );
                    row.addClass("grid-cell-highlight-valid-light");
                 }
           }
     },

11
Help for ParamQuery Pro / Re: Error when collapsing nested grid, v. 2.2.0
« 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

12
Help for ParamQuery Pro / Re: Error when collapsing nested grid, v. 2.2.0
« 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!

13
Help for ParamQuery Pro / Re: Error when collapsing nested grid, v. 2.2.0
« on: February 04, 2015, 12:42:35 am »
I modified the code but it doesn't seem to help

http://jsfiddle.net/b6b710mz/42/

14
Help for ParamQuery Pro / Re: Error when collapsing nested grid, v. 2.2.0
« 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?

15
Help for ParamQuery Pro / Re: Error when collapsing nested grid, v. 2.2.0
« 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?

Pages: [1] 2 3 ... 5