Forum

July 12th, 2025
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
Problem with addRowData ( $.jgrid.stripHtml(v))
31/08/2009
08:09
Avatar
alexhome
Guest
Guests

I download latest version 3.5.2 31.08.2008.

DealerTable = $(”#dealertable”).jqGrid({
  scrollrows: true,
  datatype: “local”,
  colNames: ['', 'Имя','Логин', 'Компаний', 'Объектов'],
  colModel: [
  { name: 'IDDealer', index: 'IDDealer', width: 0, sorttype: "int", key: true, hidden: true },
  { name: 'DRName', index: 'DRName', width: 150, sorttype: "string" },
  { name: 'LLogin', index: 'LLogin', width: 150, sorttype: "string" },
  { name: 'CompanyCount', index: 'CompanyCount', width: 100, sorttype: "int" },
  { name: 'DeviceCount', index: 'DeviceCount', width: 100, sorttype: "int" }
  ],
  scrollrows: false,
  multiselect: false,
  onSelectRow: function(id) {
  CDealer = DealerTable.getRowData(id);
  //———— подсветка строки по значению элемента td
  $(”#devicetable tr”).removeClass(”highlight”);
  $(”#devicetable td:nth-child(6)[title='" + CDealer.IDDealer + "']“).parent().addClass(”highlight”);

  },
  ondblClickRow: function(id) {
  location.replace(”/Admin/Dealer?IDDealer=” + id);
  }
  });

 On command:

for (var i = 0; i < result.length; i++)
       DealerTable.addRowData(resul[i].IDDealer, result[i]);

i have error on line 1593 in grid.base.js:

row += “<td role=\\”gridcell\\” “+prp+” title=\\””+$.jgrid.stripHtml(v)+”\\”>”+v+”</td>”;

if i change version to 3.5 Beta, all works normally

iam sorry in not in this topic,

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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