Hi
i implemented the solution here :
Ajaxify Timer
but every 1 sec the timer component is sending request to the server and back with all the data.
what i want is to check if there is new data in the DB , if so, refresh the RadGrid
in the timer event i do so :
protected void Timer1_Tick(object sender, EventArgs e)
{
DateTime date;
if (DateTime.TryParse(SessionState.SessionSusitaLeadsLastCheck, out date)) // Last checking date
{
if (SmartAgentServices.GetInstance().CheckLastSmartAgentRequest(date)) // Check if add new data
{
RadGrid1.Rebind();
}
}
SessionState.SessionSusitaLeadsLastCheck = DateTime.Now.ToString(); //update the last checking date
}
thanks
i implemented the solution here :
Ajaxify Timer
but every 1 sec the timer component is sending request to the server and back with all the data.
what i want is to check if there is new data in the DB , if so, refresh the RadGrid
in the timer event i do so :
protected void Timer1_Tick(object sender, EventArgs e)
{
DateTime date;
if (DateTime.TryParse(SessionState.SessionSusitaLeadsLastCheck, out date)) // Last checking date
{
if (SmartAgentServices.GetInstance().CheckLastSmartAgentRequest(date)) // Check if add new data
{
RadGrid1.Rebind();
}
}
SessionState.SessionSusitaLeadsLastCheck = DateTime.Now.ToString(); //update the last checking date
}
thanks