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_Related Related Topics sp_TopicIcon
Get Row and cell data on mouse over/on click
26/07/2011
18:41
Avatar
ravishtiwari
New Member
Members
Forum Posts: 1
Member Since:
26/07/2011
sp_UserOfflineSmall Offline

$("#searchGrid").jqGrid({
        datatype: "local",
        mtype : "post",
        postData: '',
        colNames:['TrackingId', 'Exceptions', 'Photos', 'Date'],
           colModel:[
            {name:'trackingId',index:'trackingId', width:80, align:'center', formatter: formatTrackingIdCol},
            {name:'exceptions',index:'exceptions', width:60, align:'center', formatter:formatExceptionCol},
            {name:'photos',index:'photos', width:60, align:'center'},                                    
            {name:'creationDate',index:'creationDate', width:80, align:'center'}                       
           ],
           rowNum:20,
           //rowList:[10,20,30],
           pager: '#searchPager',
           sortname: 'carrier',
           //autowidth: true,
           shrinkToFit: false,
           height: "60%",
           width: $("div.content").width() - 20,
                viewrecords: true,
                sortorder: "asc",
                multiselect: false,
                jsonReader: { repeatitems : false},
                onCellSelect: cellSelected,
               
        loadComplete: function(){
            selectedRows = {};
        },
                gridComplete: function() {
                    $('.jqgrow').mouseover(function(e) {
                        var selectedRows = $("#searchGrid").jqGrid('getGridParam', 'selarrrow');
                        var selectedIds = [];
                        for(var i in selectedRows){
                                selectedIds.push($("#searchGrid").jqGrid('getCell', selectedRows[i], 'trackingId'));
                        }                        
                    }
                );
                }
    });

I've above data model in displayed in jQGrid, now, I want to display  a jQDialog box whenever photos column is clicked, I need the tracking id column value of the row, for which photos column was clicked.

Please tell how to read value of all cell of the current selected row??? Like I want to read trackingId in case of any of the column is clicked...

Thanks in advance...

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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