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 - Robert

Pages: [1] 2
1
Please excuse this post. This would be good to know BUT I rethought the way I was trying to accomplish something and actually came up with a better/ cleaner way.

2
I am attempting to load a different new JSON data set, after initialization, from a separate function. The response I am getting has the correct JSON. HOWEVER, I am having an issue figuring out how to get the new JSON to view in the grid.

I have studied the API dataModel.data and tried using:
//setter
$( ".selector" ).pqGrid( "option", "dataModel.data", newData );

I have also looked at the dataModel.getData but that doesn't seem to work either.

I know I must be missing something obvious. Is there an example you could point me to or advise me on what I should be looking at as a solution?

3
Help for ParamQuery Pro / Re: Change cell value programaticly
« on: April 26, 2014, 07:33:46 pm »
Thank you!

4
Help for ParamQuery Pro / Change cell value programaticly
« on: April 26, 2014, 04:11:48 am »
I would like to change the value of a cell in code.

I have the row and proper dataIndx to reference the cell:

                $grid.pqGrid("getCellData", { rowIndx: rowIndx, dataIndx: 'archived'});

I haven't been able to find a clear example of changing the value and updating the rowData.

Is there an example or tutorial you might direct me to?

Thank you!

5
Help for ParamQuery Pro / Re: Call a function in a second grid
« on: April 25, 2014, 06:28:51 am »
OH MY ... I got it to work!!! You are a life saver!!!

6
Help for ParamQuery Pro / Re: Call a function in a second grid
« on: April 25, 2014, 06:04:06 am »
This seems so simple but I am having issues getting this to work. Is there and example I can see where this is implemented?

7
Help for ParamQuery Pro / Re: Call a function in a second grid
« on: April 25, 2014, 03:49:49 am »
Fantastic suggestion! THANK YOU!!! I will work with this and see if it solves what appears to be a scope issue I am having. Thank you again.

8
Help for ParamQuery Pro / Re: Call a function in a second grid
« on: April 23, 2014, 02:18:07 am »
After miles of searching before asking the question here ... I didn't realize how close I was to the answer. My apologies. I found an example that allows this to happen and it works beautifully.

 (function($) {

     var namespace;
         namespace = {
                     something : function() {
                                             alert('hello there!');
                                            },
                      bodyInfo : function() {
                                             alert($('body').attr('id'));
                                            }
                     };
         window.ns = namespace;
    })(this.jQuery);

   $(function() {
              ns.something();
              ns.bodyInfo();
   });

9
Help for ParamQuery Pro / Call a function in a second grid
« on: April 23, 2014, 01:45:12 am »
I have 2 grids in separate <div>'s but in one php page.

Both grids are working perfectly HOWEVER, I would like to call a function in one of the grids from the other one (and pass in a var). Because they are wrapped in self executing functions, I cannot access the internal function of the opposite grid.

Is it possible to call an internal function of one grid from another grid?

Thanks in advance!

10
Help for ParamQuery Pro / Re: How do I get the value of numberCell?
« on: April 21, 2014, 07:06:53 am »
Thank you for helping me fumble my way through this.  :D  I have figured out from the row selection sample code that this will give me the values I need to do what I want:

obj.rowSelect = function (evt, obj) {
        var dataCell = obj.dataModel.data[obj.rowIndx].join(", ");
        var rowIndx = parseInt(obj.rowIndx);
        }

11
Help for ParamQuery Pro / Re: How do I get the value of numberCell?
« on: April 20, 2014, 02:06:39 am »
I may not be describing what I am needing very well. I will try to do better here.

This is how I am getting the rowIndex in the first place:       
        var rowIndx = ui.rowIndx;

Both of the statements get their respective recId numbers just fine:
        var recID = $grid.pqGrid("getRecId", { rowIndx: rowIndx });
        var recId_page = $grid.pqGrid("getRecId", { rowIndxPage: rowIndxPage });

What I am really looking for is the ability to get the value displayed in the numberCell column (row count), for a particular row, so I can make a comparison against it. I want to be able to catch the last row currently being displayed, regardless of how many pages of rows are in the current dataset. If I could get the values in the numberCell column, that would do it. Is that value available in ether of the following?
 
        var rowData = $grid.pqGrid("getRowData", { rowIndx: rowIndx });
        var rowData_page = $grid.pqGrid("getRowData", { rowIndxPage: rowIndxPage });

If so, would have a suggested get for them? If not, could you please suggest an approach for getting that numberCell value OR an alternative?

12
Help for ParamQuery Pro / Re: How do I get the value of numberCell?
« on: April 19, 2014, 12:28:15 am »
I am sorry ... I read the tutorial and understand it. However, I am still stuck on the syntax to retrieve the numberCell value.

I get the recID with:
     var recID = $grid.pqGrid("getRecId", { rowIndx: rowIndx });

Similar syntax doesn't seem to work for getting the rowIndxPage. I have tried every variation I can think of similar to this:
     var num_cell = $grid.pqGrid("option", { rowIndxPage: rowIndxPage });

Suggestons?

13
Help for ParamQuery Pro / Re: How do I get the value of numberCell?
« on: April 18, 2014, 07:23:10 pm »
Thank you!

14
Help for ParamQuery Pro / How do I get the value of numberCell?
« on: April 18, 2014, 05:46:53 pm »
Follow up question ...

I would like to access the value of the numberCell from the rowData if that is possible.

This gives me the numberCell object
         var num_cell = $grid.pqGrid( "option", "numberCell" );

Is there a way to get the value of a particular row's numberCell something like this:
        var num_cell = $grid.pqGrid("getNumberCell", { rowIndx: rowIndx });

15
Help for ParamQuery Pro / Re: How do I get totalRecords count?
« on: April 18, 2014, 03:56:15 pm »
excellent. thank you!

Pages: [1] 2