Forum
08:20
I download latest version 3.5.2 31.08.2008.
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:
DealerTable.addRowData(resul[i].IDDealer, result[i]);
i have error on line 1593 in grid.base.js:
if i change version to 3.5 Beta, all works normally
09:01
Moderators
30/10/2007
Hello,
Does your data contain special characters?
Regards
Tony
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.
10:48
Moderators
30/10/2007
Hello,
Check your code. You have error:
for (var i = 0; i < result.length; i++)
DealerTable.addRowData(resul[i].IDDealer, result[i]); // we do not have resul
Should be
for (var i = 0; i < result.length; i++)
DealerTable.addRowData(result[i].IDDealer, result[i])
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.
10:58
iam sorry, it not an error,
I changed a code for understanding and itself have made a misprint
from:
result[0][i].LPassword = “123″;
DealerTable.addRowData(result[0][i].IDDealer, result[0][i]);
}
to
DealerTable.addRowData(resul[i].IDDealer, result[i])
Why in 3.5Beta works, and in 3.5.2 does not work, I only changed a file grid.base.js and grid.locale-ru.js
04:47
Moderators
30/10/2007
Hello,
What is the error reported - i.e the error message.
If possible send me a link to the problem.
Also try with this:
for (var i = 0; i < result.length; i++) {
DealerTable.addRowData(i+1, result[i]);
}
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.
05:37
on line 1593 in grid.base.js
line:
Error:
I try
DealerTable.addRowData(i+1, result[i]);
}
There is a same error.
I see in quick watch in VS
$.jgrid.stripHtml(v) <- (stripHTML(v) - not found)
06:06
Moderators
30/10/2007
Hello,
load the language file before the jqgrid - see http://www.trirand.com/jqgridw.....stallation
Regards
Tony
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.
Most Users Ever Online: 715
Currently Online:
91 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66