Hello,
I want to extend linkmanager usercontrol dialog of radeditor.
I have added a button control in LinkManager.ascx. by setting the title etc as done for 'Insert button'....
<input type="text" id="LinkURL" style="width: 222px;" />
<button type="button" id="CustomButton" style="min-width: 80px; _width: 80px; margin-left: 8px;">
<script type="text/javascript">
setInnerHtml("CustomButton", localization["Custom"]);
</script>
</button>
but when dialog opened the button's title is set as 'undefined'. How can this be acheived?
Also, I want to pass some value to the usercontrol to decide whether to show or hide this new 'custom button'.
I tried something in 'Page_PreRenderComplete' in which I have my RadEditor like ..
Dim showcustom As Boolean = True
Dim linkManager As Telerik.Web.UI.DialogDefinition = radEHtmlContent.GetDialogDefinition("LinkManager")
linkManager.Width = "500"
linkManager.Height = "300"
linkManager.ClientCallbackFunction = ""... here can I pass the value of showcustom and how to read that in LinkManager.ascx to show/hide the 'custombutton'
Quick reply will be of great help.
Thanks in advance.
skelkar
I want to extend linkmanager usercontrol dialog of radeditor.
I have added a button control in LinkManager.ascx. by setting the title etc as done for 'Insert button'....
<input type="text" id="LinkURL" style="width: 222px;" />
<button type="button" id="CustomButton" style="min-width: 80px; _width: 80px; margin-left: 8px;">
<script type="text/javascript">
setInnerHtml("CustomButton", localization["Custom"]);
</script>
</button>
but when dialog opened the button's title is set as 'undefined'. How can this be acheived?
Also, I want to pass some value to the usercontrol to decide whether to show or hide this new 'custom button'.
I tried something in 'Page_PreRenderComplete' in which I have my RadEditor like ..
Dim showcustom As Boolean = True
Dim linkManager As Telerik.Web.UI.DialogDefinition = radEHtmlContent.GetDialogDefinition("LinkManager")
linkManager.Width = "500"
linkManager.Height = "300"
linkManager.ClientCallbackFunction = ""... here can I pass the value of showcustom and how to read that in LinkManager.ascx to show/hide the 'custombutton'
Quick reply will be of great help.
Thanks in advance.
skelkar