RadFilter will not keep it's state between postbacks

5 posts, 0 answers
  1. Bron
    Bron avatar
    3 posts
    Member since:
    Jun 2011

    Posted 11 Jun 2011 Link to this post

    <%@ Control Language="VB" AutoEventWireup="true" CodeFile="SegmentationCreator.ascx.vb" Debug="true"
        Inherits="Controls_SegmentationCreator" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadFilter ID="RadFilter1" runat="server"
            CssClass="RadFilter RadFilter_Default" ExpressionPreviewPosition="Bottom" ShowApplyButton="false" AllowFilterOnBlur="true">
            <FieldEditors>
                <telerik:RadFilterTextFieldEditor DisplayName="text1" FieldName="textfield" TextBoxWidth="120" />
                <telerik:RadFilterNumericFieldEditor DisplayName="number1" FieldName="numberField" />
                <telerik:RadFilterBooleanFieldEditor DataType="System.Boolean" DisplayName="check1" FieldName="bitField" />
                <telerik:RadFilterDateFieldEditor DataType="System.DateTime" DisplayName="date1" FieldName="dateField" />
            </FieldEditors>
        </telerik:RadFilter>
        <ul>
        <telerik:RadListView ID="RadListView1" runat="server" DataSourceID="sqlData1">
            <ItemTemplate>
            <li><%# Eval("text1")%></li>
            </ItemTemplate>
        </telerik:RadListView>
        </ul>
        <asp:SqlDataSource ID="sqlData1" runat="server" ConnectionString="<%$ ConnectionStrings:FEI%>" SelectCommand="SELECT TOP 10 Email.email as text1, 1 as number1, 0 as check1, GETDATE() as date1 FROM Email">
        </asp:SqlDataSource>
        <asp:HiddenField id="hiddenQueryText" runat="server" />
    </telerik:RadAjaxPanel>
    Every time I click on add field or anything it just reverts to the first-time load state.  There is nothing in the code-behind file.  The only other odd thing is that If I add the RadScriptManager to the the ascx, the page gives an error that "Only one instance of a ScriptManager can be added to the page."  This control above is being added to the page using Page.LoadControl("path/nameof.ascx") so I don't really have control over that part.
  2. Bron
    Bron avatar
    3 posts
    Member since:
    Jun 2011

    Posted 15 Jun 2011 Link to this post

    Anyone??
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 16 Jun 2011 Link to this post

    Hello Bron,

    Only one instance of the ScriptManager control can be added to the page. The page can include the control directly, or indirectly inside a nested component such as a user control, content page for a master page, or nested master page. If a page already contains a ScriptManager control, but a nested or parent component needs additional features of the ScriptManager control, the component can include a ScriptManagerProxy control. For example, the ScriptManagerProxy control enables you to add scripts and services that are specific to nested components.
    Please examine this article for additional information.

    I hope this helps.

    Kind regards,
    Mira
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Bron
    Bron avatar
    3 posts
    Member since:
    Jun 2011

    Posted 17 Jun 2011 Link to this post

    That didn't help although I don't get the srcript manager error.
  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 22 Jun 2011 Link to this post

    Hello Bron,

    Can you try disabling ajax for the RadAjaxPanel in the user controls and see if it makes any difference?
    This can be done by setting the RadAjaxPanel EnableAjax property to false.

    Kind regards,
    Iana
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017