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
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
3 Answers, 1 is accepted
0
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.
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.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 22 Jun 2009, 07:03 AM
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
0
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.
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.