New Posts New Posts RSS Feed: DevExpress RadioGroups
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DevExpress RadioGroups

 Post Reply Post Reply
Author
TrevLeyb View Drop Down
Newbie
Newbie
Avatar

Joined: 28-Jun-2007
Location: New Zealand
Posts: 9
Post Options Post Options   Quote TrevLeyb Quote  Post ReplyReply Direct Link To This Post Topic: DevExpress RadioGroups
    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
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
TrevLeyb View Drop Down
Newbie
Newbie
Avatar

Joined: 28-Jun-2007
Location: New Zealand
Posts: 9
Post Options Post Options   Quote TrevLeyb Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down