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

Customize LinkManager.ascx

3 Answers 92 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark Blom
Top achievements
Rank 1
Mark Blom asked on 09 Oct 2008, 08:30 PM
Hi,

I have found some useful info on using ExternalDialogsPath in order to change the default dialogs like LinkManager.

Unfortunately, I have no idea on how to accomplish the following:

I would like to customize the LinkManager.ascx by adding a fourth tab. This tab will contain a dropdown that will be filled by some records that will be retrieved from a back-end database. When the user selects one of the dropdown items and presses the OK button, the selected value should be converted into an URL like http://website/page.aspx?code=<selected value>

The problem I have is that I do not seem to be able to add server side code to the ascx as merely adding an inline 

protected

 

void Page_Load(object sender, EventArgs e)

does not seem to work.

Can someone please point me into the right direction?

Thanks!

Mark

 

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Oct 2008, 02:36 PM
Hi Mark,

You can add a new tab to the LinkManager by declaratively adding a new RadTab and RadMultipage.

It is not possible to run codebehind code in the external LinkManager.ascx file but you can always workaround this by inserting another custom control in the LinkManager.ascx file. In this custom control you will have codebehind and you will be able to databind the dropdown.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark Blom
Top achievements
Rank 1
answered on 13 Oct 2008, 02:40 PM
Thanks for the reply, I will try your suggestion!

Regards,

Mark
0
Infrastructure
Top achievements
Rank 1
answered on 29 Oct 2008, 09:27 AM
Hi there,

Just out of interest, why isn't it possible to run codebehind code in the external LinkManager.ascx file?

I am in the process of customising the LinkManager, and have come across this problem too

Many thanks

Baz
Tags
Editor
Asked by
Mark Blom
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mark Blom
Top achievements
Rank 1
Infrastructure
Top achievements
Rank 1
Share this question
or