Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Problem with multiselect
18/06/2009
07:30
Avatar
vpatil
Member
Members
Forum Posts: 7
Member Since:
18/06/2009
sp_UserOfflineSmall Offline

Hi!,

1. I have set the multiselect =false and yet I can multiselect the rows..

I destroy and create the grid depending on what was button was clicked as I need to display different columns and create differnt toolbar in the grid.

In one of the button the multiselect :false work but on the other two it does not..

2. My second problem is when the page loads it shows the Warning popup with Please select row.. It also disables the whole grid. once I close the popup it is ok, but wehn I destroy it and recreate it, the popup does not show but grid is disabled.. I commented out a in grid.base.js around line no779  $("<div class='ui-widget-overlay jqgrid-overlay' id='lui_" + this.id + "'></div>").append(ii).insertBefore(gv);

With this commented I do not get the disabling but the warning still shows up.

Any pointers will be greatly appreciated..

Thanks

My code is as follows:

function setupGrid(cols, colNames, sortnm, NodeId, Type, title) {
    jQuery("#NodeTable").jqGrid({
       datatype: function(pdata) {
            // alert(JSON.stringify(pdata));
            jQuery.ajax({ type: "POST",
                url: "../asmx/MainPg.asmx/GetNodeTableNew1",
                dataType: "json",
                data: JSON.stringify(pdata),
                contentType: "application/json;charset=utf-8",
                processData: false,
                error: function(XMLHttpRequest, textStatus, errorThrown)
                { ajaxError(XMLHttpRequest, textStatus, errorThrown); },
                success: function(result) {
                    grdData = JSON.parse(result.d);
                    var thegrid = jQuery("#NodeTable")[0];
                    thegrid.addJSONData(grdData);

                }
            })
        },
        colNames: colNames,
        colModel: cols,
        pager: jQuery('#pager2'),
        rownumbers: true,
        rowNum: 10,
        rowList: [10, 25, 50],
        sortname: sortnm,
        viewrecords: true,
        sortorder: "asc",
        caption: title,
        multiselect: false,
        autowidth: true,
        height: "auto",
        toolbar: [true, "top"]
    });
    jQuery("#NodeTable").navGrid('#pager2', { add: false, edit: false, del: false, search: false, refresh: true });
    CreateToolBar(NodeId, Type);

}

21/06/2009
05:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

How do you construct the grid when you destroy and load it agin. Do you use gridImport?

You should not comment anything. Be a sure that you have the right css file and this file is loaded correct.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
39 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information