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

Dynamic Link on AdvancedForm

3 Answers 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
SSirica asked on 31 Aug 2010, 08:01 PM
It's been a long road but I've been able to manipulate most of the controls on the AdvancedForm, but now I would either like to make one of the RadTextBox have a button and have it act like a hyperlink and redirect to another form or add a hyperlink control to the AdvancedForm.  I tried

 

Dim txtActTickID As Telerik.Web.UI.RadTextBox = DirectCast(e.Container.FindControl("AttrAction Ticket"), Telerik.Web.UI.RadTextBox)
txtActTickID.ReadOnly = True
txtActTickID.BackColor = Drawing.Color.LightGray
txtActTickID.ShowButton = True
txtActTickID.ClientEvents.OnButtonClick = "ShowAT(" & txtActTickID.Text & ")"
That was executing every time I tried to edit an appointment.  I also tried
Dim objHL As New HyperLink
objHL.NavigateUrl = "TestForm.aspx"
objHL.Text = "Show Test Form"
e.Container.Controls.Add(objHL)
but the control never showed up?  Any ideas?

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 01 Sep 2010, 02:38 PM
Hello SSirica,

To be able to create a new control in the Advanced Form like the hyperlink, you'll need to customize the Advanced Form. Please take a look at the following resources how:

 Advanced Templates - Demo

 Customize the Advanced Template - Help article

Feel free to ask me if you have further questions.

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
answered on 01 Sep 2010, 04:08 PM
Thanks but due to the complexities in including this functionality I just decided to scrap it.  I was trying to get this done without having to deal with the AdvancedForm.ascx.
0
Veronica
Telerik team
answered on 03 Sep 2010, 04:54 PM
Hello SSirica,

Please take a look at the attached .zip file. I've added 3 custom attributes and RequiredFieldValidators for the TextBoxes which represents the custom attributes. You can follow the example to solve your case. There is no other way to accomplish your requirements.

Best regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Veronica
Telerik team
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or