Hi,
I've run into an issue when using RadComboBox on SharePoint 2013 application page. When I set the SelectedIndex property in code the combobox renders an empty item (see screenshots) but when the dropdown is opened I can see the item is actually selected.
The SharePoint site wasn't customized and there are not JavaScript errors on the page. Also, this issue is not browser specific, I've tested it in different browsers.
Telerik version: 2014.3.1024.45
HTML Markup:
C# Code:
I've run into an issue when using RadComboBox on SharePoint 2013 application page. When I set the SelectedIndex property in code the combobox renders an empty item (see screenshots) but when the dropdown is opened I can see the item is actually selected.
The SharePoint site wasn't customized and there are not JavaScript errors on the page. Also, this issue is not browser specific, I've tested it in different browsers.
Telerik version: 2014.3.1024.45
HTML Markup:
<
telerik:RadComboBox
runat
=
"server"
ID
=
"radCombo"
>
<
DefaultItem
Text
=
"Select..."
Value
=
"-1"
></
DefaultItem
>
</
telerik:RadComboBox
>
C# Code:
public
partial
class
TestPage : LayoutsPageBase
{
protected
override
void
OnLoad(EventArgs e)
{
try
{
base
.OnLoad(e);
if
(!Page.IsPostBack)
{
radCombo.Items.Add(
new
RadComboBoxItem(
"Item 1"
,
"Item 1"
));
radCombo.Items.Add(
new
RadComboBoxItem(
"Item 2"
,
"Item 2"
));
radCombo.SelectedIndex = 1;
}
}
catch
(Exception exc)
{
}
}
}