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

User control in RadWindow does not bind properly

1 Answer 56 Views
Window
This is a migrated thread and some comments may be shown as answers.
Adam King
Top achievements
Rank 1
Adam King asked on 22 Sep 2011, 08:53 PM
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>

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Sep 2011, 09:20 AM
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
Tags
Window
Asked by
Adam King
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or