IBusinessBindable, value is not saved unless lost focus


Author
Message
Chan
Chan
Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have subclassed DevExpress lookupedit and implement IBusinessBindable interface. it works fine, except the excepted value is not saved unless I lost focus the control.



I have attached the source code.



Please advice



Thank you
Replies
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Thanks, Alex. Cool
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Edhy,

I can look into this some, but in truth, you are better off writing a custom control.  Custom controls seems to scare everyone, but if you will just stick it out and write one, you will be in control from that point forward.  You can implement all of your own logic, reduce overhead, and make it match the exact specs of your application.

This is what we have done.  I will be creating some videos and posting them about this at some point in the not too distant future.  Anything that is pivotal to our application is generally a custom control.  This includes our inline searches.  In our charting environment, this is a custom rendered control that is WAY faster than standard 3rd party controls...mainly because we only implement what we need instead of implementing anything that could ever possibly be needed.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,

Trent L. Taylor (11/18/2011)
I can look into this some, but in truth, you are better off writing a custom control.  Custom controls seems to scare everyone, but if you will just stick it out and write one, you will be in control from that point forward.  You can implement all of your own logic, reduce overhead, and make it match the exact specs of your application.

I totally agree with you about custom control and in fact, a month ago I create my first one and it was just awesome, but in reality in this case, the DevExpress.XtraEditors.SearchLookupEdit is a very powerful and easy to implement control that allows my end user to search for any column in the internal lookup grid plus many other features that would be very hard for me to duplicate in a custom control so what made sense to me was to add this control to the Inherited project and try to make it work with the iBusinessBindable as the others do, but unfortunately I am missing something and end up creating properties in all forms using this control to manage the binding manually. 

This is such a nice and powerful control that was very well received by my end users that I want to incorporate it in many other projects, but managing the binding manually is a headache.  I hope you can take a look at it sometime.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search