Error;Sys.ArgumentUndefinedException: Value cannot be undefined.Parameter name: type ScriptResource.axd?d=vUoTpDxDbR3vJWc5PDPuLYP64nfdrWbf-K52duDrCOVUeQueTMBQzu_1dzOmybqNDuWGBU4UdD1duqTGm1ioStXKKocFu18wOuSUO_RD3MM1&t=ffffffffec2d9970, line 2705 character 12In function;var $create = Sys.Component.create = function Sys$Component$create(type, properties, events, references, element) { ....In file;// Name: MicrosoftAjax.debug.js// Assembly: System.Web.Extensions// Version: 3.5.0.0// FileVersion: 3.5.30729.4926Sys.Application.add_init(function() { $create(Telerik.Web.UI.RadDateInput, {"_focused":false, "_originalValue":"16-10-2009 0:00:00", "_postBackEventReferenceScript":"__doPostBack(\u0027ctl00$ctl18$g_729422f7_feb9_4651_91f8_ddbfeff99049$ctl00$historicalSelectionDateFromPicker\u0027,\u0027\u0027)", "clientStateFieldID":"ctl00_ctl18_g_729422f7_feb9_4651_91f8_ddbfeff99049_ctl00_historicalSelectionDateFromPicker_dateInput_ClientState",*snip* "incrementSettings":{InterceptArrowKeys:true,InterceptMouseWheel:true,Step:1}, "styles":{HoveredStyle: ["width:100%;", "riTextBox riHover"],InvalidStyle: ["width:100%;", "riTextBox riError"],DisabledStyle: ["width:100%;", "riTextBox riDisabled"],FocusedStyle: ["width:100%;", "riTextBox riFocused"],EmptyMessageStyle: ["width:100%;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:100%;", "riTextBox riRead"],EnabledStyle: ["width:100%;", "riTextBox riEnabled"]}}, {"error":DateError, "keyPress":ClearError}, null, $get("ctl00_ctl18_g_729422f7_feb9_4651_91f8_ddbfeff99049_ctl00_historicalSelectionDateFromPicker_dateInput"));});var radGridByClass = $('.rgDataDiv');if (radGridByClass.length == 0) return;var radGridID = radGridByClass[0].id; var radGrid = document.getElementById(radGridID);var mainheight = $('.RadGrid').height();var gridHeaderheight = $('.rgHeaderDiv').height();radGrid.style.height = mainheight - gridHeaderheight + 'px';<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><!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>Test RadNumericTextBox</title></head><body> <form id="form1" runat="server"> <div> <telerik:RadNumericTextBox ID="numeric" runat="server" /> <input type="button" value="Clear" /> <asp:ScriptManager ID="manager" runat="server" /> </div> </form></body></html>Chart1.PlotArea.XAxis.DataLabelsColumn = "DateString";Chart1.PlotArea.YAxis.AutoScale = false;Chart1.PlotArea.YAxis.Step = 100;Chart1.PlotArea.YAxis.MinValue = double.Parse(dsData.Tables[0].Rows[0]["MinValue"].ToString());Chart1.PlotArea.YAxis.MaxValue = double.Parse(dsData.Tables[0].Rows[0]["MaxValue"].ToString());Chart1.Series.Clear();foreach (DataColumn column in dsData.Tables[0].Columns){ if (column.ColumnName.Contains("Series")) { ChartSeries series = new ChartSeries(column.ColumnName, ChartSeriesType.Point); series.DefaultLabelValue = "#Y"; series.DataYColumn = column.ColumnName; rcCreditSummary.Series.Add(series); }}ChartSeries series1 = new ChartSeries("Median Score", ChartSeriesType.Line);series1.DefaultLabelValue = "#Y";series1.DataYColumn = "AvgScore";series1.Visible = true;series1.Appearance.LabelAppearance.Visible = false;Chart1.Series.Add(series1);ChartSeries trendLineSeries = new ChartSeries("Trend Line", ChartSeriesType.Line);trendLineSeries.DefaultLabelValue = "#Y";trendLineSeries.DataYColumn = "TrendLineScore";trendLineSeries.Visible = true;trendLineSeries.Appearance.LabelAppearance.Visible = false; Chart1.Series.Add(trendLineSeries);Chart1.DataSource = dsData.Tables[0];Chart1.IntelligentLabelsEnabled = false;Chart1.DataBind();
<telerik:GridBoundColumn DataField="description" HeaderText="Description" SortExpression="description" UniqueName="description" Display="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="extendedDescription" HeaderText="Ext. Description" SortExpression="extendedDescription" UniqueName="extendedDescription" Display="false"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="description1" HeaderText="Description"> <ItemTemplate> <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("description")& " - " & Eval("extendedDescription") %>'></asp:Label> </ItemTemplate> <FilterTemplate> <telerik:RadTextBox ID="RdTxtName" EmptyMessage="Search" runat="server" EmptyMessageStyle-Font-Italic="true" HoveredStyle-Font-Italic="true" Width="100%"> </telerik:RadTextBox><asp:Button ID="btnFilter" runat="server" Width="20px" Text="" OnClientClick="return filterName()" /> </FilterTemplate> </telerik:GridTemplateColumn>I have the following mapped in my Entity Data Model to my Database
Products
ProductName
CreatedDate
UpdatedDate
...
I then created a partial class, which gives an additional property to Products
public partial class Product
{
public DateTime LatestDate
{
get
{
if(UpdateDate.HasValue) return UpdateDate.Value;
return CreatedDate;
}
}
}
I then did the following:
<asp:EntityDataSource ID="EntityDataSource1" runat="server"
ConnectionString="name=TwModelContainer"
DefaultContainerName="TwModelContainer" EnableFlattening="false"
EntitySetName="Products">
</asp:EntityDataSource>
<telerik
:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataSourceID="EntityDataSource1"
GridLines="None" onitemcreated="RadGrid1_ItemCreated" AllowSorting="True">
<
MasterTableView DataSourceID="EntityDataSource1" DataKeyNames="Id">
<
telerik:GridSortExpression FieldName="LastDate" SortOrder="Descending" />
Unfortunately, this does not work. I can easily show the created field LastDate in the Grid, but sorting won't work. It gives me the following error:
'LastDate' is not a member of type 'TwModel.Product' in the currently loaded schemas. Near simple identifier, line 6, column 4
I guess in means that sorting works only for what is availabe in the database schema, but how would I accomplish the above with an additional calculated property, i.e. LastDate?
Hi,
I have problems with the radtooltipmanager control and the IE browser.
Before starting explain the problem, please view the page: http://www.israel-jewelry-center.com/Pages/Categories/Rings.aspx. In the bottom of this page there is a pager.
Now, the problem is: If the user going over the first item in the first page he will see an ajax tooltip with a content (Content1), and if the user go to the second page and going over the first item in that page he will see the same content as Content1, and so on for all items (The content includes the same image as the selected one but in big size). This problem is just in IE versions. I tested it in FireFox, Google Chrome, Safari.... and there was no problem.
I think the problem due to the <telerik:RadToolTipManager />.
It seems that RadToolTipManager cache the args when you change the page number in IE.
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
this.UpdateToolTip(args.Value, args.UpdatePanel);
}
I'm not sure
Please, view a sample application which contains the problem:
http://www.israel-jewelry-center.com/AppDemo1/SampleApplication.rar
Please open the page: ~/Pages/Categories/Rings.aspx
Please, I need an emergency help.
It is apprecired to send me the modified code with an explaination.
regards,
Bader