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

ascx ajaxified and editor dialogues

4 Answers 94 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 19 Apr 2008, 08:36 AM
Dear Telerik,

I am loading user controls from a panel bar using the ajax manager - all is good.

Default.aspx ** (uses masterpage)

<telerik:RadPanelbar runat="server" ID="RPBMenu" Skin="jb" EnableEmbeddedSkins="false" CausesValidation="false" Width="217">
<expandanimation type="InOutCubic" Duration="300"></expandanimation> 
</telerik:RadPanelbar>

<asp:Label ID="lblContentTitles" runat="server"></asp:Label>

<asp:Panel id="PHmain" runat="server"></asp:Panel>

 <Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>

            <Telerik:AjaxSetting AjaxControlID="RPBMenu">
                <UpdatedControls>
                <Telerik:AjaxUpdatedControl ControlID="PHMain"  />
                <Telerik:AjaxUpdatedControl ControlID="lblContentTitles" LoadingPanelID="LoadingPanel2" />
                </UpdatedControls>  
            </Telerik:AjaxSetting>
                  
        </AjaxSettings>

    </Telerik:RadAjaxManager>

I now notice that this ajaxifies all of the controls within the loaded ascx page (has this changed from the asp.net version?) .

On one ascx page I have a link button that toggles the visibility of an editor. When this link button is clicked the editor shows but the dialogues do not show up properly and cannot be used.
If I just add the editor as visible and do not use the link button then everything works as it should.

I have read everything I can and tried everything to resolve this but am stuck!

Cheers,

Jon

4 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 22 Apr 2008, 08:28 AM
Guys,

I see that all controls in an ascx control now inherit Ajax capability from the parent page.
I have removed the Ajax from the button that sets the editor visible and now all dialogues load as they should.
To remove the ajax behaviourI have this in the Page_Load event of the user control.

Dim ram As RadAjaxManager = Parent.FindControl("RadAjaxManager1")

LBEdit.OnClientClick = [String].Format("{0}.__doPostBack(""{1}"",""{2}"");", ram.ClientID, LBEdit.UniqueID, LBEdit.CommandArgument)

Many thanks,

Jon

0
Accepted
Lini
Telerik team
answered on 22 Apr 2008, 12:14 PM
Hi Jon,

The problem with the editor dialogs after Ajax requests has been fixed and the fix will be available in the next service pack release.

The automatic ajaxifying of all controls in the user control is a feature we inherit from the ASP.NET AJAX framework. I think that this is the intended behavior. You could open a support ticket for the RadAjax control and ask if there is a workaround available for that.

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tgerber
Top achievements
Rank 1
answered on 01 May 2008, 07:46 PM
i'm using a radeditor in a user control and i also have that user control in a panel on my content page. i have a button on the content page that toggles the panel visible and invisible and i am using the radadjaxmanager to accomplish all this. the editor on the user control is also toggled visible and invisible from within the usercontrol itself. if i remove the ajax from this nested linkbutton that toggles the panel/editor visible and invisible, the editor performs correctly as long as when i get to that control, i use that link button first to toggle the panel/editor visible and invisible. if i use a table editor or image dialog before clicking this button, my editor doesn't work correctly.

my solution was to make the panel/editor invisible when the control was loaded, forcing you to use the link button that was 'de-ajaxified'. now the image dialog works but the table editor still doesn't work unless you've clicked the 'de-ajaxified' link button first.

0
Lini
Telerik team
answered on 07 May 2008, 09:19 AM
Hi,

I think the editor dialogs problem is already fixed in our internal builds. The fix will be made available in the next service pack release (scheduled for next week). I apologize for the inconvenience this has caused you.

Kind regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Lini
Telerik team
tgerber
Top achievements
Rank 1
Share this question
or