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

update a radgrid only when the radfilter applyexpressions

1 Answer 31 Views
This is a migrated thread and some comments may be shown as answers.
Kwok (Andrew)
Top achievements
Rank 1
Kwok (Andrew) asked on 09 Nov 2012, 10:18 PM

I want to make the radfilter only update the radgrid when the apply buttom is press. not during the buliding of an expressions. I try to put radfilter under the RadAjaxmanager with the EventName="ApplyExpressions". Please see the code below

<head runat="server">
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    <script type="text/javascript">
        //Put your JavaScript code here.
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:AjaxSetting AjaxControlID="RadFilter1" EventName="ApplyExpressions" >
                    <telerik:AjaxUpdatedControl ControlID="grid" />
            <telerik:AjaxSetting AjaxControlID="RadFilter1">
                    <telerik:AjaxUpdatedControl ControlID="RadFilter1" />
                        <telerik:RadFilter ID="RadFilter1" runat="server" FilterContainerID="grid"
                            onapplyexpressions="RadFilter1_ApplyExpressions" AllowFilterOnBlur="False" >
                        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

But it still update the radgrid when i build the expressions.

1 Answer, 1 is accepted

Sort by
Angel Petrov
Telerik team
answered on 14 Nov 2012, 04:12 PM
Hi Andrew,

Thank you for contacting us.

I am sorry to say but you can not avoid updating the RadGrid. The RadAjaxManager has no way of determining whether the RadFilter updates itself or does it update the grid. So it updates both controls.

Let me know if I could assist you further.

All the best,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Kwok (Andrew)
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question