﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Fixed List Using Radio Buttons</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:17:18 GMT</lastBuildDate><ttl>20</ttl><item><title>Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6087.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I am trying to add a field to a maintenance form that is a VARCHAR(8).&amp;nbsp; The valid values are hard coded and can be one of the following (i.e. if ACCD specified ACCD is stored in the table column as the value):&lt;/P&gt;&lt;P&gt;FULL - Full Incident Entry&lt;BR&gt;ACCD - Accident Entry&lt;BR&gt;CIT - Traffic Citation Entry&lt;BR&gt;PARK - Parking Ticket Entry&lt;BR&gt;FI - Field Interview or Other Entry&lt;/P&gt;&lt;P&gt;I have set up a RadioButtonGroup and added the options there.&amp;nbsp; I have ensured the BindingField is correct (in this case PathOf), and set the BindingProperty to TAG.&amp;nbsp; For each RadioButton option, I have entered a Tag corresponding to the code (FULL, ACCD, CIT, PARK, FI).&amp;nbsp; When I run the form it does not show any value checked even though the value exists.&amp;nbsp; I have added a TextField and bound it to the same BO.Field and it works.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;0&amp;nbsp; FULL - Full Incident Entry&lt;BR&gt;0&amp;nbsp; ACCD - Accident Entry&lt;BR&gt;0&amp;nbsp; CIT - Traffic Citation Entry&lt;BR&gt;0&amp;nbsp; PARK - Parking Ticket Entry&lt;BR&gt;0&amp;nbsp; FI - Field Interview or Other Entry&lt;/P&gt;&lt;P&gt;(The zeros represent the radio button control)&lt;/P&gt;&lt;P&gt;I have also tried a combo box with the Items Collection set.&amp;nbsp; This did not work either.&amp;nbsp; Also tried the AutoCompleteCollection settings, although the items showed up, they did not prime with the current value.&lt;/P&gt;&lt;P&gt;2ND problem:&lt;/P&gt;&lt;P&gt;I have an UltraGrid which works great on the Maintenance form.&amp;nbsp; The only thing I cannot figure out how to do is to keep the BO sort order and the UltraGrid sort order in sync.&amp;nbsp; For example, I click on the Description column of the grid, I want to sort the BO collection in the same order so when I use the Navigation buttons, everything stays in sync with the grid as far as the "sort order" is concerned.&lt;/P&gt;&lt;P&gt;Any ideas would be appreciated!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Mon, 29 Jan 2007 15:04:19 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6402.aspx</link><description>Any thoughts on the Radio button issue?&amp;nbsp; We use RadioButtons in our current legacy applications in quite a few places and we would rather not replace them with AutoComplete textfields or combo drop-lists.&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Mon, 29 Jan 2007 15:04:19 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6099.aspx</link><description>Thanks.&amp;nbsp; Got the combo working fine.&amp;nbsp; Now I just have a problem with the RadioButtonGroup/Option controls.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Settings:&lt;/P&gt;&lt;P&gt;RadioButtonGroup&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BusinessObject - IncdTypeBO&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BindingField - PathOf&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BindingProperty - (Tried Text and Tag -&amp;gt;yes I added Tags to each option)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderStyle - FixedSingle&lt;/P&gt;&lt;P&gt;RadioButton1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyValue - Auto set to 1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text - FULL&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag - FULL (tried with and without Tag property set)&lt;/P&gt;&lt;P&gt;RadioButton2&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyValue - Auto set to&amp;nbsp;2&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text -&amp;nbsp;ACCD&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag -&amp;nbsp;ACCD (tried with and without Tag property set)&lt;/P&gt;&lt;P&gt;RadioButton3&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyValue - Auto set to&amp;nbsp;3&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text -&amp;nbsp;CIT&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag -&amp;nbsp;CIT (tried with and without Tag property set)&lt;/P&gt;&lt;P&gt;RadioButton4&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyValue - Auto set to&amp;nbsp;4&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text -&amp;nbsp;PARK&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag -&amp;nbsp;PARK (tried with and without Tag property set)&lt;/P&gt;&lt;P&gt;RadioButton5&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyValue - Auto set to&amp;nbsp;5&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text -&amp;nbsp;FI&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag -&amp;nbsp;FI (tried with and without Tag property set)&lt;/P&gt;&lt;P&gt;Ideas?</description><pubDate>Tue, 23 Jan 2007 11:29:50 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6097.aspx</link><description>How are you populating a combo?&amp;nbsp; See the attached sample.</description><pubDate>Tue, 23 Jan 2007 11:22:50 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6096.aspx</link><description>Thank you for the tip on the combo - I had to set the BindingProperty to Text and it worked.&amp;nbsp; However, I would still like to figure out the RadioButton issue since we have so many in the legacy system we are converting!</description><pubDate>Tue, 23 Jan 2007 11:17:20 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6095.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;I tried to set the BindingProperty to Text, changed the RadioButton options to just the field values (FULL, ACCD, etc.) and still no change.&amp;nbsp; It does not prime any of the values from the table in this control. (IE:&amp;nbsp; if table has a PathOf = ACCD, I would like to have the appropriate option selected)&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Tue, 23 Jan 2007 11:07:31 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Fixed List Using Radio Buttons</title><link>http://forum.strataframe.net/FindPost6092.aspx</link><description>[quote]I have also tried a combo box with the Items Collection set.&amp;nbsp; This did not work either.&amp;nbsp; Also tried the AutoCompleteCollection settings, although the items showed up, they did not prime with the current value.[/quote]&lt;/P&gt;&lt;P&gt;I am not sure why your radio group did not work and would have to set this scenario up.&amp;nbsp; But this is something we do ALL of the time with combos.&amp;nbsp; The most common mistake is not changing the BindingProperty from SelectedValue to Text.&lt;/P&gt;&lt;P&gt;[quote] The only thing I cannot figure out how to do is to keep the BO sort order and the UltraGrid sort order in sync[/quote]&lt;/P&gt;&lt;P&gt;The UltraGrid performs an internal sort of the items but does not actually sort the BO itslef.&amp;nbsp; If you want them to stay in sync, you will have to set the Sort property of the BO yourself in the ColumnClick of the grid.</description><pubDate>Tue, 23 Jan 2007 10:56:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>