Forum


00:15

24/01/2009

Hello again,
I made my grid work perfectly on Firefox. Now it's time to fight agains Microflacid and make it work under IExplorer (7). Everything goes fine until I click to open a personalized modal to edit the grid. The problem is that I use getRowData to load the current row data and populate my modal. I'm receiving this error:
$t.p.colModel is null or not an object
the according IE, the problem is at this part of the code (grid.base.js) at indicated line:
var res = {};
if (rowid){
this.each(function(){
var $t = this,nm,ind;
ind = $($t).getInd($t.rows,rowid);
if (!ind) {return res;}
$('td',$t.rows[ind]).each( function(i) {
nm = $t.p.colModel[i].name; <<< LINE WITH ERROR?
if ( nm !== 'cb' && nm !== 'subgrid') {
res[nm] = $.htmlDecode($(this).html());
}
});
});
}
return res;
};
Does anyone have any suggestion that would fix this?
Thanks in advance
Rodolfo.
02:49

Moderators
30/10/2007

Hello,
Not sure, but can you place your code at the beginning of the page (if this is the case) in document ready function. I have a such problem with other pugin in IE7. My js code was at end of the page. Moving at beginning works as expected.
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.
08:24

Moderators
30/10/2007

Hello,
Could you please post the code and a part of data? Thanks
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.
14:12

06/04/2009

It works ok on Firefox. On IE 7/8 it doesnt work.
Sorry, If I've include too much info here.
See ViewDetails for the call to getrowdata
DATA FROM REQUEST ( FROM FIREBUG CONSOLE)
{"page":1,"records":20,"rows":[{"id":0,"cell":["20","07/04/2009 20:04","b8947b95-6070-4cd1-a4cc-18c22c6da151"
,"User0","SRV5555","20","Keyword1-0","Keyword2-0","Keyword3-0","Keyword4-0","Keyword5-0","Keyword6-0"
,"Keyword7-0","Keyword8-0","Keyword9-0","Keyword10-0","\\u003cException Type=\\"ResourceAgentException
\\" Message=\\"A MessagingException occurred during the processing of the request\\"\\u003e\\u003cStacktrace
\\u003e asdasdasd\\u003e\\u003cStacktrace\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace
\\u003e blaa\\\\blaa\\u003c/Stacktrace\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c
/Exception\\u003e"]},{"id":1,"cell":["21","07/04/2009 20:07","9e78ed6e-d597-4d9a-810d-e1b8c79e4e64","User1"
,"SRV1111","21","Keyword1-1","Keyword2-1","Keyword3-1","Keyword4-1","Keyword5-1","Keyword6-1","Keyword7-1"
,"Keyword8-1","Keyword9-1","Keyword10-1","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A
MessagingException occurred during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd
\\u003e\\u003cStacktrace\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e
blaa\\\\blaa\\u003c/Stacktrace\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception
\\u003e"]},{"id":2,"cell":["22","07/04/2009 20:10","b81e9054-2169-4e9f-97b9-a72b61b388af","User2","SRV1111"
,"22","Keyword1-2","Keyword2-2","Keyword3-2","Keyword4-2","Keyword5-2","Keyword6-2","Keyword7-2","Keyword8-2"
,"Keyword9-2","Keyword10-2","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException
occurred during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":3,"cell"
:["23","07/04/2009 20:13","ca9d62a8-62a2-4bf8-8076-0edcac552621","User3","SRV5555","23","Keyword1-3"
,"Keyword2-3","Keyword3-3","Keyword4-3","Keyword5-3","Keyword6-3","Keyword7-3","Keyword8-3","Keyword9-3"
,"Keyword10-3","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":4,"cell"
:["24","07/04/2009 20:16","0c593b63-31df-44e2-b64b-ed7df1fb52f9","User4","SRV1111","24","Keyword1-4"
,"Keyword2-4","Keyword3-4","Keyword4-4","Keyword5-4","Keyword6-4","Keyword7-4","Keyword8-4","Keyword9-4"
,"Keyword10-4","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":5,"cell"
:["25","07/04/2009 20:19","7748bc9f-710c-474a-b4c1-5ff8f4f44010","User5","SRV1111","25","Keyword1-5"
,"Keyword2-5","Keyword3-5","Keyword4-5","Keyword5-5","Keyword6-5","Keyword7-5","Keyword8-5","Keyword9-5"
,"Keyword10-5","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":6,"cell"
:["26","07/04/2009 20:22","56487dd0-b9a1-4385-859b-50fd36180006","User6","SRV5555","26","Keyword1-6"
,"Keyword2-6","Keyword3-6","Keyword4-6","Keyword5-6","Keyword6-6","Keyword7-6","Keyword8-6","Keyword9-6"
,"Keyword10-6","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":7,"cell"
:["27","07/04/2009 20:25","54603482-d2f5-41db-8c8f-82e98218d0fb","User7","SRV1111","27","Keyword1-7"
,"Keyword2-7","Keyword3-7","Keyword4-7","Keyword5-7","Keyword6-7","Keyword7-7","Keyword8-7","Keyword9-7"
,"Keyword10-7","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":8,"cell"
:["28","07/04/2009 20:28","b4067519-f7e5-4302-8ec7-de5db7666fe3","User8","SRV1111","28","Keyword1-8"
,"Keyword2-8","Keyword3-8","Keyword4-8","Keyword5-8","Keyword6-8","Keyword7-8","Keyword8-8","Keyword9-8"
,"Keyword10-8","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":9,"cell"
:["29","07/04/2009 20:31","3162bfe7-b31c-4def-ac72-e22faa88a7ca","User9","SRV5555","29","Keyword1-9"
,"Keyword2-9","Keyword3-9","Keyword4-9","Keyword5-9","Keyword6-9","Keyword7-9","Keyword8-9","Keyword9-9"
,"Keyword10-9","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":10,"cell"
:["30","07/04/2009 20:34","71b1e202-7cf6-4c57-bd6e-4b14443c0ef0","User10","SRV1111","30","Keyword1-10"
,"Keyword2-10","Keyword3-10","Keyword4-10","Keyword5-10","Keyword6-10","Keyword7-10","Keyword8-10","Keyword9-10"
,"Keyword10-10","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":11,"cell"
:["31","07/04/2009 20:37","2ad4a231-cc9f-4f78-bc5b-ae7edd8319a8","User11","SRV1111","31","Keyword1-11"
,"Keyword2-11","Keyword3-11","Keyword4-11","Keyword5-11","Keyword6-11","Keyword7-11","Keyword8-11","Keyword9-11"
,"Keyword10-11","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":12,"cell"
:["32","07/04/2009 20:40","5d834197-2573-4aff-acc2-a51de8fc715f","User12","SRV5555","32","Keyword1-12"
,"Keyword2-12","Keyword3-12","Keyword4-12","Keyword5-12","Keyword6-12","Keyword7-12","Keyword8-12","Keyword9-12"
,"Keyword10-12","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":13,"cell"
:["33","07/04/2009 20:43","bec90c80-eaa9-4ee1-9c4f-1f5b9a598274","User13","SRV1111","33","Keyword1-13"
,"Keyword2-13","Keyword3-13","Keyword4-13","Keyword5-13","Keyword6-13","Keyword7-13","Keyword8-13","Keyword9-13"
,"Keyword10-13","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":14,"cell"
:["34","07/04/2009 20:46","7afbf171-fc4d-4477-b49c-fa3d2152b3d4","User14","SRV1111","34","Keyword1-14"
,"Keyword2-14","Keyword3-14","Keyword4-14","Keyword5-14","Keyword6-14","Keyword7-14","Keyword8-14","Keyword9-14"
,"Keyword10-14","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":15,"cell"
:["35","07/04/2009 20:49","a8ea7edc-c68c-4b41-afa4-2742059b46db","User15","SRV5555","35","Keyword1-15"
,"Keyword2-15","Keyword3-15","Keyword4-15","Keyword5-15","Keyword6-15","Keyword7-15","Keyword8-15","Keyword9-15"
,"Keyword10-15","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":16,"cell"
:["36","07/04/2009 20:52","c1d8d885-dccc-4ab4-a12c-e8106f4e03b1","User16","SRV1111","36","Keyword1-16"
,"Keyword2-16","Keyword3-16","Keyword4-16","Keyword5-16","Keyword6-16","Keyword7-16","Keyword8-16","Keyword9-16"
,"Keyword10-16","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":17,"cell"
:["37","07/04/2009 20:55","eb230c54-5f1b-4cce-8af4-541f36546752","User17","SRV1111","37","Keyword1-17"
,"Keyword2-17","Keyword3-17","Keyword4-17","Keyword5-17","Keyword6-17","Keyword7-17","Keyword8-17","Keyword9-17"
,"Keyword10-17","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":18,"cell"
:["38","07/04/2009 20:58","bdea85f1-6b27-481e-926a-42b714b115d3","User18","SRV5555","38","Keyword1-18"
,"Keyword2-18","Keyword3-18","Keyword4-18","Keyword5-18","Keyword6-18","Keyword7-18","Keyword8-18","Keyword9-18"
,"Keyword10-18","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]},{"id":19,"cell"
:["39","07/04/2009 21:01","4be7167e-a6ee-4c86-b019-9056480a2f32","User19","SRV1111","39","Keyword1-19"
,"Keyword2-19","Keyword3-19","Keyword4-19","Keyword5-19","Keyword6-19","Keyword7-19","Keyword8-19","Keyword9-19"
,"Keyword10-19","\\u003cException Type=\\"ResourceAgentException\\" Message=\\"A MessagingException occurred
during the processing of the request\\"\\u003e\\u003cStacktrace\\u003e asdasdasd\\u003e\\u003cStacktrace
\\u003e Message=\\"No matching stub data found - \\"\\u003e\\u003cStacktrace\\u003e blaa\\\\blaa\\u003c/Stacktrace
\\u003e\\u003c/InnerException\\u003e\\u003c/InnerException\\u003e\\u003c/Exception\\u003e"]}],"total":100}
JAVASCRIPT
var gridimgpath = '/scripts/jqgrid/themes/coffee/images';
var columnConfig = [
{ name: 'id', index: 'id', width: 65, resizable: true, sortable: false },
{ name: 'Raised', index: 'Raised', width: 140, resizable: true, sortable: false },
{ name: 'RequestId', index: 'RequestId', width: 230, resizable: true, sortable: false },
{ name: 'UserId', index: 'UserId', width: 90, resizable: true, sortable: false },
{ name: 'OriginatingServer', index: 'OriginatingServer', width: 90, resizable: true, sortable: false },
{ name: 'EventId', index: 'EventId', width: 90, resizable: true, sortable: false },
{ name: 'Keyword1', index: 'Keyword1', width: 90, resizable: true, sortable: false },
{ name: 'Keyword2', index: 'Keyword2', width: 90, resizable: true, sortable: false },
{ name: 'Keyword3', index: 'Keyword3', width: 90, resizable: true, sortable: false },
{ name: 'Keyword4', index: 'Keyword4', width: 90, resizable: true, sortable: false },
{ name: 'Keyword5', index: 'Keyword5', width: 90, resizable: true, sortable: false },
{ name: 'Keyword6', index: 'Keyword6', width: 90, resizable: true, sortable: false },
{ name: 'Keyword7', index: 'Keyword7', width: 90, resizable: true, sortable: false },
{ name: 'Keyword8', index: 'Keyword8', width: 90, resizable: true, sortable: false },
{ name: 'Keyword9', index: 'Keyword9', width: 90, resizable: true, sortable: false },
{ name: 'Keyword10', index: 'Keyword10', width: 90, resizable: true, sortable: false },
{ name: 'StackTrace', index: 'StackTrace', width: 400, resizable: true, sortable: false }
];
var defaultVisibleColumns = ['id', 'Raised', 'RequestId', 'UserId', 'OriginatingServer', 'EventId'];
$(document).ready(function() {
$("#list").jqGrid({
url: '/Exceptions/Find',
datatype: 'json',
myType: 'GET',
colNames: ['Id', 'Raised', 'Request Id', 'User Id', 'Server', 'Event Id', 'Keyword1', 'Keyword2', 'Keyword3', 'Keyword4', 'Keyword5', 'Keyword6', 'Keyword7', 'Keyword8', 'Keyword9', 'Keyword10', 'StackTrace'],
colModel: columnConfig,
pager: $('#pager'),
rowNum: 20,
rowList: [10, 20, 30],
viewrecords: true,
imgpath: gridimgpath,
onSelectRow: ViewDetails,
height: "250px"
}); //.navGrid('#pager', { edit: false, add: false, del: false, search: false, refresh: true });
$("#ColumnChooser :checkbox").click(function() {
SetColumnVisibility(this.id, this.checked);
});
$("#ResetColumns").click(SetColumnsVisibilityToDefaults);
$("#CloseColumnChooser").click(SaveColumnVisibilityToCookie);
var myClose = function(hash) {
hash.w.fadeOut('2000', function() { hash.o.remove(); });
};
var myOpen = function(hash) { hash.w.css('opacity', 1).show(); }
$('#ColumnChooser').jqm({ onHide: myClose, onShow: myOpen, modal: true, tigger: false });
$('#lnkColumnChooser').click(function() {
$('#ColumnChooser').jqmShow();
});
$('#ExceptionDetail').jqm({ onHide: myClose, onShow: myOpen, modal: true, tigger: false });
InitialiseColumnVisibility();
});
// Displays a modal popup with the row details
var ViewDetails = function(rowid) {
var objRowData = jQuery("#list").getRowData(rowid);
$('#ExceptionDetail').item(objRowData).chain();
$('#ExceptionDetail' + 'Id').text(objRowData['id']);
$('#ExceptionDetail' + 'Raised').text(objRowData['Raised']);
$('#ExceptionDetail' + 'RequestId').text(objRowData['RequestId']);
$('#ExceptionDetail' + 'UserId').text(objRowData['UserId']);
$('#ExceptionDetail' + 'OriginatingServer').text(objRowData['OriginatingServer']);
$('#ExceptionDetail' + 'EventId').text(objRowData['EventId']);
$('#ExceptionDetail' + 'Keyword1').text(objRowData['Keyword1']);
$('#ExceptionDetail' + 'Keyword2').text(objRowData['Keyword2']);
$('#ExceptionDetail' + 'Keyword3').text(objRowData['Keyword3']);
$('#ExceptionDetail' + 'Keyword4').text(objRowData['Keyword4']);
$('#ExceptionDetail' + 'Keyword5').text(objRowData['Keyword5']);
$('#ExceptionDetail' + 'Keyword6').text(objRowData['Keyword6']);
$('#ExceptionDetail' + 'Keyword7').text(objRowData['Keyword7']);
$('#ExceptionDetail' + 'Keyword8').text(objRowData['Keyword8']);
$('#ExceptionDetail' + 'Keyword9').text(objRowData['Keyword9']);
$('#ExceptionDetail' + 'Keyword10').text(objRowData['Keyword10']);
$('#ExceptionDetail' + 'StackTrace').text(objRowData['StackTrace']);
$('#ExceptionDetail').jqmShow();
};
var InitialiseColumnVisibility = function() {
// Check for cookie
var cookieValue = $.cookie('SelectedColumns');
if (cookieValue != null) {
for (i = 0; i < columnConfig.length; i++) {
SetColumnVisibility(columnConfig[i].name, false);
}
var savedColumns = cookieValue.split(",");
for (i = 0; i < columnConfig.length; i++) {
if (-1 != $.inArray(columnConfig[i].name, savedColumns)) {
SetColumnVisibility(columnConfig[i].name, true);
}
else {
SetColumnVisibility(columnConfig[i].name, false);
}
}
}
else {
SetColumnsVisibilityToDefaults();
}
}
var SetColumnsVisibilityToDefaults = function() {
for (i = 0; i < columnConfig.length; i++) {
var columnName = columnConfig[i].name;
if (-1 != $.inArray(columnName, defaultVisibleColumns)) {
SetColumnVisibility(columnName, true);
}
else {
SetColumnVisibility(columnName, false);
}
}
$.cookie('SelectedColumns', null, { path: '/', expires: -365 });
}
var SetColumnVisibility = function(columnName, visible) {
if (visible) {
$("#list").showCol(columnName);
}
else {
$("#list").hideCol(columnName);
}
$("#" + columnName).attr('checked', visible);
}
var SaveColumnVisibilityToCookie = function() {
var selectedColumns = new Array();
var index = 0;
$("#ColumnChooser :checkbox").each(function(i, domElement) {
if (this.checked) {
selectedColumns[index] = this.id;
index++;
}
});
$.cookie('SelectedColumns', selectedColumns.join(","), { path: '/', expires: 365 });
}
HTML
<div id="Exceptions">
<table id="list" class="scroll" cellpadding="0" cellspacing="0" width="100%">
</table>
<!-- pager definition. class scroll tels that we want to use the same theme as grid -->
<div id="pager" class="scroll" style="text-align: center;">
</div>
<a href="#" id="lnkColumnChooser">Choose Columns</a>
</div>
<div class="jqmWindow" id="ColumnChooser">
<input type="image" src="/Content/images/cancel_16.png" alt="close" class="close jqmClose" title="close" />
<h1>Select Columns</h1>
<a href="#" id="ResetColumns" class="jqmClose">Reset to defaults</a>
<br />
<input type="checkbox" id="id" />Id <br />
<input type="checkbox" id="Raised" />Raised <br />
<input type="checkbox" id="RequestId" />Request Id <br />
<input type="checkbox" id="UserId" />User Id <br />
<input type="checkbox" id="OriginatingServer" />Originating Server <br />
<input type="checkbox" id="EventId" />Event Id <br />
<input type="checkbox" id="Keyword1" />Keyword1 <br />
<input type="checkbox" id="Keyword2" />Keyword2 <br />
<input type="checkbox" id="Keyword3" />Keyword3 <br />
<input type="checkbox" id="Keyword4" />Keyword4 <br />
<input type="checkbox" id="Keyword5" />Keyword5 <br />
<input type="checkbox" id="Keyword6" />Keyword6 <br />
<input type="checkbox" id="Keyword7" />Keyword7 <br />
<input type="checkbox" id="Keyword8" />Keyword8 <br />
<input type="checkbox" id="Keyword9" />Keyword9 <br />
<input type="checkbox" id="Keyword10" />Keyword10 <br />
<input type="checkbox" id="StackTrace" />StackTrace <br />
<br />
</div>
<div class="jqmWindow" id="ExceptionDetail">
<input type="image" src="/Content/images/cancel_16.png" alt="close" class="close jqmClose" title="close" />
<h1>Exception Detail</h1>
<div id="keywords">
<label>Id</label><span class="id">Id</span>
<label>Raised</label><span class="Raised">Raised</span>
<label>RequestId</label><span class="RequestId">RequestId</span>
<label>User Id</label><span class="UserId">User Id</span>
<label>Originating Server</label><span class="OriginatingServer">OriginatingServer</span>
<label>Event Id</label><span class="EventId">EventId</span>
<label>Keyword1</label><span class="Keyword1">Keyword1</span>
<label>Keyword2</label><span class="Keyword2">Keyword2</span>
<label>Keyword3</label><span class="Keyword3">Keyword3</span>
<label>Keyword4</label><span class="Keyword4">Keyword4</span>
<label>Keyword5</label><span class="Keyword5">Keyword5</span>
<label>Keyword6</label><span class="Keyword6">Keyword6</span>
<label>Keyword7</label><span class="Keyword7">Keyword7</span>
<label>Keyword8</label><span class="Keyword8">Keyword8</span>
<label>Keyword9</label><span class="Keyword9">Keyword9</span>
<label>Keyword10</label><span class="Keyword10">Keyword10</span>
</div>
<label>StackTrace</label><span class="StackTrace" style="width:790px; height:160px; overflow:scroll" >StackTrace</span>
</div>
01:32

Moderators
30/10/2007

Hello,
Could not reproduce the error. Sorry.
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:
25 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