jQWidgets Forums

jQuery UI Widgets Forums General Discussions Lists DropDownList how we can bind asp:datalist by dropdown selection change

This topic contains 3 replies, has 3 voices, and was last updated by  zajo1969 12 years, 3 months ago.

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

  • Narendra
    Participant

    Hi Frnds,

    I am using asp:datalist to display images from sql database, these images are two types like edit and live, Now I am using a jqxdropdownlist with items containing edit and live, Here my requirement is that when i select edit item in dropdownlist then the datalist will display only edit type images and live type images will be disappear and viceversa.

    Please help me

    Thanks in advance

    Narendra..


    Dimitar
    Participant

    Hello Narendra,

    You can bind to the select event and execute custom actions in the event handler.

    Here is how to bind to the select event:

    $('#jqxDropDownList').on('select', function (event) {
    var args = event.args;
    if (args) {
    // index represents the item's index.
    var index = args.index;
    var item = args.item;
    // get item's label and value.
    var label = item.label;
    var value = item.value;
    }
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    Narendra
    Participant

    Thanks for your reply,

    how we bind asp:Datalist basing on jqxdropdownlist selected index…


    zajo1969
    Member

    Hello jqWidgets gurus,

    this is intersting for me too. I have PHP page with two dropdownlists. Both are filled by data from MySQL. DropDownList1 contents ids of some group and DropDownlist2 must show only detailed records which have this group id. It must happens when event “select” on DropDownList1 occurred. How can I do it? Please advise me.

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

You must be logged in to reply to this topic.