| divCoursesVisible.Visible = ! divCoursesVisible.Visible; |
| coursesVerticalScrollBar.Visible = !coursesVerticalScrollBar.Visible; |
| <ucSB:VerticalScrollBar id="coursesVerticalScrollBar" runat="server"></ucSB:VerticalScrollBar> |
| <div id="divCoursesRpt" runat="server"> |
| <div id="divCoursesVisible" runat="server"> |
| <asp:Repeater id="rptCoursesList" Runat="server" EnableViewState="true"> |
| <ItemTemplate> |
| <tr class='<%# ListRowCSSClass(rptCoursesList.Items.Count) %>'> |
| <td colspan="2"> </td> |
| <td id="cellCoursesName" runat="server"> |
| <asp:Label ID="lblCourseName" Runat="server"></asp:Label> |
| </td> |
| <asp:Repeater Runat="server" ID="rptUserCourse" EnableViewState="False"> |
| <ItemTemplate> |
| <td align="center"> |
| <ucSelector:UserCourse runat="server" id="userCourseSelector"></ucSelector:UserCourse> |
| </td> |
| </ItemTemplate> |
| </asp:Repeater> |
| </tr> |
| </ItemTemplate> |
| <FooterTemplate> |
| <tr class='<%# ListRowCSSClass(1) %>' > |
| <td class="NoRecords" id="noRecordCell" runat="server" valign="bottom"> |
| No course found!<br> |
| <br> |
| </td> |
| </tr> |
| </FooterTemplate> |
| </asp:Repeater> |
| </div> |
| </div> |
| <radA:RadAjaxManager id="radAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <rada:AjaxSetting AjaxControlID="coursesVerticalScrollBar"> |
| <UpdatedControls> |
| <rada:AjaxUpdatedControl ControlID="coursesVerticalScrollBar"></rada:AjaxUpdatedControl> |
| <rada:AjaxUpdatedControl ControlID="divCoursesRpt"></rada:AjaxUpdatedControl> |
| </UpdatedControls> |
| </rada:AjaxSetting> |
| </AjaxSettings> |
| </radA:RadAjaxManager> |
| <radA:AjaxLoadingPanel id="loadingPanelCourseList" runat="server" BackColor="#E0E0E0" MinDisplayTime="2000" |
| Transparency="10"> |
| <IMG id="imgLoading" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN-TOP: 40px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" |
| alt="Loading..." src="../../../../Resources/Images/loading.gif" runat="server"> |
| </radA:AjaxLoadingPanel> |
Hi there,
I'm trying to migrate to RadControls for ASP.NET Ajax but I'm finding a few
difficulties. In my existing application I am using AjaxManager (with RadControls
for ASP.NET, not the
version) to ‘ajaxify’ some ASP Panel controls (ActionContainer and
ActionContainer1 in this example) by doing something like this:
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ActionContainer, ActionContainer, null);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ActionContainer1, ActionContainer1, null);
Once again, the effect is similar to what I would get with two RadAjaxPanels but with a very important difference: their requests can get queued and therefore won’t cancel each other.
<asp:Panel runat="server" ID="ActionContainer" BorderWidth="5"> <asp:ListBox ID="ListBox" runat="server" AutoPostBack="true">
</asp:ListBox>
<asp:Button ID="DoIt" runat="server" OnClick="DoIt_Click" />
PostBack: <asp:Label ID="InnerPostBackTime" runat="server"></asp:Label>
</asp:Panel>
<asp:Panel runat="server" ID="ActionContainer1" BorderWidth="5">
<asp:ListBox ID="ListBox1" runat="server" AutoPostBack="true">
</asp:ListBox>
<asp:Button ID="DoIt1" runat="server" OnClick="DoIt1_Click" />
PostBack: <asp:Label ID="InnerPostBackTime1" runat="server"></asp:Label>
</asp:Panel>
This works fine with RadControls for ASP.NET Q1 2008 but doesn’t work with RadControls for ASP.NET Ajax Q1 2008. In the later case the labels for both panels get updated when either button is clicked.
I know that one solution for this could be adding settings for every control inside the panel - the ones that generate postbacks - but that’s something I’m trying to avoid.
The question is: is there any way to get the desired behaviour out of the Ajax RadControls?
Thanks,
Paulo

<telerik:
RadComboBox ID="MyCombo" runat="server" EnableLoadOnDemand="true" OnItemsRequested="MyCombo_ItemsRequested" Width="160" SelectedValue='<%# Bind("myvalue") %>'></telerik:RadComboBox>
Everything works great until I do some client side validation. I'm not doing anything fancy, I stripped everything down so there is just one required field validator, and a validation summary control. Once the validation messagebox comes up, the ItemsRequested event no longer fires. Any ideas?