StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



DevExpress RadioGroup not BindingExpand / Collapse
Author
Message
Posted 07/04/2006 3:00:03 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:40:41 PM
Posts: 328, Visits: 479
I'm sure I'm missing something small here, but the behavior of the Inherited RadioGroup control from DevEx is not binding to my BO like i expected it would.  I have placed several on my form with a grid and several other controls which bind to the BO.  As I select a row in the grid, I want my controls to populate.  This is working perfectly for everything except the radiogroup controls, so it is specific to this type of control.  I have my BindingField and BO set correctly.  If I set the BindingProperty to SelectedIndex, it populates and changes like I want it to.  However, when I edit that record and change the radio group selection it doesn't keep the change.  It lets me select a different radio button, but when I click out of the radio group it reverts to the original value from the BO.  I changed BindingUpdateMode to Never and it took this behavior away, but I want it to update the BO when I make a change.  So what am I missing? 
Post #1720
Posted 07/04/2006 10:13:56 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:14:29 PM
Posts: 4,901, Visits: 4,886
I will take a look at it.  Thanks.
Post #1721
Posted 07/05/2006 9:53:25 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:14:29 PM
Posts: 4,901, Visits: 4,886
Andria,

I created a sample project and the binding appeared to work just fine.  I have attached the sample application I created to test the control so you can see how I am binding to the radio group.  Please let me know if there is something I am missing on how you are attempting to interact with the control.  Thanks.

  Post Attachments 
TestDevEx.zip (41 views, 120.65 KB)

Post #1726
Posted 07/05/2006 10:37:36 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:40:41 PM
Posts: 328, Visits: 479
Yep, yours worked...so I figured it had to be something to do with mine.  After looking over it some more I realized that the fields I was binding the radio groups to were all customized as Enum types.  I cleared the customization and that fixed the problem.  Not sure why this would make a difference, but it works now so I guess it's fine.  Thanks for the help!
Post #1727
Posted 07/05/2006 11:22:40 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:14:29 PM
Posts: 4,901, Visits: 4,886
Andria,

That makes sense.  The radio group is trying to bind to the enum value instead of an integer.  What you may want to do, so you can keep your customization, is create a custom property that returns the integer value which you use to bind to the radio and leave the original property alone with the customization.  This way you can have the best of both worlds.

Post #1728
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:45pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.062. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.