Store Data is not binding
Hello,
I am trying to refresh the grid panel after some say 1 minute. But the grid is not getting updated. After clicking on refresh icon the data gets visible. So can any one help me out of this.
code :
Begin:
Code:
System.Threading.Thread.Sleep(4000);
if (Cache["XYZ"] != null)
{
taskRunList = (List<TaskRunDetails>)Cache["WorkflowStatus"];
Store1.DataSource = taskRunList;
Store1.DataBind();
Store1.LoadData(taskRunList);
}
if (Session["ABC"] != null || Cache["XYZ"] != null)
{
goto Begin;
}
Store1.LoadData(taskRunList);
}
Store data is not refreshing
Hello Danill,
Thanks for your example. But in my grid panel store, the data is not refreshing. And also it is not calling the method "Store_RefreshData" after some interval.
Is there any way to call explicitly the"Store_RefreshData" method from other method in code behind ?? or reload all grid panel including store.??
Thanks,
Rahul.
Store data is not refreshing
He Danill.
I have spawn a thread for following method:
Code:
Method1()
{
System.Threading.Thread.Sleep(5000);
List<TaskRunDetails> taskRunList = new BusinessLogicLayer.MonitorTaskExecutionTrans().FetchTaskStatusInfo(batchId, repositoryId);
new BusinessLogicLayer.ExecuteWorkFlowTrans().SaveBatchWorkflowsStatus(taskRunList, batchId);
Store2.DataSource = taskRunList;
Store2.LoadData(taskRunList);
Store2.DataBind();
}
But the grid data is not changing. So, can you please help me out of this.
Thanks,
Rahul.
Store data is not refreshing
Hello Daniil,
I have created one thread and passed it to method1(). So that user can also navigate to other pages in meanwhile at the time of method1() executes. Because, method() is taking around 4-5 minutes for execution.
I am using sleep(), so that, control will wait for some time and then again fetch the data from database(updated). And i want to show that updated data into the grid view.
Thanks,
Rahul.