jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts

  • wmklaborn
    Participant

    Clarification on previous post…. It is when the data is sorted alphabetically on ‘desc’ field that the item with value=0 doesn’t work.

    wmklaborn


    wmklaborn
    Participant

    Thanks for the example. Yes, that example does work fine. It is when the data is sorted alphabetically that the list item with value=0 doesn’t work correctly. Can you run it with both sets of data, 1 sorted… 1 not sorted, and see what is going on in the sorted scenario?

    Appreciate the help!

    wmklaborn


    wmklaborn
    Participant

    Thanks for your response, but that doesn’t solve the issue with the code that I have. I need to use the id as the value, not the desc. And when the id=0 is used, there is an error when the data adapter is built and there is no record for 0 in the me.itemsByValue record of the listbox. In my example above there are 6 objects to populate the listbox, but when I debug the itemsByValue object of the listbox it only has 5 keys: 1 thru 5. There is no 0, thus the reason that my object can’t be found when calling (‘getItemByValue’, 0). In the above example, if I add a button for every value 0-5 each button will return the following:
    0 – returns nothing, INCORRECT, because it should return Pending
    1 – Open
    2 – Working
    3 – Completed
    4 – Pending – INCORRECT, because it should return Cancelled
    5 – OnHold

    Your help is appreciated.

    wmklaborn


    wmklaborn
    Participant

    Clarification…

    This code works fine in previous version 3.4, but doesn’t work the same in version 3.5.

    wmklaborn


    wmklaborn
    Participant

    Thanks Peter!
    Our group only just upgraded to 3.4, thus the reason that my issue still existed. Should this fix info be included in the Release notes? As I’m not seeing it there, thus the reason for posting my original question.

    Thanks for all your help!

    wmklaborn


    wmklaborn
    Participant

    I have to agree with genachka regarding this topic. Selecting/unselecting individual rows adds/removes indexes to the array as well as the selectall which adds all indexes to the array. Only does unselectall displays a different behavior than the manual individual select/unselect functionality. Having to do a loop through to get a proper count in this scenario is counter-intuitive to the functionality that this method should provide for me.

    wmklaborn

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