jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Drag-drop error

This topic contains 1 reply, has 2 voices, and was last updated by  Nadezhda 10 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Drag-drop error #65635

    mustafa
    Participant

    hello
    Drag and drop is coming this error but sometimes it works

    
        $('#CompanyList').jqxListBox({
            source: companies,
            displayMember: "CompanyName",
            valueMember: "CompanyID",
            height: "350px",
            width: "300px",
            allowDrag: true,
            allowDrop: true,
            theme: 'summer',
            selectedIndex:0,
            theme: 'arctic',
        });

    I thought it might be a mistake I after use the demo

        var source = [
           "Instant coffee",
           "Irish coffee",
           "Liqueur coffee"
        ];
        // Create a jqxListBox
        $("#ModulList").jqxListBox({ selectedIndex: 3, source: source, width: '200px', allowDrag: true, height: '250px', });

    I still see the same error I have a bug problem?

    thank you

    Drag-drop error #65666

    Nadezhda
    Participant

    Hello mustafa,

    Please, note that in the second code sample you are trying to select index which does not exist. If you want to select the third item you should use selectedIndex: 2(for example the first item can be selected with selectedIndex: 0).
    If this suggestion does not help you fix the issue, please provide us with a full sample.

    Best Regards,
    Nadezhda

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

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

You must be logged in to reply to this topic.