PDA

View Full Version : BUG? clearValue doesn't clean combobox value with displayField and valueField



vicvolk
7 Mar 2013, 12:54 AM
Hi, guys! Another problem which may be possibly a bug, is that combobox has a method clearValue. And the catch is, if a combo has displayField and valueField properties specified, when we call clearValue method it clears only what is visible, that is displayField, but valueField stays unchanged. So if this combobox is in a form, and we send it to the server script, we can see that it passes value of the combo, even if it was cleared.
I wonder, if this is a bug? Or probably there is another more proper way of using clearValue method.


Thanks in advance.

vicvolk
7 Mar 2013, 1:02 AM
Sorry, this was my mistake. This misbehaviour was caused by what is said in my previous forum thread. Value assigned to the combobox was not actual id. So, there is no a bug. Sorry hundred times.