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

Pages: [1] 2 3
1
Thank you.
Anyhow, I managed with DoubleScrollBar Plugin with data tables, for the client requirement

2
Hi

Can we show the Horizontal scroll Bar at the top of the Grid also? Is it possible. I am using paramquery 3.x version.

Thank you.

3
Hi

In Detail,

I have a grid with 10 rows with 5 columns per a row.  In those 5 columns only second  column is editable.

If I enter a value in second   column and press ENTER then the cursor should come to next row second column's editable  textbox.
If I press ENTER repeatedly need to go row wise down till the 10th row.

Thank you.


4
Hi,

I have inline editing in the Grid for few columns. How to move the cursor to the next editable cell when I Press ENTER in a cell. I am using PQGrid V3.3 Pro version.
Please suggest me.

Thank you.

5
Bug Report / Re: Scroll bar issue with nested grids
« on: September 30, 2016, 04:39:45 pm »
Hi,
Please test the below code &data. Scroll bar is not showing for outer grid. Please Expand the Grids as shown in the screen shot and check.
Thank you.

    $(function () {
        //nested data.
        var data = [
            {
                "name": "Africa",
                "data": [
                    {
                        "name": "Northern Africa",
                        "data":[
                            { "name": "Algeria", "literacy": 70},
                            { "name": "Egypt", "literacy": 57.7 },
                            { "name": "Libya", "literacy": 82.6},
                            { "name": "Morocco", "literacy": 51.7},
                            { "name": "Tunisia", "literacy": 74.2},
                            { "name": "Western Sahara"}
                        ]
                    },
                    {
                        "name": "Sub-Saharan Africa",
                        "data":[
                            {
                                "name": "Eastern Africa",
                                "data":[
                                    { "name": "Burundi", "literacy": 51.6},
                                    { "name": "Comoros", "literacy": 56.5 },
                                    {"name": "Djibouti", "literacy": 67.9},
                                    { "name": "Eritrea", "literacy": 58.6},
                                    { "name": "Ethiopia", "literacy": 42.7}
                                ]
                            },
                            {
                                "name": "Middle Africa",
                                "data":[
                                    { "name": "Angola", "literacy": 72.3},
                                    { "name": "Cameroon", "literacy": 56.9 },
                                    {"name": "Central African Republic", "literacy": 64},
                                    { "name": "Chad", "literacy": 76},
                                    { "name": "Congo", "literacy": 56}
                                ]
                            },
                            {
                                "name": "Southern Africa",
                                "data":[
                                    { "name": "Botswana", "literacy": 77},
                                    { "name": "Lesotho", "literacy": 65 },
                                    {"name": "Namibia", "literacy": 84},
                                    { "name": "South Africa", "literacy": 86.4},
                                    { "name": "Swaziland", "literacy": 81.6}
                                ]
                            }
                        ]
                    },
               {
                        "name": "Northern Africa",
                        "data":[
                            { "name": "Algeria", "literacy": 70},
                            { "name": "Egypt", "literacy": 57.7 },
                            { "name": "Libya", "literacy": 82.6},
                            { "name": "Morocco", "literacy": 51.7},
                            { "name": "Tunisia", "literacy": 74.2},
                            { "name": "Western Sahara"}
                        ]
                    },
                ]
            },
        ];

        //initialize main grid
        $("#grid_md").pqGrid({             
            height: 'flex',
            width: 600,
            height: 500,
            dataModel: { data: data },           
            scrollModel: {autoFit: true, flexContent: true},
            colModel: [
                { title: "", minWidth: 27, maxWidth: 27, type: "detail", resizable: false, editable:false, sortable: false },
                { title: 'Continent', dataIndx: 'name'}
            ],
            numberCell: { show: false },
            title: "<b>Continent & Countries</b>",
            resizable: true,           
            detailModel: {
                init: function (ui) {                   
                    var rowData = ui.rowData,
                        model = subContinentModel( rowData.data ),
                        $grid = $("<div></div>").pqGrid(model);

                    return $grid;
                }
            }
        });
       
        var subContinentModel = function( data ){
            return {
                dataModel: { data: data },
                colModel: [
                    { title: "", minWidth: 27, maxWidth: 27, type: "detail", resizable: false, editable:false, sortable: false },
                    { title: 'Sub Continent', dataIndx: 'name'}
                ],
                height: 'flex',               
                numberCell: { show: false },
                scrollModel: {autoFit: true},
                showTop: false,
                detailModel: {                   
                    init: function (ui) {                       
                        var rowData = ui.rowData,
                            rdata = rowData.data,
                            model = (rdata[0] && rdata[0].data)? subContinentModel(rdata): countryModel( rdata ),
                            $grid = $("<div></div>").pqGrid(model);

                        return $grid;
                    }
                }

            };
        };

        var countryModel = function( data ){
            return {
                dataModel: { data: data },
                colModel: [                   
                    { title: 'Country', dataIndx: 'name'},
                    { dataIndx: 'literacy', dataType: 'float', title: 'Literacy' },
                ],
                height: 'flex',
                maxHeight:300,
                numberCell: { show: false },
                scrollModel: {autoFit: true},
                showTop: false
            };
        };
    });

6
Bug Report / Re: Scroll bar issue with nested grids
« on: September 28, 2016, 10:14:54 pm »
Hi,

We are using 2.x version.

and the scroll bar is working when we expand the multiple grids in 1st level. and if they go beyond the main grid, then the scroll bar is coming.

But,

When we expand the grids in 3rd level, Grid1-> Grid2 -> Grid3.
If data is go beyond the main grid. that time scroll bar is not coming to main grid.
I have added scrollModel: { flexContent: true } . but no Luck.

Let me know do you understand my explanation.

Thank you.

7
Bug Report / Scroll bar issue with nested grids
« on: September 28, 2016, 01:03:15 am »
Hi,

I have an issue with scroll bar.

When I Expand multiple nested grids in different levels. I need a scroll bar for the master grid. Now scroll bar is coming only when I expand first level nested grids.
When I expand second or third level nested grids. Scroll bar is not showing for the main grid.

Screenshot attached.

Thank you.

8
Hi,
I got a solution.
each nested grid need an unique id along with the seach box.

Thank you.

9
Hi

I have a master grid with nested grids. All nested grids are remotely loading. When I Expand multiple nested grids at a time
and seach in the nested grids. Search is not working.

Is there anything that I need to take care with seach in Nested Grids?

Thank you.

10
Hi

Is there any call back function that will fire after the pqgrid completely displayed in the screen with all the rows.

Thank you.

11
Hi ,

Is this functionality available in PQGrid 2.x?

I could not get the  rd.pq_gtitle || rd.pq_gsummary  Properties.

Thank you.

12
Hi

I have a situation that I grouped the rows with summary type Max. It is working well.

But , I need the grouped summary max value in render function of the cells for further calculations.

How can i get the grouped summary max value of a column , when even i need.

Thank you.

13
Oh!

Okay. Thank you for your suggestion.:)

14
Hi,

I am using the below lines to change color of a row ar run time.


         tr.pq-row-rejected td {
                background-color: #FDD2D2;
            }

 $grid.pqGrid("addClass", { rowIndx: rowIndx, cls: 'pq-row-rejected' });

This is working fine for me.

But I need to set the color of the rows by reading color value from a table.
Color value is not fixed and user may change color at run time.

Please let me know How to set selected color at run time to a row background in pqGrid without using fixed class?
I am using Paramquery 2.x version.

Thank you.
 

15

Ohh. Awesome. Easy & simple way , may be I have to try & get my self.

Thank you.

Pages: [1] 2 3