Datatable inside Updatepanel savestate problem

Datatable inside Updatepanel savestate problem

fireflapfireflap Posts: 1Questions: 0Answers: 0
edited January 2013 in General
hi I'm using datatable with gridview inside UpdatePanel and there's a linkbutton with CommandName="Update" for getting row values to editform Labels.

[code]


/............./








Edit



[/code]
[code]function datatable() {
var oTable = $('#grd1').dataTable({
"bJQueryUI": true,
"iDisplayLength": 1,
"aLengthMenu": [[1, 25, 50, 100, -1], [1, 25, 50, 100, "All"]],
"bPaginate": true, "bLengthChange": true, "sPaginationType": "full_numbers",
"bStateSave": true
}); [/code]

When I click linkbutton;
[code]protected void edit(object sender, GridViewUpdateEventArgs e)
{
//getting like that
//string Gid = grd1.Rows[e.RowIndex].Cells[0].Text;
}
[/code]
and calling js inside update panel or codebehind
[code]
Sys.Application.add_load(datatable())
[/code]
after click linkbutton everything working fine but datatable delaying <1sec. So pagination not working and all gridview rows seems until datatable refresh. That takes <1sec but not seems good. I tried call script codebehind but nothing changed. I think all postbacks will cause that problem. I read some post with postback problems but I couldn't find a solution for my problem.

Reagards
This discussion has been closed.