Hi,
I thought AppendDataBoundItems does add items from databinding to the existing "markup items".
So a grid defined like this:
offers the "auswählen..." item plus the items from databinding.
This seems to be incorrect - instead AppendDataBoundItems adds new databound items to the existing ones - no matter where the come from.
In other words - if I "autobind" (datasource filtered via Control Parameter) every binding adds it's items to the one in the combobox.
Example: I have a radiobutton array - when I select something there it works as parameter for the datasource of the combobox.
At startup the combo has only the value "select something...". Than I check one of the radiobuttons - and the datasource give "One, Two, Three" - wich results in the following Combobox items:
"select something..."
One
Two
Three
--So far it works as I expected.
Now I check a different radiobutton - my datasource gives "Four, Five" for this selection:
The combo now has:
"select something..."
One
Two
Three
Four
Five
Instead of
"select something..."
Four
Five
--As I would expect.
Is this like it should be?
If so I have to rethink the use of AppenDataboundItems - and go back to datasources with a "dummy record".
Regards
Manfred
I thought AppendDataBoundItems does add items from databinding to the existing "markup items".
So a grid defined like this:
<telerik:RadComboBox Width="200px" ID="cbJugendlicherZiel" runat="server" DataSourceID="ldsJugendlicheZiel" SelecetedValue="-1" AppendDataBoundItems="true" DataTextField="Kennung" DataValueField="JugendlicherID" AutoPostBack="true"> |
<Items> |
<telerik:RadComboBoxItem Text="auswählen..." Value="-1" /> |
</Items> |
</telerik:RadComboBox> |
This seems to be incorrect - instead AppendDataBoundItems adds new databound items to the existing ones - no matter where the come from.
In other words - if I "autobind" (datasource filtered via Control Parameter) every binding adds it's items to the one in the combobox.
Example: I have a radiobutton array - when I select something there it works as parameter for the datasource of the combobox.
At startup the combo has only the value "select something...". Than I check one of the radiobuttons - and the datasource give "One, Two, Three" - wich results in the following Combobox items:
"select something..."
One
Two
Three
--So far it works as I expected.
Now I check a different radiobutton - my datasource gives "Four, Five" for this selection:
The combo now has:
"select something..."
One
Two
Three
Four
Five
Instead of
"select something..."
Four
Five
--As I would expect.
Is this like it should be?
If so I have to rethink the use of AppenDataboundItems - and go back to datasources with a "dummy record".
Regards
Manfred