Telerik
Home / Community / Forums / RadControls for ASP.NET: Treeview / Dynamic DropDownList/TextBox/Button

Not answered Dynamic DropDownList/TextBox/Button

Feed from this thread
  • Robert avatar

    Posted on Mar 31, 2008 (permalink)

    I would like to dynamically create a DropDownList, TextBox and Button on a new child node when the parent node is expanded. I can get all to appear and I assign a click handler to the button, but the handler is not called when I click the button. Also, the new control disappear after postback.

    Could you tell me if what I'm trying can be done and where I might be going wrong? I am using the Prometheus Beta.

    Rob

    Reply

  • Shinu Master avatar

    Posted on Apr 1, 2008 (permalink)

    Reply

  • Robert avatar

    Posted on Apr 1, 2008 (permalink)

    Shinu,

    Thanks for the quick reply.  I have the part of adding the controls down. I can add them and see them, I just can't do anything with them on postback. One problem: they disappear on postback and the click handler is not called on the button click. Also: I believe I might have a problem figuring out how to reference the text field and drop down even if they were visible after postback. I thought about adding event arguments to the click handler, but the click handler isn't being called.

    I don't know how to recreate them on postback if that is my problem. From what I've read, I was hoping that prometheus would solve that problem for me.

    Note that I believe I posted in the wrong area. I am using the prometheus control. Thanks for your help.

    Reply

  • Telerik Admin admin's avatar

    Posted on Apr 3, 2008 (permalink)

    Hi Robert,

    Attached, please find a small and running project on the matter. Please download it and give it a go. I hope this will get you started.

    Please let me know if I am missing something.

    Regards,
    Nick
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
    Attached files

    Reply

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2009 Telerik. All rights reserved.