jQuery UI Widgets Forums Lists ListBox Problem while refreshing a listbox

This topic contains 4 replies, has 2 voices, and was last updated by  Marco 10 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Problem while refreshing a listbox #7571

    Marco
    Member

    Hello,

    I’m using a ListBox that is bind by xml. I have a treeview in my page and when i click on items from the treeview, it refreshs the listbox.

    Here is the code called when an item of the treeview is clicked :

    function load_list(id)
    {
    var src = getDataSource_lst(‘data_provider.php?id=’ + id);
    dataAdapter_lst = new $.jqx.dataAdapter(src);

    try
    {
    $(“#lstBatch”).jqxListBox({ source: dataAdapter_lst });
    }
    catch(err)
    {
    alert(err);
    }
    }

    The problem is that after 8 calls, i get the following exception : “TypeError: Cannot read property ‘style’ of null” and of course, the list is not refreshed.

    Am I doing something wrong ?

    Thanks for your help,
    Marco

    Problem while refreshing a listbox #7577

    Peter Stoev
    Keymaster

    Hi Marco,

    Could you please send us a sample which reproduces that, because we are unable to do it locally? I can’t say what’s going wrong from the provided code because we have a similar working demo with jqxListBox when its source is changed dynamically.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Problem while refreshing a listbox #7594

    Marco
    Member

    Hello Peter,

    Thanks for your reply. I have made an easy sample to reproduce the problem. You can download it here http://xbox.team.free.fr/Debug.zip

    Just run index.html and then click a lot of time on items “Link 1”, “Link 2”, “Link 3”. The exception will appears.

    I have made test under chrome and firefox 13.0.1. The version of jqwidgets is 2.4.1.

    Thanks in advance,

    Marco

    Problem while refreshing a listbox #7595

    Peter Stoev
    Keymaster

    Hi Marco,

    We tested your sample and reproduced the issue. We have been able to make a quick fix and we uploaded a new build of jqwidgets 2.4.1. You can download it from: http://www.jqwidgets.com/download/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Problem while refreshing a listbox #7596

    Marco
    Member

    Perfect, it works fine now.

    Thanks you!

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

You must be logged in to reply to this topic.