flex checkbox value not selected from database

Posted by Vish on Stack Overflow See other posts from Stack Overflow or by Vish
Published on 2010-05-21T10:17:46Z Indexed on 2010/05/21 10:20 UTC
Read the original article Hit count: 289

Filed under:
|
|
|
|

Hi, I have a small flex datagrid. The dataProvider is an xmlList. I have two columns, userList and user permissions. The user permissions column as checkboxes. The values for the checkbox are stored as 0 and 1 in mySQL. While returning it from PHP, I am converting them to true or false. Its returning the values correctly to the frontend.

But inside the itemrenderer, the checkbox is not being set to true or false. Either everything is true or everything is false.

Here is my code. http://www.freeimagehosting.net/uploads/4ba76933d3.gif

How can I correctly set the value of the checkboxes from the DB values?

Please help.

© Stack Overflow or respective owner

Related posts about flex

Related posts about checkbox