I've added this GridCalculatedColumn to my ASP.NET RadGrid:
<telerik:GridCalculatedColumn Aggregate="Sum" DataFields="Imponibile1,Imponibile2,Imponibile3,Imponibile4" DataFormatString="{0:C}" Expression="{0}+{1}+{2}+{3}" FooterAggregateFormatString="{0:C}" HeaderText="Totale Imp." UniqueName="TotaleImponibile" DataType="System.Decimal"> <FooterStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="Small" Wrap="True" ForeColor="#3333FF"/> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Right" Wrap="False" /></telerik:GridCalculatedColumn>
but now I got this exception when loading the page:
[ParseException: ')' or ',' expected]
Telerik.Web.UI.ExpressionParser.ValidateToken(TokenId t, String errorMessage) +89
Telerik.Web.UI.ExpressionParser.ParseNew() +531
Telerik.Web.UI.ExpressionParser.ParseIdentifier() +268
Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +65
Telerik.Web.UI.ExpressionParser.ParsePrimary() +36
Telerik.Web.UI.ExpressionParser.ParseUnary() +404
Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +54
Telerik.Web.UI.ExpressionParser.ParseAdditive() +54
Telerik.Web.UI.ExpressionParser.ParseComparison() +69
Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +49
Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +49
Telerik.Web.UI.ExpressionParser.ParseExpression() +60
Telerik.Web.UI.ExpressionParser.Parse(Type resultType) +58
Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values) +81
Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values) +114
Telerik.Web.UI.GridDynamicQueryable.Select(IQueryable source, String selector, Object[] values) +178
Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +2735
Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1064
Telerik.Web.UI.GridResolveEnumerable.Initialize() +58
Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +45
Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31
Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +227
Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +164
Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +581
Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +238
Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
Telerik.Web.UI.GridTableView.PerformSelect() +38
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
Telerik.Web.UI.GridTableView.DataBind() +366
Telerik.Web.UI.RadGrid.DataBind() +173
Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +3903
Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +183
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Please help me if I'm getting something wrong. Thank you. <div id="MegaDropDown">
...
var title = String.Format("Unclassified <span style='font-size:9px'>({0})</span>", nb); RadTreeNode unclassified = new RadTreeNode(title, "-2");<telerik:GridTemplateColumn HeaderText="Image Url"> <ItemTemplate> <asp:Label ID="lblImageUrl" runat="server" Text='<%# ShortenText.Shorten(Eval("imageURL"), 20) %>' /> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtImageUrl" runat="server" Text='<%# Eval("imageURL") %>' /><asp:RequiredFieldValidator ID="ImageUrlValidator" runat="server" ErrorMessage="Image URL is required!" ControlToValidate="txtImageUrl" Text="*" ValidationGroup="AdvertsGroup" /><asp:RegularExpressionValidator ID="ImageUrlValidator1" runat="server" ErrorMessage="Image URL can be only image path!" Text="*" ControlToValidate="txtImageUrl" ValidationExpression="http(s?)://([\w-]+\.)+[\w-]+(/[\w- ./]*)+\.(?:gif|jpg|jpeg|png|bmp|GIF|JPEG|JPG|PNG|BMP|Gif|Jpg|Jpeg|Png|Bmp)$" ValidationGroup="AdvertsGroup" /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Navigate Url"> <ItemTemplate> <asp:Label ID="lblNavigateUrl" runat="server" Text='<%# ShortenText.Shorten(Eval("navigateURL"), 20) %>' /> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtNavigateUrl" runat="server" Text='<%# Eval("navigateURL") %>' /><asp:RequiredFieldValidator ID="NavigateUrlValidator" runat="server" ErrorMessage="Navigate URL is required!" ControlToValidate="txtNavigateUrl" Text="*" ValidationGroup="AdvertsGroup" /><asp:RegularExpressionValidator ID="NavigateUrlValidator1" runat="server" ErrorMessage="Navigate URL should be valid internet url!" ControlToValidate="txtNavigateUrl" Text="*" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" ValidationGroup="AdvertsGroup" /> </EditItemTemplate> </telerik:GridTemplateColumn>We encountered following problems with the version 2012.1.215.35
1. Enter button stopped working for all the pages, if focus is on any of the other controls on the page. For example , in login page, the default onload cursor was on username field, if we just pressed entered, it did not work, if we clicked on any other point on the page and clicked enter, it worked as expected.
2. RadDatePicker control - behavior changed for some pages- if the date field is clicked, in first click, it was highlighting the date and showed the calendar control in second click.
After downloading the version 2011.3.1305.35, these problems were gone.
I am populating a Rad Scheduler using a WCF services, some of the items cannot be deleted so I have set AllowDelete to be false this does not seem to work and when I hover over the appointment the delete image still appears.
I have also tried to set some other information based on whether the appointment is a parent or child and this does not seem to work either, see my code below. The subject of the appointment changes to be either "Parent: ...." or "Child: ...." so the IF statement is working correctly. But the other changes I am trying to make do not seem to work correctly.
Am I adding the appointments incorrectly/is there another way to do this that will work.
Public Overloads Overrides Function GetAppointments(ByVal Owner As RadScheduler) As IEnumerable(Of Appointment) Dim AppointmentsList As New List(Of Appointment) 'get a list of appointments to add and put them in the list above Do While Rs.ReadNext Dim AppointmentItem As New Appointment Slot.Fill(Rs.ReadRow) AppointmentItem.Start = Slot.Start_DT.Value AppointmentItem.End = Slot.End_DT.Value AppointmentItem.AllowEdit = False AppointmentItem.ID = Slot.GUI.Value If Slot.ParentGUI.IsNull Then AppointmentItem.Subject = "Parent: " & Slot.Name.Value AppointmentItem.AllowDelete = False AppointmentItem.ContextMenuID = "SchedulerAppointmentContextMenuDelete" Else AppointmentItem.Subject = "Child: " & Slot.Name.Value AppointmentItem.RecurrenceParentID = Slot.ParentGUI.Value AppointmentItem.AllowDelete = False AppointmentItem.BackColor = System.Drawing.Color.Black AppointmentItem.ForeColor = Drawing.Color.Pink AppointmentItem.ContextMenuID = "SchedulerAppointmentContextMenuNothing" ' have tried this too, AppointmentItem.ContextMenuID = Nothing End If AppointmentsList.Add(AppointmentItem) Loop Rs.Close() Return AppointmentsListEnd Function