Print Page | Close Window

DevExpress RadioGroups

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=528
Printed Date: 11-Jun-2026 at 3:03pm


Topic: DevExpress RadioGroups
Posted By: TrevLeyb
Subject: DevExpress RadioGroups
Date Posted: 28-Oct-2007 at 2:25am
Can any one assist in how I would write a ViewDescriptor to handle DevExpress Radio groups please?
 
I have looked at the sample code for mapping a .net Radio group to a DevForce value, and this works fine as this is looking at the "TAG" value of each Radio Button. However, DevExpress do not provide a "TAG" and instead have a "VALUE" property which is of type object.
 
Any ideas?
 
Trevor



Replies:
Posted By: davidklitzke
Date Posted: 28-Oct-2007 at 9:27am
We have not written a databinder for the DevExpress RadioGroup.  Without this, I don't think there is a way to make this work.
 
Here, as I see it, are your choices:
 
(1) Use .NET GroupBox and RadioButtons as is shown in the Tutorial instead of the DevExpress RadioGroup.
 
(2) Request a Feature Enhancement and hope that we will implement the feature some day.
 
(3) Build a Custom DataBinder for the DevExpress RadioGroup.  You would probably need the source for the .NET RadioButton DataBinder, but if you had the source, it should be fairly straightforward to build the DataBinder.  Essentially, you would replace DotNetRadioButton.Tag with DevxRadioGroup.Item.Value.


Posted By: TrevLeyb
Date Posted: 28-Oct-2007 at 8:14pm
DOH!
 
Solved the problem, and I did not need a Data or Binding Converter. The DevExpress Radio Group control, which has child controls for the Radio Buttons, provides a 'EditValue' property, which if you bind to, it will determine which child radio control to select automatically.
 
I'm new to playing with the DevExpress controls and so wasn't aware of this until just now.
 
Cheers



Print Page | Close Window