RCDC and Radio Buttons...
This should be simple enough. I created an attribute that's a UCOSimpleRadioButton. All I want to do is switch the default value from true to false. I've tried switching around the true and false in:<my:Property my:Name="TrueText" my:Value="Yes" /><my:Property my:Name="FalseText" my:Value="No" /> That didn't work though.Opper ...don't stop.
October 19th, 2011 10:43am

<my:Control my:Name="testSRB" my:TypeName="UocSimpleRadioButton" my:Caption="{Binding Source=schema, Path=yourBooleanAttribute.DisplayName}" my:Description="{Binding Source=schema, Path=ABooleanAttribute.Description}" my:RightsLevel="{Binding Source=rights, Path=ABooleanAttribute}"> <my:Properties> <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=yourBooleanAttribute .Required}" /> <my:Property my:Name="FalseText" my:Value="No"/> <my:Property my:Name="TrueText" my:Value="Yes"/> <my:Property my:Name="SelectedItem" my:Value="{Binding Source=object, Path=yourBooleanAttribute, Mode=TwoWay}" /> </my:Properties> </my:Control> then make sure to restart IIS to refresh the cacheIt's never too late in life ... to start living
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2011 12:19pm

Looking at the RCDC guide, the default value of the object should be false if you're using a UoCSimpleRadio button. <snip> SelectedItem: This is an optional, Boolean-type property. This value indicates that the option button is selected. This can bind with Boolean-type data from a data source. The default value is set to false. </snip> Trying changing the "my:Value" settings to "true" and "false" respectively instead of yes/no. Thanks Bhttp://identityminded.wordpress.com
October 19th, 2011 6:37pm

SelectedItem refer to the binding boolean attribute that you read/write, so if you are planning to save that value to your boolean attribute its required the UOCSimpleRadioButton internally have two options (True and False), you can only modify the Text showing for these options not the internal values. for example you can have TrueText as "Required" and the FalseText "Not Required" ...It's never too late in life ... to start living
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2011 3:44am

It turns out that using UocRadioButtonList will use No as the default. I couldn't get UocSimpleRadioButton to display in the correct order.Opper ...don't stop.
October 31st, 2011 9:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics