jQWidgets Forums

Forum Replies Created

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

  • guidov
    Participant

    Hi Peter,

    Thanks for your the update.

    Sincerely,
    Guido Visser


    guidov
    Participant

    Hi Peter,

    Yes indeed I can use that ‘selectedrowindexes’ approach, but if you have selected over 900 thousand records, it is an pretty big loop 😉
    Anyways, I think you answered my question by the fact that there is no other way.

    However is it possible in the future to get a functionality like; ‘getselectedrowdata’, which will return an array with all selected rows as an object? (like the ‘getrows’ method, but then with the selected row data)

    Thanks for you time and help, I really appreciate it!

    Sincerely,
    Guido Visser


    guidov
    Participant

    Hi Peter,

    The problem is that I have a grid filled with a lot of records (1 million). Lets say I select 999.990 records; I’d have to loop through an incredible amount of rows to get the right row ID (Because my application moves rows from one grid to another) then loop through the records again to build an object with all the stored data. (Using ‘getrowdata’)

    That’s why I’m wondering if it is possible to get the data directly, so I don’t have to loop through all of those records.

    I hope this explains my situation a little better.

    Sincerely,
    Guido Visser


    guidov
    Participant

    Hello Peter,

    So I take it, this is not possible without looping? That would be a nice feature in you Grid.

    Sincerely,
    Guido Visser


    guidov
    Participant

    Hi Peter,

    I was aware of the “getrowdata”. But I want the data of all selected rows (multiple selected rows) without having to loop through all loaded records.

    Just like “getrows”, but then with the selected rows only. Is that possible?

    I hope to hear from you.

    Sincerely,
    Guido Visser


    guidov
    Participant

    I solved the error.

    After looking over my code really closely, I saw that I used the ‘data’ variable in your example as a global variable, instead of local. This caused the weird behavior.

    Sincerely,
    Guido


    guidov
    Participant

    Hi Peter,

    Thanks for replying!

    It is logical that it needs to load new records when there are none. But the thing is that my grid has loaded items, as you can see in the video. It reloads the grid on the scroll action. All very logical, but why is it that only the first 19 records act weird and not all of them. What causes those records to act strange?

    Is this a known behavior occurrence?

    Thanks in advance!

    Sincerely,
    Guido

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