jQWidgets Forums

jQuery UI Widgets Forums General Discussions Dynamically add controllers

This topic contains 3 replies, has 2 voices, and was last updated by  NeverGiveUp 10 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Dynamically add controllers #56428

    NeverGiveUp
    Participant

    Hi ,
    I need to create a template form which has widgets like textbox,dropdown, checkbox etc.. My problem is that i need to add these widgets dynamically. I fetch template design data from server and need to populate them.

    If it is possible to add widgets dynamically or not? if it is possible then how to do that?

    Thanks.

    Dynamically add controllers #56431

    Peter Stoev
    Keymaster

    Hi NeverGiveUp,

    To create a widget, you should have a HTML Element in the DOM(usually a DIV tag or Input tag for some of the Input widgets). You may add that DIV tag dynamically if you want to. After you add it to the DOM, call the widget’s constructor function as shown in the samples and documentation to create the widget.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dynamically add controllers #56433

    NeverGiveUp
    Participant

    Thank you for quick reply.. I will try..
    Thnaks

    Dynamically add controllers #56485

    NeverGiveUp
    Participant

    Hi Peter Stoev,
    I have tried which u suggested and it is working fine..
    Thank you for helping..

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.