User control in RadWindow does not bind properly

2 posts, 0 answers
  1. Adam King
    Adam King avatar
    23 posts
    Member since:
    May 2010

    Posted 22 Sep 2011 Link to this post

    Hi,

    I have an ascx user control inside my radWindow in my page (see RadWindow code below),
    Inside my wizard control my Edit button brings up the radWindow properly, it seems to bind correctly to my formview but the when saving it does not work,
    ** in particular the parameter values to my update call are unchanged.**
    So it will eval correctly but not 2-way bind, I double-checked that I have 'bind' not eval. The radWindowManager is inside my master page.
    In my control's formview there is no surrounding panels or updatePanels.

    I use javascript to open the window, but my Save button executes and runs code-behind.

    The control's 2-way bind was working in its old page (without a popup) and theres only been minor changes.
    Any ideas why the expected 2-way bind is failing in a radWindow?


     <telerik:RadWindow ID="radWindowForControls" Title="Applicant Details" KeepInScreenBounds="true" Behaviors="Maximize,Move" EnableShadow="true"  runat="server"  AutoSize="true"  Modal="true"  >
            <ContentTemplate>
             <div align="right">
                <asp:Button ID="Button49" runat="server" CausesValidation="false" Text="Save" OnClick="btnSave_Click" />
                <asp:Button ID="Button50" runat="server" CausesValidation="false" Text="Save and Close"
                    OnClick="btnSave_Click" />
                <asp:Button ID="Button51" runat="server" CausesValidation="false" Text="Cancel"
                    OnClick="btnCancel_Click" OnClientClick="return promptCancel()" />
            </div>
                <uc1:ATAppDetails ID="myCtrlATAppDetails" runat="server"  />
                 <div align="right">
                <asp:Button ID="Button52" runat="server" CausesValidation="false" Text="Save"
                    OnClick="btnSave_Click" />
                <asp:Button ID="Button53" runat="server" CausesValidation="false" Text="Save and Close"
                    OnClick="btnSave_Click" />
                <asp:Button ID="Button54" runat="server" CausesValidation="false" Text="Cancel"
                    OnClick="btnCancel_Click" OnClientClick="return promptCancel()" />
            </div>
            </ContentTemplate>
        </telerik:RadWindow>
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 23 Sep 2011 Link to this post

    Hello Adam,

    I have already replied to your support ticket on the matter. In order to avoid duplicate discussions and to follow the thread more easily I advise that we continue our conversation there. Once we reach a conclusion you may post the results here to help the community and someone else that stumbles upon a similar issue.


    Greetings,
    Marin
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top