This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, I currently use Ligtspeed EntityDataBinder to binding some controls on web form, it works fine for normal asp controls, but when I change some controls to devexpress control like ASPxComboBox, it cannot binding properly. I assumed that it causes by setting wrong TargetControlProperty = "SelectedValue" , If I change it to TargetControlProperty = "Text", it binding to textfiled instead of value field of the combobox, The binding code on web page is like follows: lightspeed:EntityDataBindingItem ID="ecbxPhases" runat="Server" BindingMode="TwoWay" BindingSource="CurrentLivening" BindingSourceMember="Phases" TargetControl="cbxPhases" TargetControlProperty="SelectedValue" SelectedValue seems works ok for normal asp dropdownlist but not work for devexpress aspxCombobox, by the way this field is type int Any idea how to set the TargetControlProperty??? Many Thanks! Cheers Winnie |
|
|
I have had a quick look at this but I cant replicate this issue here. Presumably it is specific to the control you are using and the way it expects the value to be assigned as you have speculated. If you are able to send over a small repro application with a basic page using the control and the binding to reproduce the issue I can have a bit more of a look for you.
|
|
|
HI Jeremy: Thank you very much for your reply! My problem is not only for devexpress ASPxCombobox but also for ASPxCheckbox, ASPxDateEdit as well. So I wonder some devexpress controls are not quite supported by lightSpeed EntityDataBinder since it works very well if I change the problem controls to normal asp standard dropdown list, checkbox etc. Currently only ASPxTextbox works ok for two way binding, ASPxCombobox, and ASPxDateEdit are only ok binding one way to the control but not to database, ASPxCheckbox not working for both way. ASPxCombobox may works ok for its itemfield and valuefield are both text but not for my case dropdown list from another table and valuefield is type of integer. Belows are some pieces of my code: ... | |
|
|
Hi Winnie, Thanks for the updates, however I will need you to provide a project which reproduces this issue to have a look at this further.
|
|