Hey , hello guys I'd like to suggest something about isSelected property for listgrid
I have php server side code with json responses. One of my column on query is isSelected where I return 0 (false) or 1 (true). As JSON.php service always put simple quotes for the array result, when listgrid loads it datasource all rows are selected, despite the zeros returned. That's because record.setAttribute(isSelected, "anything") is considered as passing a true value.
I tried manage this with a real bool variable on client side, asking if response attribute isSelected is "0" then false, but this does not work either.
Wouldn't be great that when setting isSelected property also understands string values (as 'false', 'true')???
Please correct me if i'm wrong in all this, and is it really working as i'd like, but I could not making work the way I mention.
Thanks!
I have php server side code with json responses. One of my column on query is isSelected where I return 0 (false) or 1 (true). As JSON.php service always put simple quotes for the array result, when listgrid loads it datasource all rows are selected, despite the zeros returned. That's because record.setAttribute(isSelected, "anything") is considered as passing a true value.
I tried manage this with a real bool variable on client side, asking if response attribute isSelected is "0" then false, but this does not work either.
Wouldn't be great that when setting isSelected property also understands string values (as 'false', 'true')???
Please correct me if i'm wrong in all this, and is it really working as i'd like, but I could not making work the way I mention.
Thanks!