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
Warning! Please Selet Row -- jqGrid 3.2
21/07/2008
18:42
Avatar
canvas.wang
Member
Members
Forum Posts: 11
Member Since:
21/07/2008
sp_UserOfflineSmall Offline

I have the following two problems:

1). Function navGrid("#pager", {edit: false, add: false, del: false, search: true}) causes a error and displays a small modal window "Warning! Please Select Row?"  error message  when the page is loaded.

2). When the search button at the left bottom corner is clicked, the search panel shows up. But it dose not show up inside the grid, but above the grid instead.

    i). In Firefox, it pushes the grid down a little bit.  Any click on the page closes the searching panel.

   ii). In IE7, it pushes the grid down all the way to the bottom.

I am currently using jqGrid 3.2. Please help. Thank you in advance.

My code is as following:

html:

<table id="gridTest" class="scroll"></table>
<div id="pager" class="scroll" style="text-align:center;"></div>

Javascript:

$("#gridTest")
        .jqGrid({
            url: '/lawyer_file/get_file_list/1',
            datatype: 'json',
            mtype: 'GET',
            multiselect: true,
            toolbar :[true,"bottom"],   //?? how to use this toolbar ??
            colNames: ['Open File Number', 'Buyer', 'Seller'],
            colModel: [
                {name: 'fileNumber', index: 'id', width: 150, sortable: false },
                {name: 'buyer', index: 'buyer', width: 200, sortable: true },
                {name: 'seller', index: 'seller', width: 200, sortable: true }
            ],
            pager: jQuery('#pager'),
            rowNum: 10,
            rowList: [10, 20, 30],
            sortname: 'id',
            sortorder: 'desc',
            viewrecords: true,
            imgpath: '/themes/blue/stylesheets/i/jqGrid',
            caption: 'BUY/SELL Files',
           
            // Add hyperlink to each row.
            loadComplete: function(){
                var ids = $("#gridTest").getDataIDs();
                for (var i=0; i<ids.length; i++) {
                    var rowId = ids[i];
                    var rowData = $("#gridTest").getRowData(rowId);
                   
                    fileLink = "<a href='/lawyer_file/" + ids[i] + "'>" + rowData["fileNumber"] +  "</a>";
                    $("#gridTest").setRowData(rowId, {fileNumber: fileLink})
                }
            }
        })
        .navGrid("#pager", {edit: false, add: false, del: false, search: true})
        .navButtonAdd(
            "#pager",
            { caption: "Close Files",
                onClickButton: function(){
                    alert("closing selected files...");
                }
            }
         );

22/07/2008
02:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

You forgot to include the jqModal.css. Please before posting any issue

read the documentation.

Best

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.

22/07/2008
12:17
Avatar
canvas.wang
Member
Members
Forum Posts: 11
Member Since:
21/07/2008
sp_UserOfflineSmall Offline

Hi Tony, thank you very much for your help. It works fine now.  jqGrid is really good. Thank you for the wonderful job you have done.

Best wishes,

Canvas

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

Currently Online:
24 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