In VS I am using Telerik.Webcontrols Assembly="Radmenu.Net2" which allows me to do this:
in the ascx file:
<%@Register TagPrefix="radm" Namespace="Telerik.WebControls" Assembly="RadMenu.Net2" %>
<radm:radmenu runat="server" id="mymenu" skinspath="~/app_themes/Normal" skin="Radmenu" width="100%" OnItemDataBound="mymenu_ItemDataBound" RadControlsDir="~/Public/RadControls/" />
Which I thought RadControlsDir leads me to Radmenu.js (in folder Public/RadControls/Menu/Scripts/4_4_6/RadMenu.js) but even when I rename this js file, it is still showing the menu. Am I not looking in the right place? In this folder "RadControls" there are these subfolders:
Ajax
Editor
Grid
Menu
Rotator
No matter what I remove it doesn't budge. I am thinking the referenced directory path is somewhere else. Can you tell me where????
thanks
-May
On the RadAsyncUpload control, I want the text of the select button to say"Browse" or whatever we translate that into for the user.
Not sure the best way to do this, onload, onrender, client side, etc...
Hi there,
The footer of a Radgrid with Frozen Columns doesnot line up in Firefox. When I move the scrollbar from to the right side, the footer mismatches the column in Firefox. It works fine in IE and Chrome. Please see the following for my demo code. Please help.
Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
id
=
"Head1"
runat
=
"server"
>
<
title
></
title
>
<
telerik:RadStyleSheetManager
ID
=
"RadStyleSheetManager1"
runat
=
"server"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
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
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"ReservationsGrid"
MasterTableView-ShowHeadersWhenNoRecords
=
"true"
OnNeedDataSource
=
"ReservationsGrid_NeedDataSource"
Width
=
"520"
ShowFooter
=
"True"
AutoGenerateColumns
=
"false"
AllowPaging
=
"true"
>
<
PagerStyle
PageSizes
=
"10"
/>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
SaveScrollPosition
=
"true"
FrozenColumnsCount
=
"2"
></
Scrolling
>
</
ClientSettings
>
<
MasterTableView
>
<
CommandItemSettings
ShowExportToPdfButton
=
"true"
ShowExportToExcelButton
=
"true"
ShowExportToCsvButton
=
"false"
ShowExportToWordButton
=
"false"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Column1"
HeaderText
=
"Column1"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column2"
HeaderText
=
"Column2"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column3"
HeaderText
=
"Column3"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column4"
HeaderText
=
"Column4"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column5"
HeaderText
=
"Column5"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column6"
HeaderText
=
"Column6"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
> </
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column7"
HeaderText
=
"Column7"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column8"
HeaderText
=
"Column8"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column9"
HeaderText
=
"Column9"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column10"
HeaderText
=
"Column10"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column11"
HeaderText
=
"Column11"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column12"
HeaderText
=
"Column12"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column13"
HeaderText
=
"Column13"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column14"
HeaderText
=
"Column14"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column15"
HeaderText
=
"Column15"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column16"
HeaderText
=
"Column16"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
> </
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column17"
HeaderText
=
"Column17"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column18"
HeaderText
=
"Column18"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Column19"
HeaderText
=
"Column19"
Aggregate
=
"Sum"
FooterText
=
" "
HeaderStyle-Width
=
"30"
></
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
form
>
</
body
>
</
html
>
Default.aspx.cs
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Web.Services;
public partial class Default : System.Web.UI.Page
{
protected void ReservationsGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
DataTable table = new DataTable();
table.Columns.Add("Column1", typeof(int));
table.Columns.Add("Column2", typeof(int));
table.Columns.Add("Column3", typeof(int));
table.Columns.Add("Column4", typeof(int));
table.Columns.Add("Column5", typeof(int));
table.Columns.Add("Column6", typeof(int));
table.Columns.Add("Column7", typeof(int));
table.Columns.Add("Column8", typeof(int));
table.Columns.Add("Column9", typeof(int));
table.Columns.Add("Column10", typeof(int));
table.Columns.Add("Column11", typeof(int));
table.Columns.Add("Column12", typeof(int));
table.Columns.Add("Column13", typeof(int));
table.Columns.Add("Column14", typeof(int));
table.Columns.Add("Column15", typeof(int));
table.Columns.Add("Column16", typeof(int));
table.Columns.Add("Column17", typeof(int));
table.Columns.Add("Column18", typeof(int));
table.Columns.Add("Column19", typeof(int));
for (int i = 0; i < 15; i++)
{
table.Rows.Add(i, i+2, i+5, i+6, i+7, i+3, i+2, i+6, i+7, i+1, i+2, i+5, i+7, i+2, i+3, i+4, i+5, i+6, i+7);
}
ReservationsGrid.DataSource = table;
}
}
I am having difficulty with the Persistence Framework. My application has a master page and the RadGrid is in a content page. When the RadGrid is at the root of the page (i.e. just under asp:Content), I can save/load the grid settings with no issue whatsoever. But that's not where I want my RadGrid. I want it in a RadPanelBar. And when I have it there, the Persistence Framework says it cannot find the control.
Here is some simplified code. This first part works:
<telerik:RadPersistenceManagerProxy
ID="m_PersistenceManagerProxy"
UniqueKey="ClaimswebFinancialsPayables"
runat="server">
<PersistenceSettings>
<telerik:PersistenceSetting ControlID="m_rgPayables" />
</PersistenceSettings>
</telerik:RadPersistenceManagerProxy>
<telerik:RadGrid
ID="m_rgPayables"
runat="server"
... et cetera. But when I put the RadGrid in a RadPanelBar, the Persistence Manager says that it cannot find the control. Specifically if I put the RadGrid inside the ContentTemplate of a RadPanelItem.
Any ideas? I feel like I'm so close.
Hi,
I recently upgraded my application from the 2016 controls to the 2017 R2 controls and now I'm having issues with the Combobox and how it displays on the screen.
My combobox is within an Editform / form template of a RadGrid. It is defined this way:
<code>
<telerik:RadComboBox ID="rddRouteInner" runat="server" DataTextField="route" DataValueField="route"
DropDownHeight="200px" DropDownWidth="350px" AllowCustomText="true" Font-Size="12px" >
</telerik:RadComboBox>
</code
Very simple - no CSS applied or anything else. I added the Font-Size="12 px" because the font in the input was different from the drop down since the upgrade - which seems kind of crazy - but not a big deal.
Attached is what the output looks like. The Input Box is taller than the surrounding drop down box - and I get multiple drop down boxes (at least started). I have no idea how to troubleshoot this - when I just put a combobox on a page by itself - it works correctly.
Help?
Thanks!!!
protected void RadGrid1_EditCommand(object source, GridCommandEventArgs e) |
{ |
//Is it a GridDataItem |
if (e.Item is GridDataItem) |
{ |
//Get the instance of the right type |
GridDataItem dataBoundItem = e.Item as GridDataItem; |
if (dataBoundItem.OwnerTableView.Name == "OrderHeader") |
{ |
GridDropDownColumn ddlStatus =(GridDropDownColumn) dataBoundItem.FindControl("Status"); |
if (Convert.ToInt16(dataBoundItem["OrderStatusID"].Text) == 1) |
{ |
if (e.Item.Edit) |
{ |
Debug.Write("Edit Mode!); |
} |
} |
else |
{ |
ddlStatus.ReadOnly = true; |
} |
} |
} |
} |
} |
We recently upgraded to 2017 Telerik for a project which had 2014 before.
ComboBox has custom skin, and it is not displaying correctly after update. After following a response on a different thread, i applied lightweight render mode for only combobox in config, which fixed the layover of image. But, it is not picking up the custom skin after that fix. Please advise.
Images attached here.
For an unknown reason ::before is being auto-inserted on some instances of RadRating but not others. How do I prevent ::before from being inserted when using RadRating?
Attached are screenshots of the user control code and the Chrome element inspector. In the code comparison attachment the code on the left auto-inserts "::before" and the code on the right does not.