Hello,
I'm trying to get the selectedItem from the comboBox but since I load it up with info from a string on the server side it wont do anything.
The items are there however on both the server side and client side they seem empty.
Here's the asp control:
And the .cs
I load the ComboBox with info from a database and I have a button which is supposed to paste that info into the RadEditor but I won't do anything, I've tried all the event handlers from the ComboBox without success, I still get nothing, not even an error.
Any ideas on how I can fix this?
Thanks a lot for your help.
Greetings
I'm trying to get the selectedItem from the comboBox but since I load it up with info from a string on the server side it wont do anything.
The items are there however on both the server side and client side they seem empty.
Here's the asp control:
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
Width
=
"590px"
Height
=
"140px"
EmptyMessage
=
"Type something here"
OnItemsRequested
=
"RadCombobox2_ItemsRequested"
EnableLoadOnDemand
=
"true"
>
</
telerik:RadComboBox
>
protected
void
RadCombobox2_ItemsRequested(
object
o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
{
for
(
int
i=0;i<mono.M_content.Count;i++)
{
if
(mono.M_content[i].M_type == 0)
{
RadComboBox1.Items.Add(
new
RadComboBoxItem(mono.M_content[i].C_Description.ToString()));
}
}
}
protected
void
Button1_Click(
object
sender, EventArgs e)
{
label12.Text = RadComboBox1.SelectedValue.ToString();
//RadEditor1.Content = test;
}
I load the ComboBox with info from a database and I have a button which is supposed to paste that info into the RadEditor but I won't do anything, I've tried all the event handlers from the ComboBox without success, I still get nothing, not even an error.
Any ideas on how I can fix this?
Thanks a lot for your help.
Greetings