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
How can I use dbl click on jQgrid?
13/03/2013
18:24
Avatar
groads2
Member
Members
Forum Posts: 3
Member Since:
22/02/2013
sp_UserOfflineSmall Offline

I have an html form and I am trying to do something with the data on the grid when a row is double clicked.  Below is the declaration of the jqgrid and my  attempt to do get the data when a row is double clicked.  My section of code does not get hit at all.  How can I get this to work?

part of the javascript

[CODE]

<script type="text/javascript" language="javascript">

$(document).ready(function(){

jQuery("#gridRecentPersonInquiry").jqGrid(

{

xmlReader: {

root: "RecentInquiries",

row: "RecentPersonNameInquiry",

page: "rows>page",

total: "rows>total",

records: "rows>records",

repeatitems: false,

id: "OrganizationORIID"

},

datatype: 'xmlstring',

datastr: recentPersonData,

colNames: ['First', 'Middle', 'Last', 'DOB', 'Sex', 'Operator', 'ORI', 'Date', 'Time'],

colModel: [

{ name: 'PersonGivenName', index: 'PersonGivenName', width: 40 },

{ name: 'PersonMiddleName', index: 'PersonMiddleName', width: 20 },

{ name: 'PersonLastName', index: 'PersonLastName', width: 40 },

{ name: 'PersonBirthDate', index: 'PersonBirthDate', width: 30 },

{ name: 'PersonSexCode', index: 'PersonSexCode', width: 20 },

{ name: 'Operator', index: 'Operator', width: 25 },

{ name: 'OrganizationORIID', index: 'OrganizationORIID', width: 30 },

{ name: 'InquiryDate', index: 'InquiryDate', width: 20 },

{ name: 'InquiryTime', index: 'InquiryTime', width: 20 }

],

forceFit:true,

gridview: true,

shrinkToFit:true,

rowNum: 6,

rowList: [6, 12, 18],

pager: '#pagerRecentPersonInquiry',

caption: 'Recent Person Inquiries ',

width: 800,

height: 140,

sortname: 'Date',

sortorder: 'asc',

hidegrid: false

});

}

});

jQuery("#gridRecentPersonInquiry").click(function () {

var id = jQuery("#gridRecentPersonInquiry").jqGrid('getGridParam', 'selrow');

if (id) {

var ret = jQuery("#gridRecentPersonInquiry").jqGrid('getRowData', id);

alert("id=" + ret.ORI + " first=" + ret.first + "...");

}

else {

alert("Please select row");

}

});

</script>

[/CODE]

Part of the HTML for the grid

[CODE]

<table id="gridRecentPersonInquiry"></table>

<div id="pagerRecentPersonInquiry"></div>

[/CODE]

14/03/2013
08:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can start reading documentation

There is a such grid event. Just find it.

Regards

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:
60 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