ascx ajaxified and editor dialogues

5 posts, 1 answers
  1. Jack
    Jack avatar
    127 posts
    Member since:
    May 2003

    Posted 19 Apr 2008 Link to this post

    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

  2. Jack
    Jack avatar
    127 posts
    Member since:
    May 2003

    Posted 22 Apr 2008 Link to this post

    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

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Lini
    Admin
    Lini avatar
    2144 posts

    Posted 22 Apr 2008 Link to this post

    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
  5. tgerber
    tgerber avatar
    2 posts
    Member since:
    Apr 2008

    Posted 01 May 2008 Link to this post

    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.

  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 07 May 2008 Link to this post

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