
Hi Telerik.
I have added a RadComboBox to a sharepoint editorpart. The combobox is rendered correctly but when clicking the arrow image or text nothing happens the list of items is not rolling down. !! i can't even select the first item in the list. its like the combox is disabled!!
the combox is added at runtime and so are the items. !!
Ajax is enabled on the sharepoint site
it looks something like this:
combo.EnableViewState =
true;
combo.ShowDropDownOnTextboxClick =
true;
foreach (SPListItem item in locationList.Items)
{
Telerik.Web.UI.
RadComboBoxItem comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.BackColor = System.Drawing.
Color.Gold;
foreach (SPListItem webpartLocation in webPartLocationItems)
{
if (webpartLocation["LocationsID"].ToString().ToUpper().Equals(item.UniqueId.ToString().ToUpper()))
{
comboItem.BackColor = System.Drawing.
Color.Green;
}
}
comboItem.Value = item.UniqueId.ToString();
comboItem.Text = item[
"Title"].ToString();
combo.Items.Add(comboItem);
}
Controls.Add(
new LiteralControl("Combo:<br/>"));
Controls.Add(combo);
Do you have any idea on whate im doing wrong?
I have split my pages using split bar . I need to expand and collopse in button click event
In my code i have four links in the left pane when clcik the first link the right side first spilter become expand
how to i expand and collopse using button click event
By
Friend
<telerik:RadSplitter id="RadSplitter1" runat="server" height="300" width="700">
<telerik:RadPane id="navigationPane" runat="server" width="150">
<a href="#" >Personnel Info</a> <br />
<a href="#" > Project Info </a><br />
<a href="#" > Joining Info </a><br />
<a href="#" > Emergency Info </a><br />
</telerik:RadPane>
<telerik:RadSplitBar id="RadSplitbar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>
<telerik:RadPane id="contentPane" runat="server" scrolling="none">
<telerik:RadSplitter id="RadSplitter2" runat="server" orientation="Horizontal">
<telerik:RadPane id="topPane" runat="server">
Nested Splitter Top Pane
</telerik:RadPane>
<telerik:RadSplitBar id="RadSplitbar2" runat="server" CollapseMode="Forward">
</telerik:RadSplitBar>
<telerik:RadPane id="bottomPane" runat="server">
Nested Splitter Bottom Content
</telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
</telerik:RadSplitter>
I am trying to get the selected item of the PanelBar but I always get null. Can any one help me? Greatly appreciated.
--------------My Code-------------------------------------------
//Getting PanelBar1 inside custom control called "folderExplorer"
var panelbar1 = <%=((RadPanelBar)folderExplorer.FindControl("PanelBar1")).ClientID %>;
//panelbar1 object is okay but I am not able to get any selected items
var myitem = panelbar1.get_selectedItem();