Okay, so this core error was due to me passing in an integer to the "set_commandArgument" for a radbutton rather than an actual string (JS can be so picky!). However, I am noticing another quirk of the grid I would like to know about.
As stated, I allow multi row selection, but if I use the selection, popup a window with the first selected item, then cancel the window and change the first selected item to a new one, that newly selected item is now at the bottom of the list rather than as the "new" first one.
Let me try to explain:
-- First time I select #3,4, and 5 rows
-- I decided I don't want #3 but #1 instead, so I switch it
-- Now the order for "grid.get_selectedItems()" is now #4, #5, and then #1
Is there a way to tell it to swap the order around within the selected item list or at least refresh it so it goes through the list again?
I get why it does this - its in the order it is selected; just wondering if there is a way to have it know the order on the page, and take the stuff "higher" in the row list before others? Or will I need to just iterate through the selected items from top down to ensure I am always in the same order?