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

Refresh telerik Grid after some timeout

2 Answers 228 Views
Grid
This is a migrated thread and some comments may be shown as answers.
usman
Top achievements
Rank 1
usman asked on 09 Feb 2012, 06:59 PM
I have a grid view in Telerik ajax panel 
I want help to get refresh after certain time , also I want when user insert enter a value from text box with in the same page of grid view , the grid view get refresh immediately rather then after time out

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Feb 2012, 04:06 AM
Hello Usman,

Take a look at the following demo.
Ajax / Ajaxify Timer

-Shinu.
0
Tsvetoslav
Telerik team
answered on 10 Feb 2012, 09:30 AM
Hello,

Concerning your second requirement - let's suppose that the ID of your TextBox is TextBox1, the ID of your RadGrid is RadGrid1 and the ID of your RadAjaxManager is RadAjaxManager1. What you need to do is to set the AutoPostback property of the box to true, attach an event handler to the TextChanged event on the server and in the event handler call the grid's Rebind() method. Finally, you need to add the following ajax setting to the ajax manager control:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="TextBox1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Hope it helps. 

Greetings,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
usman
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Tsvetoslav
Telerik team
Share this question
or