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

Decorator and ajax panel

3 Answers 69 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 02 Dec 2009, 05:55 PM
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 ?


3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 03 Dec 2009, 12:55 PM
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.
0
Roland
Top achievements
Rank 1
answered on 03 Dec 2009, 03:18 PM
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.


0
Georgi Tunev
Telerik team
answered on 04 Dec 2009, 06:26 AM
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.
Tags
FormDecorator
Asked by
Roland
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Roland
Top achievements
Rank 1
Share this question
or