Hi,
I am trying to refresh grid at regular interval as follow:
===========================
var myInterval = window.setInterval("refreshRadGrid();",30000);
function refreshRadGrid()
{
var s_param;
s_param = document.getElementById("ctl00_cphMain_hdGridParam").value;
PageMethods.cBindGrid(s_param,updateGrid);
}
function updateGrid(result)
{
var tableView = $find("<%= dgrdBroadcasts.ClientID %>").get_masterTableView();
var virtualCount = tableView.getCellByColumnUniqueName(tableView.get_dataItems()[0],"total_rows").innerHTML;
tableView.set_virtualItemCount(virtualCount);
tableView.set_dataSource(result);
tableView.dataBind();
}
===========================
This gives some problem like grid is refreshed but still shows removed record from database. Few columns get blank(I am trying to find more).
Please give input on the issue.
Thanks & Regards,
Vaibhav
I am trying to refresh grid at regular interval as follow:
===========================
var myInterval = window.setInterval("refreshRadGrid();",30000);
function refreshRadGrid()
{
var s_param;
s_param = document.getElementById("ctl00_cphMain_hdGridParam").value;
PageMethods.cBindGrid(s_param,updateGrid);
}
function updateGrid(result)
{
var tableView = $find("<%= dgrdBroadcasts.ClientID %>").get_masterTableView();
var virtualCount = tableView.getCellByColumnUniqueName(tableView.get_dataItems()[0],"total_rows").innerHTML;
tableView.set_virtualItemCount(virtualCount);
tableView.set_dataSource(result);
tableView.dataBind();
}
===========================
This gives some problem like grid is refreshed but still shows removed record from database. Few columns get blank(I am trying to find more).
Please give input on the issue.
Thanks & Regards,
Vaibhav