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
Having problem with pager
Tags: pager
13/08/2010
16:13
Avatar
otaviosoares
Member
Members
Forum Posts: 6
Member Since:
30/07/2010
sp_UserOfflineSmall Offline

When I add the option pager it throws and exception: Syntax error, unrecognized expression: #

If i remove the pager the error doesn't appear anymore.

Anybody knows what's happening?

Here s my code:

var jqGrid = $("table.jqVejaGrid");

var jqPager = $("div.jqVejaPager");

try {

jqGrid.jqGrid({

url: '/Aprove/Util/Services/listarPostagens.aspx',

datatype: "json",

postData: {

atividadeId: atividadeId,

status: status

},

colNames: obterColNames(canalId, status),

colModel: obterColModel(canalId, status),

rowNum: 20,

rowList: [5, 10, 20, 30, 50, 100],

pager: jqPager,

multiselect: true,

height: "auto",

//viewrecords: true,

jsonReader: {

repeatitems: false,

id: "cell.Id"

},

gridComplete: function() {

$("select#ctl00_ContentPlaceHolder1_cmbAtividades").unbind("change").bind("change", function() {

var option = $("option:selected");

var aId = parseInt(option.val());

var cId = parseInt(option.attr("canalId"));

jqGrid.setGridParam({

postData: {

atividadeId: aId,

status: status

},

colNames: obterColNames(cId, status),

colModel: obterColModel(cId, status)

});

jqGrid.trigger("reloadGrid");

});

carregarBotoes(status, jqGrid);

}

});

}

catch (ex) {

console.log(ex);

}

thanks

13/08/2010
20:39
Avatar
otaviosoares
Member
Members
Forum Posts: 6
Member Since:
30/07/2010
sp_UserOfflineSmall Offline

I figured out how to solve this.

I changed the attr of pager div from class to id, and it worked

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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