Column is still visible after refresh the table when hosting the website on the server

Column is still visible after refresh the table when hosting the website on the server

dvnandoverdvnandover Posts: 42Questions: 0Answers: 0
edited September 2012 in General
I have rather a weird problem with setting bVisible = false for a couple of columns on the table. When the website hosted on the server and the user access the page the columns are still show eventhough they were set bVisible = false in the table setting (see below) and i am getting javascript error "Error: Unable to get value of the property 'asSorting': object is null or undefined". The page worked correctly if i run it locally i.e.. runing it from my work station or logped into the server and run it locally from the server. It happened only when the user accessing the page from the brower. I have spend so much time on the issue without any luck. I double checked the number of columns and they are matched. I hope i can get some help from the experts. It happend when the user change some criteria and click the search button which refreshed the content of the table.
The error points to line 6521 of jquery.datatable.js:
/* Set the current sorting index based on aoColumns.asSorting */
for ( j=0, jLen=oColumn.asSorting.length ; j 9)
sortexp += ",";
string sSortTitle = "iSortCol_" + i.ToString();
string sSortDirTitle = "sSortDir_" + i.ToString();
int sortCol = int.Parse(context.Request[sSortTitle]);
string sColTitle = "mDataProp_" + sortCol.ToString();
sortexp += context.Request[sColTitle] + " " + context.Request[sSortDirTitle];
}
This discussion has been closed.