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

update a radgrid only when the radfilter applyexpressions

1 Answer 37 Views
Ajax
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">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--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" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadFilter1" EventName="ApplyExpressions" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadFilter1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadFilter1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
         
 
                        <telerik:RadFilter ID="RadFilter1" runat="server" FilterContainerID="grid"
                            ExpressionPreviewPosition="Bottom"
                            onapplyexpressions="RadFilter1_ApplyExpressions" AllowFilterOnBlur="False" >
                        </telerik:RadFilter>
  
                    
              
                        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    
      </div>
    </form>
</body>
</html>

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

1 Answer, 1 is accepted

Sort by
0
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.
Tags
Ajax
Asked by
Kwok (Andrew)
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or