I have a ComboBox within the PanelBar. I can populate the ComboBox with a page load call that is located outside the panelbar, but within the bar, I'm not sure how to get the ComboBox to update. A co-worker suggested adding a RadAjaxManager piece that didn't work either. Here is what I have so far:
This is my code behind piece that works for populating outside of the PanelBar:
I want to understand how the ajax is going to make a call from within the PanelBar for the ComboBox. Thanks!
wen
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" style="z-index:1; position:absolute; top:2500px;left:10px;"> |
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="SingleExpandedItem" Width="740px"> |
<Items> |
<telerik:RadPanelItem Expanded="True" Text="Step 1: Test" runat="server" Selected="true"> |
<Items> |
<telerik:RadPanelItem Value="AccountInformation" runat="server"> |
<ItemTemplate> |
<div style="background-color: #edf9fe"> |
<asp:Label ID="Label12" runat="server" Text="Project Search" style="width: 137px; font-weight: 700;"></asp:Label><br /> |
<asp:Label ID="Label9" runat="server" Text="Project Name:" style="width: 113px; text-align: right;"></asp:Label><br /> |
<telerik:RadComboBox ID="projectNameRadComboBox" runat="server" AutoPostBack="true" ZIndex="99999" Width="250px"></telerik:RadComboBox><br /> |
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" > |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> |
<telerik:AjaxUpdatedControl ControlID="projectNameRadComboBox" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<asp:Label ID="Label2" runat="server" Text="Identifier:"></asp:Label><br /> |
<asp:TextBox ID="identifierTextBox" runat="server" Width="250px"></asp:TextBox><br /> |
<asp:Label ID="Label13" runat="server" Text="Project Group:" style="text-align: right;"></asp:Label><br /> |
<telerik:RadComboBox ID="projectGroupRadComboBox" runat="server" ZIndex="99999" Width="250px"></telerik:RadComboBox><br /> |
<asp:Button ID="projectSearchButton" runat="server" Text="Search" SkinID="smallGreenButton" Width="50px" onclick="projectSearchButton_Click" /><br /> |
<br /> |
<br /> |
<br /> |
</div> |
</ItemTemplate> |
</telerik:RadPanelItem> |
</Items> |
</telerik:RadPanelItem> |
This is my code behind piece that works for populating outside of the PanelBar:
IQueryable allProjectName = Project.GetAllBindings(); |
this.projectNameRadComboBox.DataSource = allProjectName; |
this.projectNameRadComboBox.DataValueField = "ID"; |
this.projectNameRadComboBox.DataTextField = "Name"; |
this.projectNameRadComboBox.DataBind(); |
this.projectNameRadComboBox.Filter = RadComboBoxFilter.Contains; |
I want to understand how the ajax is going to make a call from within the PanelBar for the ComboBox. Thanks!
wen