DataTable Edit Column resort itself when I click on the Edit link.
DataTable Edit Column resort itself when I click on the Edit link.
Hi,
I applied the datatable to a gridview with has the AutoGenerateEditButton = "true".
When the page loads, everything looks good. However, when I click on any row Edit linkbutton, the selected row resort itself to the bottom. This is an issue if I have 100's of rows and the selected Edit row resort to the bottom and the user have to click to the last page.
Any help is appreciated.
Thanks
var oResultGrid = $("[id$='gvMyData']");
if (fixEmptyDataRow(oResultGrid)) {
var oTable = oResultGrid.dataTable({
"bPaginate": false,
"bFilter": false,
"bInfo": false
});
}
else {
var oTable = oResultGrid.dataTable({
"sPaginationType": "full_numbers",
"aaSorting": [[0, 'asc']],
"sDom": '<"top"lif<"clear">>rt<"bottom"lip<"clear">>',
"aoColumns": [
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": false }
]
});
}
I applied the datatable to a gridview with has the AutoGenerateEditButton = "true".
When the page loads, everything looks good. However, when I click on any row Edit linkbutton, the selected row resort itself to the bottom. This is an issue if I have 100's of rows and the selected Edit row resort to the bottom and the user have to click to the last page.
Any help is appreciated.
Thanks
var oResultGrid = $("[id$='gvMyData']");
if (fixEmptyDataRow(oResultGrid)) {
var oTable = oResultGrid.dataTable({
"bPaginate": false,
"bFilter": false,
"bInfo": false
});
}
else {
var oTable = oResultGrid.dataTable({
"sPaginationType": "full_numbers",
"aaSorting": [[0, 'asc']],
"sDom": '<"top"lif<"clear">>rt<"bottom"lip<"clear">>',
"aoColumns": [
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": false }
]
});
}
This discussion has been closed.
Replies
Allan