Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
261 views
Hi,
I have a problem with RadTextbox on ASP.NET,
when i change it's display/visibilty property lets say from "hidden" to "visible" it works, but when my moues hovers over it it disappears and changes back.
I tried the same thing on a normal asp:textbox and it worked just fine.
Can you help me?
Chrome +Javascript.

var txtbEmail = document.getElementById("txtbEmail");
        txtbEmail.style.visibility = "visible";
Vasil
Telerik team
 answered on 03 Sep 2014
1 answer
410 views
I have a grid that works fine otherwise, but when I export it (regardless of Excel, CSV, PDF, etc.) their are two issues:

(1) The first issue is that hypercolumns are shown as blank in the exported file even the programmatic definition is "exportable = false";
(2) All of the columns that contain boundcolumn's only contain the value "System.Data.DataRowView" text instead of the values from the grid (
which display correctly).

I have read other forum entries that discuss this textual value, but they pretty much have to do with data column names not matching the grid column names -- and that is not the case.

I have attached:
(1) a screen capture of the displayed grid with one of the export files superimposed showing the results.  Please remember that is does NOT matter which export file format I select.
(2) the .aspx display file source that I can distribute;
(3) the master file source that I can distribute; and,
(4) the code behind file source code that I can distribute.

Any help anyone can provide would be most appreciated!

Lynn

Source code follows:

the .aspx display file source that I can distribute:
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h3>
        Agents with Expiring Licenses
    </h3>
    <p>
        These Agents have licenses that are expiring soon.
    </p>
<div class="container">
    <div class="row10">
        <div class="one column" >
              
        </div>
        <div class="fourteen columns" >
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" OnNeedDataSource="RadGrid1_NeedDataSource" Width="99.7%"
                AutoGenerateColumns="false" AllowPaging="false" OnItemDataBound="RadGrid1_ItemDataBound"  AllowFilteringByColumn="True">
                <ExportSettings HideStructureColumns="true" Csv-ColumnDelimiter="Comma" IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true" >
                </ExportSettings>
                <MasterTableView Width="100%" CommandItemDisplay="Top" EnableViewState="true">
                    <PagerStyle Mode="Slider"></PagerStyle>
                    <CommandItemTemplate>
                        <table class="rcCommandTable" width="100%">
                            <tr>
                            <td style="float: right; vertical-align:middle;" >
                                <asp:ImageButton runat="server" ID="btnCSVExport" ImageUrl="../Icons/csvdownload.jpg" CommandName="ExportToCSV" Height="24px" Width="24px" ToolTip="Export to CSV" />
                                <asp:ImageButton runat="server" ID="btnExcelExport" ImageUrl="../Icons/excel.png" CommandName="ExportToExcel" Height="24px" Width="24px" ToolTip="Export to Excel" />
                                <asp:ImageButton runat="server" ID="btnWordExport" ImageUrl="../Icons/ms_word_2.png" CommandName="ExportToWord" Height="24px" Width="24px" ToolTip="Export to Word" />
                                <asp:ImageButton runat="server" ID="btnPDFExport" ImageUrl="../Icons/Pdf.png" CommandName="ExportToPDF" Height="24px" Width="24px" ToolTip="Export to PDF" />
                                  
                            </td>
                            </tr>
                        </table>
                    </CommandItemTemplate>
                    <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToPdfButton="true">
                    </CommandItemSettings>
                    <Columns>
 
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
        <div class="one column" >
              
        </div>
    </div>
</div>
<br />
<div class="container">
    <div class="row10">
        <div class="sixteen columns" style="text-align: center;" >
            <telerik:RadButton ID="CloseMe" runat="server" Text="Close Window" CausesValidation="False" ToolTip= "Closes this window." UseSubmitBehavior="False" OnClientClicked="closemenow" />
        </div>
    </div>
</div>
<div class="container">
    <div class="row10">
        <div class="sixteen columns" style="text-align: center;">
            <asp:Label ID="PageErrors" runat="server" Font-Bold="True" ForeColor="#C00000" Width="95%"></asp:Label>
        </div>
    </div>
</div>
</asp:Content>



the master file source that I can distribute:

<body id="page1">
    <telerik:RadFormDecorator Skin="Office2010Silver" Enabled="true" ID="QsfFormDecorator" DecorationZoneID="rfd-demo-zone" runat="server" DecoratedControls="All" EnableRoundedCorners="true" EnableEmbeddedSkins="true" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ></telerik:RadSkinManager>
    <form id="form1" runat="server">
        <div id="rfd-demo-zone" >
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
 
            </telerik:RadScriptManager>
            <div id="content">
                <div class="main">
                    <div class="xcontainer">
                        <div class="row-main-25" style="padding-bottom: 10px; ">
                            <!-- navbar start -->
                                <div class="sixteen columns ">
                                    <div class="menucontainer" >
                                        <section id="loginx">
                                            <asp:LoginView ID="LoginView1" runat="server" ViewStateMode="Disabled">
                                                <AnonymousTemplate>
                                                    <ul class="sessionnav" id="Ul1" runat="server" style="margin-bottom: 10px; padding-top: 4px; padding-bottom: 6px;">
                                                        <li><a id="A4" runat="server" onclick="doNothing();" title="If checked, the site will attempt to display pages by re-using the same window. If you are using a mobile device this will reduce the number of pages opened.">Reuse Windows</a><asp:CheckBox ID="ReuseWindow1" runat="server" onclick="doClick(this)" AutoPostBack="true" ToolTip="If checked, the site will attempt to display pages by re-using the same window. If you are using a mobile device this will reduce the number of pages opened by Broker+." /></li>
                                                        <li><a id="A3" runat="server" href="~/Account/Login.aspx">Log in</a></li>
                                                        <li><a id="A2" runat="server" href="~/Account/Register.aspx" >Register</a></li>
                                                    </ul>
                                                </AnonymousTemplate>
                                                <LoggedInTemplate>
                                                    <ul class="sessionnav" id="Ul2" runat="server" style="margin-bottom: 10px; padding-top: 4px; padding-bottom: 6px;">
                                                        <li><a id="A5" runat="server" onclick="doNothing();" title="If checked, the site will attempt to display pages by re-using the same window. If you are using a mobile device this will reduce the number of pages opened by Broker+.">Reuse Windows</a><asp:CheckBox ID="ReuseWindow2" runat="server" onclick="doClick(this)" AutoPostBack="true" ToolTip="If checked, the site will attempt to display pages by re-using the same window. If you are using a mobile device this will reduce the number of pages opened by Broker+." /></li>
                                                        <li><a id="A1" runat="server" class="username" href="~/Account/MyAccount.aspx" title="Manage your account"><asp:LoginName ID="LoginName1" runat="server" CssClass="username" /></a></li>
                                                        <li><asp:LoginStatus ID="LoginStatus1" runat="server" CssClass="username" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/logout.aspx" /></li>
                                                    </ul>
                                                    <div class="clear"></div>
                                                </LoggedInTemplate>
                                            </asp:LoginView>
                                        </section>
                                    </div>
                                </div>
                            <!-- navbar end -->
                            <!-- logo start -->
                            <div class="row10" style="height: 90px; " >
                                <div class="sixteen columns header-bg" style="height: 90px;">
                                    <div style="float: left; ">      
                                        <img src="" />
                                    </div>
                                    <div class="zippy" style="margin-left: 0px; float: left; height: 90px; text-align: center; overflow: no-display;">
                                        <div class="slogan-line">
                                            <telerik:RadTicker AutoStart="true" runat="server" ID="Radticker1" loop="false" DataSourceID="SqlDataSource1" DataTextField="ScrollerText"  >
                                            </telerik:RadTicker>
                                        </div>
                                    </div>
                                    <div class="findus" style="float: right; height: 90px; text-align: center; background-color: black; ">
                                        <div class="header-icons-and-phone">
                                            <div class="header-icons-links">
                                                <img alt="youtube icon" src="<%=Page.ResolveUrl("~/Icons/youtube.png")%>" height="24" width="24" />
                                                    
                                                <img alt="facebook icon" src="<%=Page.ResolveUrl("~/Icons/facebook.png")%>" height="24" width="24" />
                                                    
                                                <img alt="twitter icon" src="<%=Page.ResolveUrl("~/Icons/twitter.png")%>" height="24" width="24" />
                                            </div>
                                            <div class="header-icons-links2">
                                                <asp:Label Text="Have questions?" ID="Label2" runat="server" Font-Bold="true" Font-Italic="true" Font-Names="Times New Roman" Font-Size="16px" ForeColor="#11bcf0"></asp:Label>
                                                <br />
                                                <asp:Label Text="" ID="Label3" runat="server" Font-Bold="true" Font-Size="16px" ForeColor="white"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                            </div>
                            <!-- logo end -->
 
                            <!-- menu start -->
                            <div class="row10" style="width: 100%; background-color: black; " >
                                <div class="sixteen columns " >
                                    <div class="menubar" >
                                        <THDi:BrokerPlusMenu ID="BrokerPlusMenu1" runat="server" MenuToLoad="Broker+ Office" ProfileName="Office" />
                                    </div>
                                </div>
                            </div>
                            <!-- menu end -->
                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
         
                            </asp:ContentPlaceHolder>
                        </div>



the code behind file source code that I can distribute:

        protected void Page_Init(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                sType = Request["T"];
                string sUserFormRules = Convert.ToString(Session["UserBrokerPlusFormsRules"]);
                string sRule = "";
 
                this.RadGrid1.AllowFilteringByColumn = true;
                GridHyperLinkColumn hypercolumn = null;
                GridBoundColumn boundcolumn = null;
 
                hypercolumn = new GridHyperLinkColumn();
                hypercolumn.HeaderText = "Edit";
                hypercolumn.UniqueName = "Agent";
                hypercolumn.Text = "<img border=\"0\" alt=\"View\" src=\"../Icons/pencil_16.png\" />";
                hypercolumn.DataNavigateUrlFields = new string[] { "Agent" };
                hypercolumn.DataNavigateUrlFormatString = "OfcAgentEdit.aspx?M=Y&T=" + sType + "K=" + "{" + "0" + "}";
                hypercolumn.AllowFiltering = false;
                hypercolumn.HeaderStyle.Width = Unit.Pixel(50);
                hypercolumn.Exportable = false;
                this.RadGrid1.MasterTableView.Columns.Add(hypercolumn);
 
                hypercolumn = new GridHyperLinkColumn();
                hypercolumn.HeaderText = "Email";
                hypercolumn.UniqueName = "SendAgentMail";
                hypercolumn.Text = "<img border=\"0\" alt=\"View\" src=\"../Icons/mailIcon.gif\" />";
                hypercolumn.DataNavigateUrlFields = new string[] { "AgentEmail" };
                hypercolumn.DataNavigateUrlFormatString = "mailto:" + "{" + "0" + "}";
                hypercolumn.HeaderStyle.Width = Unit.Pixel(30);
                hypercolumn.AllowFiltering = false;
                hypercolumn.Exportable = false;
                this.RadGrid1.MasterTableView.Columns.Add(hypercolumn);
 
                boundcolumn = new GridBoundColumn();
                boundcolumn.UniqueName = "AgentID";
                boundcolumn.DataField = "AgentID";
                boundcolumn.HeaderText = "ID";
                boundcolumn.FilterControlWidth = Unit.Pixel(50);
                boundcolumn.HeaderStyle.CssClass = "mediumgridcol";
                boundcolumn.ItemStyle.CssClass = "mediumgridcol";
                boundcolumn.FooterStyle.CssClass = "mediumgridcol";
                boundcolumn.Visible = true;
                boundcolumn.Exportable = true;
                this.RadGrid1.MasterTableView.Columns.Add(boundcolumn);
 
                boundcolumn = new GridBoundColumn();
                boundcolumn.UniqueName = "AgentFullName";
                boundcolumn.DataField = "AgentFullName";
                boundcolumn.HeaderText = "Name";
                boundcolumn.HeaderStyle.Width = Unit.Pixel(240);
                boundcolumn.FilterControlWidth = Unit.Pixel(100);
                boundcolumn.Visible = true;
                this.RadGrid1.MasterTableView.Columns.Add(boundcolumn);
 
                boundcolumn = new GridBoundColumn();
                boundcolumn.UniqueName = "AgentCellular";
                boundcolumn.DataField = "AgentCellular";
                boundcolumn.HeaderText = "Cellular";
                boundcolumn.FilterControlWidth = Unit.Pixel(60);
                boundcolumn.HeaderStyle.CssClass = "smallgridcol";
                boundcolumn.ItemStyle.CssClass = "smallgridcol";
                boundcolumn.FooterStyle.CssClass = "smallgridcol";
                boundcolumn.Visible = true;
                boundcolumn.Visible = true;
                this.RadGrid1.MasterTableView.Columns.Add(boundcolumn);
 
                boundcolumn = new GridBoundColumn();
                boundcolumn.UniqueName = "AgentEmail";
                boundcolumn.DataField = "AgentEmail";
                boundcolumn.HeaderText = "Email";
                boundcolumn.HeaderStyle.CssClass = "smallgridcol";
                boundcolumn.ItemStyle.CssClass = "smallgridcol";
                boundcolumn.FooterStyle.CssClass = "smallgridcol";
                boundcolumn.Visible = true;
                boundcolumn.Visible = true;
                boundcolumn.FilterControlWidth = Unit.Pixel(100);
                this.RadGrid1.MasterTableView.Columns.Add(boundcolumn);
 
                RadGrid1.AllowPaging = Convert.ToBoolean(Session["ShowListsWithPaging"]);
                RadGrid1.PageSize = 20;
            }
            else
            {
                sType = Request["T"];
            }
        }
 
        protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            //  this code is used to make filter columns visible/invisible as the grid grows/shrinks
            if (e.Item is GridFilteringItem)
            {
                GridFilteringItem Filter = (GridFilteringItem)e.Item;
                Filter["AgentID"].CssClass = "mediumgridcol";
                Filter["AgentCellular"].CssClass = "smallgridcol";
                Filter["AgentEmail"].CssClass = "smallgridcol";
            }
        }
 
        protected void CreateNew_Click(object sender, EventArgs e)
        {
            Response.Redirect("OfcAgentEdit.aspx?M=N&K=&T=" + sType);
        }
 
        public DataTable GetDataTable()
        {
            String ConnString = System.Configuration.ConfigurationManager.ConnectionStrings["BrokerPlus"].ConnectionString;
            DataTable dt = new DataTable();
            //string sStatusNeeded = "";
            DateTime dt1 = Convert.ToDateTime("9/1/2014");
            using (SqlConnection sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings["BrokerPlus"].ConnectionString))
            {
                using (SqlCommand cmd = new SqlCommand("[Agents_GetAllByAgent_ExpiringLicenses2]", sqlcon))
                {
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.Add(new SqlParameter("@Account", Convert.ToInt32(Session["UserAccount"])));
                    cmd.Parameters.Add(new SqlParameter("@Agent_Expire", dt1));
                    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                    {
                        da.Fill(dt);
                        return dt;
                    }
                }
            }
        }
 
        protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            RadGrid1.DataSource = GetDataTable();
        }
    }
}


The sql code to the stored procedure being used:

CREATE PROCEDURE [dbo].[Agents_GetAllByAgent_ExpiringLicenses2]
(
    @Account            int,
    @Agent_Expire        date
)
AS
SELECT Agent, AgentEmail, AgentID, AgentFullName, AgentCellular, AgentLicenseExpires, Agent_Account FROM Agents
WHERE AgentLicenseExpires < @Agent_Expire AND Agent_Account = @Account



 the master file source that I can distribute


Viktor Tachev
Telerik team
 answered on 03 Sep 2014
1 answer
128 views
I'm building a tree dynamically server-side and cannot figure out a way to optionally add an image to the right side of the tree node.

In a regular TreeView, I overrode the TreeNode to handle the RenderPostText() method to allow me to optionally insert my own image in the rendered HTML, but that method does not appear to be supported on RadTreeNode().

I know you can use CSS .rtImg to add a permanent image, but I'm not sure how to use that method server-side (if you even can) to have the impage displayed on only some nodes.

Is there another method I am missing?
Thomas Yanez
Top achievements
Rank 1
 answered on 03 Sep 2014
6 answers
221 views
I am trying to connect to a cube using C#.    When I connect it through my aspx page it works without any issues.  But I would like to do it using code. I tried this code - but I am not able to do it.   Please let me know what I should fix..

 This is my aspx page 

 <tlrk:RadPivotGrid AllowFiltering="true" AllowSorting="true" ID="RadPivotGrid1"  Width="100%" 
       RowTableLayout="Tabular" FieldsPopupSettings-AggregateFieldsMinCount="2" AllowPaging="true"
       PageSize="20" runat="server" EnableConfigurationPanel="true" EnableZoneContextMenu="true"
       AggregatesPosition="Rows"  EnableToolTips ="true" Skin="Vista">
    <PagerStyle AlwaysVisible="true" />
    <OlapSettings ProviderType="Adomd"> </OlapSettings>      
    <RowHeaderCellStyle Width="100%" />
    <ConfigurationPanelSettings Position="left" LayoutType="Stacked" DefaultDeferedLayoutUpdate="true"  />
    <ClientSettings EnableFieldsDragDrop="true"><Scrolling AllowVerticalScroll="false" ScrollHeight="1000px" /> </ClientSettings>
   </tlrk:RadPivotGrid>

And in my c# I did this  - 

protected void Page_Load(object sender, System.EventArgs e)
 {
   SetupAdomdConnection();
 }
private void SetupAdomdConnection()
 {
  AdomdDataProvider provider = new AdomdDataProvider();
  AdomdConnectionSettings settings = new AdomdConnectionSettings();
  settings.Cube = "cubeName";
  settings.Database = "DBName";
  settings.ConnectionString = "Provider=MSOLAP;Data Source=XXXXX;Initial Catalog=DBName;";
  provider.ConnectionSettings = settings;
 }




Kostadin
Telerik team
 answered on 03 Sep 2014
3 answers
297 views
Hi,

I have a RadDockLayout control with 2 zones and 4 dock and I want to remember the positions and states of the docks. The Built-In Dock State Persistence works for me (other examples change the size of the docks when loading).

However, I would like to implement a 'Reset Layout' button. How do you clear the built-in dock states?

Thanks in advance,
Matt
Danail Vasilev
Telerik team
 answered on 03 Sep 2014
6 answers
491 views
I want to be able to download any file in the FileExplorer, so when i click on a file it does not need to be opened in a Window.
How can I manage this? I tried to use the handler.ashx but i don't know how i can manage it, and when i click on a folder to switch to that folder it raises an error.

Pleas help, many thanx!
Vessy
Telerik team
 answered on 03 Sep 2014
4 answers
665 views
Hello,

I am working on a project with a RadGrid and a RadTreeView.
Each time the user clicks on a node it fills a RadGrid with data.
The controls work in an Ajax environment.
Pressing on a RadTreeView node influences the RadGrid.
Sometimes it takes time to load data into the RadGrid.

The project requirement is that when user clicks on a node in the RadTreeView during an AJAX request/postback, show a JS alert to the user to wait for the reply and only then make another request.

How to perform this?

Thank,
Daniel.
Daniel
Top achievements
Rank 1
 answered on 03 Sep 2014
1 answer
113 views
I have a HeaderTemplate for a RadPanelItem that contains a LinkButton. In the template constructor I pass an ID value that I need the LinkButton to use. The idea is that the PanelBar grows dynamically based on a query. That works fine using the template.

My issue comes in when I try to click the LinkButton to update the RadGrid. Since the template is a class of its own, it cannot directly reference the RadGrid for passing it a new DateTable based on the ID value, stored within the template.

I've tried passing a callback function to the template constructor using System.Action<string>. I then try to attach the callback as an EventHandler to the LinkButton's Click event. So far this hasn't done anything for me.

Template:
public class TelerikTemplates
{
    public class PanelTemplate : ITemplate
    {
        private readonly Label title;
        private readonly LinkButton totalButton;
 
        public PanelTemplate(string pTitle, int pTotal, string pId, System.Action<string> callback)
        {
            title = new Label();
            title.CssClass = "panelTitle";
            title.Text = pTitle;
 
            totalButton = new LinkButton();
            totalButton.CssClass = "totalButton";
            totalButton.Text = pTotal.ToString();
            totalButton.Click += delegate(object sender, System.EventArgs e) { callback(pId); };
        }
 
        public void InstantiateIn(Control pContainer)
        {
            pContainer.Controls.Add(title);
            pContainer.Controls.Add(totalButton);
        }
    }
}

WebForm Code Behind
protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
    }
 
    using (DataTable data = GetData())
    {
        foreach (DataRow dr in data.Rows)
        {
            RadPanelItem titlePanel = new RadPanelItem();
            titlePanel.HeaderTemplate = new TelerikTemplates.PanelTemplate((string)dr["RuleName"], (int)dr["AccountTotal"], (string)dr["RuleId"], populateGrid);
            RadPanelItem subPanel = new RadPanelItem();
            subPanel.ContentTemplate = new TelerikTemplates.ChartAndTableTemplate(dr);
            titlePanel.Items.Add(subPanel);
            panelBar.Items.Add(titlePanel);
        }
    }
}
 
public void populateGrid(string pId)
{
    grid.DataSource = GetGridData(pId);
    grid.Rebind();
}

WebForm Markup
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="author" content="">
    <meta name="description" content="Demo site for home page.">
    <title>Demo: Home (PanelBar)</title>
    <link href="~/Content/less/css/styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:Label ID="lblTest" runat="server" Text="Test"></asp:Label>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="grid" />
              </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grid">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="grid" />
              </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <section>
        <div>
            <telerik:RadPanelBar Runat="server" Width="100%" ExpandMode="SingleExpandedItem" ID="panelBar">
                <Items>
                </Items>
            </telerik:RadPanelBar>
        </div>
        <div>
            <telerik:RadGrid ID="grid" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" />
        </div>
    </section>
    </form>
</body>
</html>

Thanks for any possible help!
Viktor Tachev
Telerik team
 answered on 03 Sep 2014
1 answer
146 views
I have a RadMenu on my page that I am having problem styling.
The attached snapshot shows how it looks currently. The Quick Links is a menu, The child item keeps wrapping and looks wierd.

I have custom css and I am not using any Telerik base styling. When the width is 100px, the rSlide div is set to 0px width (the container that creates the sliding animation). when the slider is set to 100%, the rSlide is like 14px wide, which is way smaller then the full size of the RadMenu and we are unable to figure this out.

.upper_nav .RadMenu li {
  border: none;
  padding: 0;
  position: relative;
}
.upper_nav .RadMenu .rmHorizontal,
.upper_nav .RadMenu .rmVertical {
  padding: 0;
}
.upper_nav .RadMenu .rmRootLink {
  font-size: 12px;
}
.upper_nav .RadMenu .rmRootLink:link,
.upper_nav .RadMenu .rmRootLink:visited {
  color: #536ba2;
}
.upper_nav .RadMenu .rmRootLink:hover,
.upper_nav .RadMenu .rmRootLink:active,
.upper_nav .RadMenu .rmRootLink:focus {
  color: #3c3d5e;
  background: none;
  border: none;
}
.upper_nav .RadMenu .rmSlide {
  position: absolute;
  display: none;
}
.upper_nav .RadMenu .rmVertical .rmItem {
  display: block;
}
.upper_nav .RadMenu .rmVertical .rmItem span {
  width: 100% !important;
}
Magdalena
Telerik team
 answered on 03 Sep 2014
2 answers
286 views
Hi everyone, 

When I deployment asp.net 4.0 web site on IIS 6.0 server I have error:

[TypeInitializationException: The type initializer for 'Telerik.Web.RenderModesCache' threw an exception.]
Telerik.Web.RenderModesCache.GetViewDescriptors() +0
Telerik.Web.UI.RadDataBoundControl.GetViewScriptReference() +81
Telerik.Web.UI.RadDataBoundControl.GetScriptReferences() +80
Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IScriptControl.GetScriptReferences() +13
System.Web.UI.ScriptControlManager.AddScriptReferenceForScriptControl(List`1 scriptReferences, IScriptControl scriptControl) +41
System.Web.UI.ScriptControlManager.AddScriptReferencesForScriptControls(List`1 scriptReferences) +92
System.Web.UI.ScriptManager.RegisterScripts() +129
System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8897866
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716

web.config has next configuration:

    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="Telerik.Web.UI"/>
      </assemblies>
    </compilation>

     <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>

With IIS Express 7.0 the web site working correctly.

What may be cause of the problem?
Viktor
Top achievements
Rank 1
 answered on 03 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?