I'm experiencing an odd behavior from RadRotator.
I'm using the rotator control to build a custom Menu, but i'm having several problems.
The menu its defined in a .ascx file and some of items are being hide in .cs if the current user don't have de necessary permissions to view some of the items.
The problem is that if i set the visibility of the unwanted buttons (RadRotatorItem) to false, after de postback, the content of all the RadRotatorItems disapear.
Other strange behavior in the rotator that seems to cause all this problems, its the fact that de ID assigned to de RadRotatorItem in the .ascx its being overrided by other value. I have notice this in debug mode.
The only way i have found so far to acomplish the desired menu, was by creating in runTime in the OnInit event of the user control, the desired items in menu, but this is not very practical and it lacks in performance.
Had you or someone else already notice this strange behavior?
Can you provide some help or the best workAround?
Best Regards.
Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init If Me.IsPostBack AndAlso Not Session.Item("ViewModule") Is Nothing Then ModuleItemPlaceHolder.Controls.Add(DirectCast(Session.Item("ViewModule"), Control)) Session.Remove("ViewModule") End IfEnd SubPrivate Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Me.IsPostBack Then Dim site As CMS.Site.Item = CMS.Site.Provider.GetSite(Application) If Not site Is Nothing Then InitHeader(site) If Me.ModuleType = [Module].Enumeration.ModuleType.None Then ' Loading module icons ViewIcons(site) Else ' Loading module ViewModule(site) End If End If End IfEnd SubPrivate Sub ViewModule(ByVal site As CMS.Site.Item) Session.Remove("ViewModule") If Me.ModuleType = [Module].Enumeration.ModuleType.None Then Response.Redirect(String.Concat(site.Url, "/Gestion/")) Else Select Case True Case Me.ModuleType = [Module].Enumeration.ModuleType.News OrElse Me.ModuleType = [Module].Enumeration.ModuleType.SlideShows OrElse _ Me.ModuleType = [Module].Enumeration.ModuleType.Testimonials OrElse Me.ModuleType = [Module].Enumeration.ModuleType.User If Me.RecordID Is Nothing OrElse Not IsNumeric(Me.RecordID) Then Dim ctrl As CMS.Controls.ListTable = DirectCast(LoadControl("~/CMSControls/Generic/ListTable.ascx"), CMS.Controls.ListTable) ctrl.Module = Me.ModuleType ctrl.EnableNewRecord = True Dim handled As Boolean = False RaiseEvent InitListTable(ctrl, handled) Session.Add("ViewModule", ctrl) ModuleItemPlaceHolder.Controls.Add(ctrl) Else End If End Select End IfEnd Sub...<telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity" SortExpression="Quantity" UniqueName="colQuantity"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Price" HeaderText="Price" SortExpression="Price" UniqueName="colPrice" DataFormatString="{0:C}"></telerik:GridBoundColumn>
<telerik:GridCalculatedColumn HeaderText="Total Cost" UniqueName="colTotalCost" DataType="System.Double" DataFields="Quantity, Price" Expression="{0}*{1}" /> ...I need a bigger icons (48x48 or more) used in grid Skins Default, Office 2007 to use them in my user manual document. Because of high resolution of document for printing the existing icons (16x16) does not look good scaled. I have downloaded the Grid.PSD files from your site but there still icons in size 16x16 pixels. Can you send me the bigger icons ?
I use the Telerik.Web.UI.dll with Product Version =2009.02.0826.35
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ><AjaxSettings> <telerik:AjaxSetting AjaxControlID="dropdownlist1" EventName="onselectedindexchanged"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID = "RadTreeView1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadTreeView ID="RadTreeView1" runat="server"> <Nodes> <telerik:RadTreeNode runat="server" Text="Root RadTreeNode1"> <Nodes> <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1"> </telerik:RadTreeNode> <telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2"> </telerik:RadTreeNode> </Nodes> </telerik:RadTreeNode> <telerik:RadTreeNode runat="server" Text="Root RadTreeNode2"> </telerik:RadTreeNode> </Nodes> </telerik:RadTreeView><asp:DropDownList ID="drpTaxonomyType" runat="server" CssClass="taxonomy_type" onselectedindexchanged="drpTaxonomyType_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem Selected="True">Choose One</asp:ListItem> <asp:ListItem>Practice Areas</asp:ListItem> <asp:ListItem>Geography</asp:ListItem> <asp:ListItem>Court</asp:ListItem> <asp:ListItem>Industry</asp:ListItem> </asp:DropDownList><telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager>| function openRadWin(id) { |
| radopen("http://www.telerik.com", "radWindowFareRules"); |
| } |
| <telerik:RadWindowManager ID="radWindowManager" runat="server" AutoSize="True" |
| Behavior="None" InitialBehavior="None" |
| KeepInScreenBounds="True"> |
| <Windows> |
| <telerik:RadWindow |
| id="radWindowFareRules" |
| runat="server" |
| showcontentduringload="false" |
| title="Telerik RadWindow" Behavior="Close" AutoSize="true" |
| KeepInScreenBounds="True" Modal="True" Overlay="True" |
| VisibleStatusbar="False"> |
| </telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
| <script type="text/javascript"> |
| function openRadWin(id) { |
| radopen("FareRules.aspx?id=" + id, "radWindowFareRules"); |
| } |
| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| function resetWindow() { |
| window.setTimeout(function() { |
| var oWnd = GetRadWindow(); |
| oWnd.SetWidth(300px); |
| oWnd.SetHeight(200px); |
| }, 400); |
| } |
| </script> |
| <script type="text/javascript"> |
| function resizeWindow() { |
| window.setTimeout(function() { |
| var oWnd = GetRadWindow(); |
| oWnd.SetWidth(document.body.scrollWidth + 20); |
| oWnd.SetHeight(document.body.scrollHeight + 70); |
| }, 400); |
| } |
| function GetRadWindow() |
| { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| </script> |