Custom dialog from link dialog

4 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 18 Jun 2009 Link to this post

    Hi,

    I want to start up a custom dialog from the Linkmanager.ascx, just like the Documentmanager is openend there.
    It should also drop a string in the URL field like the Document Manager does.

    Maybe I should I use <telerik:dialogopener> for this, but how do I point to my .aspx file then?

    Regards,
    Marc


  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 19 Jun 2009 Link to this post

    Hi Marc,

    Currently, it is not possible to open a custom RadEditor dialog from a built-in editor dialog.
    Nevertheless, you can try to achieve your scenario by adding a button to the link manager that will fire the browser's showModalDialog method and will open a custom browser dialog. This method also allows you to return value to the parent window.

    You can find information about the showModalDialog method in the following articles:
    http://msdn.microsoft.com/en-us/library/ms536759(VS.85).aspx
    and
    https://developer.mozilla.org/En/DOM/Window.showModalDialog

    Regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 22 Jun 2009 Link to this post

    Hi Rumen,

     

    I get the following when I implement this:

     

    Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

     

    I tried to implement

    protected override void Render(HtmlTextWriter writer)  
    {  
    Page.ClientScript.RegisterForEventValidation(PageManager.UniqueID);  
    base.Render(writer);  

    But this is not working. What is the best way to accept the Postback data in LinkManager.ascx?

    BR,

    Marc

  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 25 Jun 2009 Link to this post

    Hi Marc,

    I talked with our lead RadEditor and RadWindow developer and he proposed the following new approach that should work as expected in your scenario. It is to set the ExternalDialogsPath property to point to the EditorDialogs folder, open the Linkmanager.ascx file, register the RadWindow control in it and its radopen method to open a new dialog and using its client-side API to pass information from the newly opened dialog back to the Linkmanager.ascx control.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top