This is a migrated thread and some comments may be shown as answers.

RadGrid flickers onTimer update

6 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin Smith
Top achievements
Rank 1
Martin Smith asked on 05 Apr 2010, 02:47 PM
Hi,

I have set a timer to fire every 3 seconds. In the timer's function call I am doing a .Rebind()

This causes the grid to disappear and reappear. 

I don't really want to re-render the whole grid - Ideally I would like to just update a couple of cells in the grid.

Is this possible?

thx

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 05 Apr 2010, 03:19 PM
Hello Martin,

You can ajaxify selected controls from your RadGrid by adding the settings programmatically as demonstrated below:
Add AjaxSettings programmatically
protected void Page_PreRender(object sender, EventArgs e)
{
    //ajaxify the button in the first grid item
    Button btn1 = RadGrid1.MasterTableView.Items[0].FindControl("Button1") as Button;
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(btn1, btn1, null);
}

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Martin Smith
Top achievements
Rank 1
answered on 05 Apr 2010, 03:26 PM
What if I just want to update text?
0
Daniel
Telerik team
answered on 05 Apr 2010, 03:50 PM
Hello Martin,

You have to have some placeholder for this text - a regular label control for example.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Martin Smith
Top achievements
Rank 1
answered on 05 Apr 2010, 04:00 PM
is it possible in java script to loop though the cells updating their contents?
0
Martin Smith
Top achievements
Rank 1
answered on 05 Apr 2010, 05:23 PM
This didn't work at all.

I'm thinking I want to use the timer to update an invisible label on my form - them I'm going to use Java script to update the cells in the table from the text in the invisible label.

how can I iterate through the table and get/set cells? 
0
Martin Smith
Top achievements
Rank 1
answered on 05 Apr 2010, 06:55 PM
I seem to have got this working by REMOVING the timer from the RadAjaxManager, which is not what I would have expected.

anyway, thanks for the suggestions.
Tags
Grid
Asked by
Martin Smith
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Martin Smith
Top achievements
Rank 1
Share this question
or