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
Unable to set query string while creating jqGrid
14/05/2014
13:11
Avatar
manishchourasia2000@yahoo.com
Pune
New Member
Members
Forum Posts: 1
Member Since:
14/05/2014
sp_UserOfflineSmall Offline

I am using jqGrid to display record. To display record i have use url parameter to get relevant data using query string parameter(callID), but I have observed that first time it works fine after that when i tried to view another record (different callID) it reset the callID parameter to it the first one.

Can anybody help me out?

This is my javascript function.

function GetAttachment(callID) { //here i am getting right value //$('#ActivityGrid').jqGrid('clearGridData');

// $("#ActivityGrid").jqGrid('setGridParam', { datatype:'json'}).trigger("reloadGrid");

var ActivityGrid; //var myDataSuccess; ActivityGrid = $("#ActivityGrid").jqGrid({ ajaxGridOptions: { contentType: 'application/json; charset=utf-8' }, loadError: function (xhr, st, err) { debugger; $("#ActivityGridMap").html("Type: " + st + "; Response: " + xhr.status + " " + xhr.statusText); }, datatype: 'json', url: 'wts.asmx/GetAttachment?callID=' + callID, //passing correct value,but in webservice it gives me first value. mtype: 'POST', forceFit: true, loadComplete: function (data) { // debugger; $(this).HideBusy(); }, serializeGridData: function (postData) { if (postData.searchField === undefined) postData.searchField = null; if (postData.searchString === undefined) postData.searchString = null; if (postData.searchOper === undefined) postData.searchOper = null; if (postData.filters === undefined) postData.filters = null; return JSON.stringify(postData); }, jsonReader: { repeatitems: false, root: "d.rows", page: "d.page", total: "d.total", records: "d.records" }, colNames: ['Activity', 'Date', 'Time', 'Handled By', 'Notes', 'Details', 'Attachment', 'Display'], colModel: [ { name: 'ClgCode', index: 'ClgCode', align: "left", width: 80 }, { name: 'Date', index: 'Date', align: "left", width: 70, formatter: 'date', formatoptions: { srcformat: 'yyyyMMdd', newformat: 'd-M-y' }, width: 100 }, { name: 'Time', index: 'Time', align: "left", width: 50, formatter: 'time', width: 100 }, { name: 'HandledBy', index: 'HandledBy', align: "left", width: 80 }, { name: 'Notes', index: 'Notes', align: "left", width: 120 }, { name: 'Details', index: 'Details', align: "left", width: 120 }, { name: 'Attachment', index: 'Attachment', jsonmap: "Attachment", align: "left", width: 0 }, { name: 'Display', index: 'Display', align: "center", width: 100, formatter: function () { return " <input id=\"uxViewAtt\" class=\"MyButton\" type=\"button\" value=\"Display\" onclick=\"return OpenAttachment(event);\"/>"; } } ], rowNum: 5, rowList: [5], pager: "#ActivityGridMap", viewrecords: true, gridview: true, rownumbers: true, height: 60, width: 940, caption: 'Attachments' }).jqGrid('navGrid', '#ActivityGridMap', { edit: false, add: false, del: false, search: false });

Forum Timezone: Europe/Sofia

Most Users Ever Online: 215

Currently Online:
49 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, swathi

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information