QRadioButtonList SelectedValue null when repopulated

thread: 3 messages  |  last: a year ago  |  started: saturday, february 11, 2012, 8:41 am pst


#1  |  Mike Cobb United Kingdom
Saturday, February 11, 2012, 8:41 AM PST

I have a QDataGrid which users can click on to show a set of radiobuttonlist options related to the row item. The page loads with the first row item's radiobuttonlist options showing corectly. All works fine.

However if a user selects another item the correct radiobuttonlist options display but when a user then selects an option the radiobuttonlist always has null as the selectedvalue. Any thoughts or pointers much appreciated.
Mike

#2  |  Leonardo (Minas Gerais) Brazil
Tuesday, February 14, 2012, 6:25 AM PST

I did not understand everything, but you used the right QRadioButtonList.

And a very common mistake, is you do not put the controls QRadio inside  QDataGrid.

Have How you show your code?

#3  |  Mike Cobb United Kingdom
Tuesday, February 21, 2012, 1:20 AM PST

Thanks for getting back.

The QRadioButtonList is on a panel separate to the datagrid. When the page first loads it populates the radiobuttonlist using the same action that the DataGrid items use to populate it.

This works fine but when a different item is selected in the DataGrid although the list correctly updates showing a new set of radio items the radiobuttonlist always returns null as the selectedvalue. The values of each radioitem are correctly set.
Mike



Copyright © 2005 - 2013, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.