Decorator and ajax panel

4 posts, 0 answers
  1. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 02 Dec 2009 Link to this post

    Hello,

    How do I force decorator to redecorate controls after ajax request ?

    I have the following scenario:

    //pseudocode 
     
    <RadFormDecorator decorate buttons only/> 
    <div> 
     
    <RadAjaxPanel EnableAjaxtrue
    <asp Button id=1 Enabled=true
    <asp Button id=2 Enabled=false
    </RadAjaxPanel> 
     
    </div> 
     

    button 1 on server click enables button 2 and its not decorated anymore. How to force it to be decorated ?


  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 Dec 2009 Link to this post

    Hello Roland,

    I tried to reproduce the problem but as you can see from the attached movie, everything is working as expected.

    Please find my code below - am I missing something?

    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
    <telerik:RadAjaxPanel ID="AjaxPanel1" runat="server">
        <asp:Button ID="Button1" runat="server" Text="Enable Button 2" OnClick="Button1_Click" />
        <br />
        <asp:Button ID="Button2" runat="server" Text="Disabled" Enabled="False" />
    </telerik:RadAjaxPanel>
    </form>

    protected void Button1_Click(object sender, EventArgs e)
    {
        Button2.Enabled = true;
        Button2.Text = "Enabled";
    }



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 03 Dec 2009 Link to this post

    Hmm, thats weird.

    My ajax panel has LoadingPanelId set and there is loading panel on the page that covers everything. I works for me in new project, but not in mine :S There has to be something that breaks it.

    I will try reproducing in new project and I will attach it here.


  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 04 Dec 2009 Link to this post

    OK Roland,

    Just note that you cannot attach archives in the forum (only image files), so you will have to open a support ticket.

    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top