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

RadFilter will not keep it's state between postbacks

4 Answers 73 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Bron
Top achievements
Rank 1
Bron asked on 11 Jun 2011, 05:50 AM
<%@ 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.

4 Answers, 1 is accepted

Sort by
0
Bron
Top achievements
Rank 1
answered on 15 Jun 2011, 06:23 AM
Anyone??
0
Mira
Telerik team
answered on 16 Jun 2011, 08:17 AM
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.

0
Bron
Top achievements
Rank 1
answered on 17 Jun 2011, 10:59 PM
That didn't help although I don't get the srcript manager error.
0
Iana Tsolova
Telerik team
answered on 22 Jun 2011, 04:17 PM
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.

Tags
Filter
Asked by
Bron
Top achievements
Rank 1
Answers by
Bron
Top achievements
Rank 1
Mira
Telerik team
Iana Tsolova
Telerik team
Share this question
or