Dynamic Link on AdvancedForm

4 posts, 0 answers
  1. SSirica
    SSirica avatar
    50 posts
    Member since:
    Jan 2007

    Posted 31 Aug 2010 Link to this post

    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?
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 01 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. SSirica
    SSirica avatar
    50 posts
    Member since:
    Jan 2007

    Posted 01 Sep 2010 Link to this post

    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.
  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 03 Sep 2010 Link to this post

    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
Back to Top