$(
"#" + <%= this.MyTimePickerControl.ClientID %> + "_dateInput_text").css("background-color", "#FF0000");
This jQuery code seems to run fine, and when I check the background-color in the debugger, it is indeed set to red. Yet there is no visual change in the browser window.
Is what I'm trying to do possible? If so, what am I doing wrong? I have tried this same technique with other style, such as border, but with the same lack of effect.
RadComboBox1_SelectedIndexChanged is not working for me.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" > </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadComboBox1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadComboBox1" LoadingPanelID="RadAjaxLoadingPanel1"/> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default" > </telerik:RadAjaxLoadingPanel> <br /> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> </script> </telerik:RadCodeBlock> <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" Style="vertical-align: middle;" EmptyMessage="Choose Stations..." AutoPostBack="True" onselectedindexchanged="RadComboBox1_SelectedIndexChanged"> <ItemTemplate> <div id="div1" > <telerik:RadTreeView runat="server" ID="RadTreeView1" Width="100%" Height="210px" CheckBoxes="true" CheckChildNodes="true" TriStateCheckBoxes="true" > </telerik:RadTreeView> </div> </ItemTemplate> <Items> <telerik:RadComboBoxItem Text="" /> </Items> </telerik:RadComboBox> <br /> <asp:Button ID="Button1" runat="server" Text="Selected Stations" onclick="Button1_Click" /> <p> </p> <p> <asp:Label ID="Label1" runat="server" Text=""></asp:Label> </p> </form> </body> </html>[FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral,
PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.]
System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32
typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0 System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[]
typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180 System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[]
genericMethodArguments) +192 System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken,
Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103 System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +388
System.Web.UI.ScriptManager..ctor() +26
Telerik.Web.UI.RadScriptManager..ctor() +14
The error only occurs the first time I load a page after a build of the application. As soon as I refresh the page, the error goes away and the application functions as expect.
The error started occurring as soon as I added a Silverlight 3 application in my web app project.
Why are RadScriptManager and the .NET ScriptManager attempting to load a Silverlight dll? Obviously, this dll is not in the bin directory of the web app. Any ideas as to how I can make this error go away?
I'm using VS 2010, .NET 4.0, Silverlight 3, and Telerik RadControls for ASP.NET Ajax version 2010.1.415.40.
Thanks,AndyI have inherited an application from a previous developer and I am having problems with the speed of the RadTreeList he has previously implemented.
The Treelist is a representation of a dealer hierarchy where the sub branches roll up to a principal dealer within a country.
Eg Principal Dealer 11020000
Has branches: 11020001, 11020002, 11020003
For each row we are displaying name and address information as well as image buttons that allow a dealer to be selected/assigned to a role holder or for all dealers for a principal to be selected at principal level.
This is using the NeedDataSource event.
Now I am caching data from my SQL Server 2008 datasource wherever I can but I am finding that expanding nodes at principal level and performing updates is painfully slow. Even at it’s largest for a single country the treelist only has around 2000 records and the round trips to the server to get data and perform updates look pretty quick.
I have been through all of the performance tips on the site but nothing seems to be improving it i.e. RadCompression etc.
Can you suggest anything that might be available to improve performance?
<telerik:RadAjaxPanel ID="RadAjaxPanel3" LoadingPanelID="RadAjaxLoadingPanel2" runat="server"> <telerik:RadTreeList AutoGenerateColumns="false" runat="server" ID="RadTreeList3" ShowTreeLines="false" AllowMultiItemSelection="true" DataKeyNames="DLR_CD" ParentDataKeyNames="DLR_PRNCPL_ACC_CD" OnNeedDataSource="RadTreeList3_NeedDataSource" OnDataBound="RadTreeList3_DataBound" AllowPaging="true" PageSize="10" OnItemDataBound="RadTreeList3_ItemDataBound" OnItemCreated="RadTreeList3_ItemCreated"> <Columns> <telerik:TreeListTemplateColumn HeaderText="Dealer" DataField="DLR_CD" UniqueName="DLR_CD"> <ItemTemplate> <asp:Label ID="lblDlrCd" runat="server" Text='<%# Eval("DLR_CD") %>' /> <asp:Label ID="Label1" Width="20px" runat="server" /> <asp:ImageButton ID="btnSelectAll" ToolTip="Click to assign all dealers for Principal" Visible="false" OnClick="btnSelectAll_OnClick" runat="server" ImageUrl="~/Images/ok_16.png" /> <asp:ImageButton ID="btnUnSelectAll" ToolTip="Click to un-assign all dealers for Principal" Visible="false" OnClick="btnUnSelectAll_OnClick" runat="server" ImageUrl="~/Images/remove_16.png" /> <asp:HiddenField ID="hdDlrPrin" runat="server" Value='<%# Eval("DLR_PRNCPL_ACC_CD") %>' /> <asp:HiddenField ID="hdUser" runat="server" Value='<%# Eval("USR_BUSN_ROLE_ID") %>' /> <asp:HiddenField ID="hdDlrUsr" runat="server" Value='<%# Eval("DLR_USR_MAP_ID") %>' /> </ItemTemplate> </telerik:TreeListTemplateColumn> <telerik:TreeListTemplateColumn HeaderText="Assign?"> <ItemTemplate> <asp:ImageButton ID="btnSelect" ToolTip="Click to assign this dealer" Visible="false" OnClick="btnSelect_OnClick" runat="server" ImageUrl="~/Images/ok_16.png" /> <asp:ImageButton ID="btnUnSelect" ToolTip="Click to un-assign this dealer" Visible="false" OnClick="btnUnSelect_OnClick" runat="server" ImageUrl="~/Images/remove_16.png" /> </ItemTemplate> </telerik:TreeListTemplateColumn> <telerik:TreeListTemplateColumn HeaderText="Dealer Assigned"> <ItemTemplate> <asp:Panel ID="pnlTick" runat="server"> <asp:Label ID="lblTick" runat="server" Text="Y" Style="font-weight: bold;"></asp:Label> </asp:Panel> </ItemTemplate> </telerik:TreeListTemplateColumn> <telerik:TreeListBoundColumn DataField="DLR_NM" UniqueName="DLR_NM" HeaderText="Name" /> <telerik:TreeListBoundColumn DataField="DLR_ADDR1" UniqueName="DLR_ADDR1" HeaderText="Address 1" /> <telerik:TreeListBoundColumn DataField="DLR_POST_CD" UniqueName="DLR_POST_CD" HeaderText="Post Code" /> <telerik:TreeListBoundColumn DataField="DLR_CITY" UniqueName="DLR_CITY" HeaderText="City" /> <telerik:TreeListBoundColumn DataField="DLR_VISN_REGN_NM" UniqueName="DLR_VISN_REGN_NM" HeaderText="Region" /> </Columns> </telerik:RadTreeList>protected void RadTreeList3_NeedDataSource(object sender, TreeListNeedDataSourceEventArgs e) { try { if (Dlr_Cd != null && Dlr_Cd != string.Empty) { txFind.Text = Dlr_Cd; Dlr_Cd = string.Empty; } GetData(Cntry_Cd, (txFind.Text.Trim() != string.Empty ? txFind.Text.Trim() : string.Empty),Brand_ID); RadTreeList3.DataSource = cache_Data; } catch (Exception ex) { string s = ex.Message; } } protected void GetData(string cntry, string dlr_nm,string brand_id) { if (cache_Data == null || cache_Data.Tables.Count == 0) { CDMAI cDMAI = new CDMAI(); cDMAI.DLR_MyDealer_List_All(cntry, dlr_nm,brand_id ); cache_Data = cDMAI.RetDataSet; } }Private Sub LoadMenuItems() Dim MenuDC As New MenuItemDataContext RadMenu1.DataSource = MenuDC.usp_TABLE_MENU_ITEM_Select().ToList() RadMenu1.DataBind() End Sub<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Office2007" DataFieldID="MENU_ITEM_ID" DataFieldParentID="PARENT_ID" DataNavigateUrlField="PAGE_URL" DataTextField="MENU_ITEM_NAME" DataValueField="MENU_ITEM_ID"> <DefaultGroupSettings ExpandDirection="Down" /><CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> </telerik:RadMenu><
telerik:RadAjaxLoadingPanel ID="radajaxloadingpanelAssociateEntities" runat="server" Transparency="50">
<div id="divLoadingPnl" runat="server" style="position: absolute; left: 400px; top: 250px">
<asp:Image ID="imgLoading" runat="server" AlternateText="Loading..." ImageUrl="~/wpresources/PIMS/Images/progress.gif"/>
</div>
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="radajaxpanelAssociateEntities" LoadingPanelID="radajaxloadingpanelAssociateEntities"
runat="server" Height="650px" Width="948px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
<tr style="width: 100%; height: 50%">
<td style="width: 278px">
<telerik:RadTreeView runat="server" ID="radtvFolderStructure"
OnLoad="radtvFolderStructure_Load" style="position: relative"
OnNodeClick="radtvFolderStructure_NodeClick" >
</telerik:RadTreeView>
</td><td>
<telerik:RadGrid ID="rdgDocuments" runat="server" Height="325" Width="670" Skin="Hay">
</telerik:RadGrid>
</td></tr><tr><td></td><td>
<telerik:RadGrid ID="rdgComments" runat="server" Height="325" Width="670" Skin="Hay">
</telerik:RadGrid>
</td></tr>
</table>
</telerik:RadAjaxPanel>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> <!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 runat="server"> <title></title> <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <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:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager> <div id="divContent" runat="server"> <telerik:RadCalendar ID="RadCalendar1" Runat="server"></telerik:RadCalendar> </div> </form> </body> </html>using System; using System.Drawing; using Telerik.Web.UI; public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { LoadDatesShared(); } void LoadDatesShared() { for (int i = 0; i < 10;i++ ) { RadDatePicker rdp = new RadDatePicker(); rdp.SharedCalendar = RadCalendar1; rdp.AutoPostBack = true; rdp.ID = "rdp" + i.ToString(); rdp.SelectedDateChanged += new Telerik.Web.UI.Calendar.SelectedDateChangedEventHandler(rdp_SelectedDateChanged); divContent.Controls.Add(rdp); RadAjaxManager1.AjaxSettings.AddAjaxSetting(rdp, rdp); } } void rdp_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e) { ((RadDatePicker)sender).BackColor = Color.LightGreen; } }