Having these hidden controls at the very beginning of the page (before any other Radinput Controls), has ensured that the controls will render in all browsers I'm testing in (IE6, 7, 8, FF 2, 3, Safari4, Opera 9).
It would certainly be nice if the RadStyleManager (or whatever the magic control behind the scenes is that controls the ordering / inclusion of the controls) would put them in proper order in future versions.
| <%@ Control Language="C#" CodeFile="Menu.ascx.cs" Inherits="UserControls_Menu" %> | |
| <%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="telerik" %> | |
| <script runat="server"> | |
| protected void rdt1_TabDataBound(Object sender, EventArgs e) | |
| { | |
| Tab Tab1 = rdt1.FindTabByValue("Home"); | |
| if (Tab1 != null) | |
| { | |
| Tab1.DataBind(); | |
| } | |
| //Tab Tab1 = rdt1.FindTabByValue("NDIRecords"); | |
| //if (Tab1 != null) | |
| //{ | |
| // Tab1.DataBind(); | |
| //} | |
| } | |
| //Pre-Select a RadTabStrip Tab | |
| public void PreSelectTab(String TabStripText) | |
| { | |
| Tab Tab1 = rdt1.FindTabByValue(TabStripText); | |
| if (Tab1 != null) Tab1.Selected = true; | |
| if (Tab1 == null) | |
| { | |
| Tab Tab2 = rdt1.FindTabByValue("Home"); | |
| if (Tab2 != null) Tab2.Selected = true; | |
| } | |
| } | |
| //Clear the selection of all RadTabStrip Items | |
| public void ClearSelection() | |
| { | |
| foreach (Tab tab in rdt1.Tabs) | |
| { | |
| tab.Selected = false; | |
| } | |
| } | |
| </script> | |
| <table width="100%" border="0" cellpadding="0" cellspacing="0"> | |
| <tr> | |
| <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" style="width: 67px"> | |
| <img src="../images/Misc/NDI Logo.JPG" alt="Welcome to the CDC NDI Intranet Website." style="cursor:hand; height:53px; width:84px;" | |
| visible="false" border="0" onclick="javascript:location.href='../Default.aspx'" /></td> | |
| <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" > | |
| <telerik:RadTabStrip ID="rdt1" runat="server" SelectedIndex="0" Skin="NDI" CausesValidation="false" AutoPostBack="true"> | |
| <Tabs> | |
| <telerik:Tab text="Home" id="Home" Value="Home" tooltip="Home Page" Navigateurl="~/Default.aspx"> | |
| </telerik:Tab > | |
| <telerik:Tab text="NDIRecords" value="NDIRecords" id="NDIrecords" tooltip="NDIRecords" | |
| NavigateUrl="~/Modules/NDIRecords.aspx"> | |
| </telerik:Tab> | |
| <telerik:Tab text="ManualSearch" value="ManualSearch" id="Manualserachrec" tooltip="ManualSearch Records" | |
| NavigateUrl="~/Modules/ManualSearchRec.aspx"> | |
| </telerik:Tab> | |
| </Tabs> | |
| </telerik:RadTabStrip> | |
| </td> | |
| </tr> | |
| </table> |
Greetings all!
I have a strange issue in my test app. The prerequisites are as follows:
1. I have an aspx page featuring a standard asp.net ajax scriptmanager control as well as my own user control.
2. The user control of mine has only two things in it: RadAjaxManagerProxy plus RadGrid. The manager proxy is configured to update the grid on any postbacks from the grid (e.g. paging or sorting).
The issue is that regular postbacks still occur when say sorting the grid. Placing the grid into an RadAjaxPanel (and removing the manager of course) fixes the issue. But why the hell doesn't it work with the manager proxy? I made sure the control IDs are correct in the manager settings. I also made sure Ajax postbacls aren't disabled in the manager.
Best regards,
Andreii