Hello,
How to format the yaxis label based on the culture? The following code always renders the yaxis in "en" format instead of "fr", when the user loaded in "fr" mode. Y axis will be having amount value.
<script src="js/kendo.all.min.js"></script><script src="js/kendo.culture.en-CA.min.js"></script><script src="js/kendo.culture.fr-CA.min.js"></script>kendo.culture("<%=GetCultureString()%>");<PlotArea><YAxis><LabelsAppearance DataFormatString="C" /></YAxis>
I tried this as well, but didnt work
<YAxis><LabelsAppearance> <ClientTemplate>#if(value > 0){# #= kendo.format(\'{0:C1}\', value)# #}#</ClientTemplate></LabelsAppearance>

Line chart is displaying as in attached file chart 1. I need to updated the code to display as in attached file chart 2. Also find code from.aspx and .cs files.
aspx file:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:radscriptmanager ID="QsfScriptManager" 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" />
</Scripts>
</telerik:radscriptmanager>
<telerik:radhtmlchart runat="server" ID="RadHtmlChart1" Width="800px" Height="400px">
<PlotArea>
<XAxis DataLabelsField="Measured_depth" MajorTickType="None">
<MinorGridLines Visible="false" />
<MajorGridLines Visible="false" />
</XAxis>
<YAxis MajorTickType="None">
<MinorGridLines Visible="false" />
</YAxis>
</PlotArea>
</telerik:radhtmlchart>
<telerik:radajaxloadingpanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Silk">
</telerik:radajaxloadingpanel>
<telerik:radajaxmanager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Configuratorpanel1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadHtmlChart1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:radajaxmanager>
</div>
<div>
<asp:button ID="Button1" runat="server" text="Submit" OnClick="Button1_Click"/>
</div>
</form>
</body>
</html>
cs file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using Telerik.Web.UI.HtmlChart;
using Telerik.Web.UI.HtmlChart.Enums;
using System.Data.SqlClient;
using System.Data;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
DataTable dt = new DataTable();
DataColumn dcMeasuredDepth = new DataColumn("Measured_depth", typeof(System.Decimal));
DataColumn dcTrueVerticalDepth = new DataColumn("True_Vertical_Depth", typeof(System.Decimal));
dt.Columns.Add(dcMeasuredDepth);
dt.Columns.Add(dcTrueVerticalDepth);
DataRow dr = dt.NewRow();
dr[0] = 0.00;
dr[1] = 0.00;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[0] = 858.60;
dr[1] = 858.60;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[0] = 1740.40;
dr[1] = 1740.35;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[0] = 1882.60;
dr[1] = 1882.54;
dt.Rows.Add(dr);
RadHtmlChart1.DataSource = dt;
LineSeries ls = new LineSeries();
ls.DataFieldY = "True_Vertical_Depth";
RadHtmlChart1.PlotArea.Series.Add(ls);
RadHtmlChart1.DataBind();
}
catch (Exception ex)
{
}
finally
{
}
}
}
I was able to successfully convert FROM byte[] to MemoryStream to load an image from the database into the editor, but now when it comes to saving I am not able to convert the image TO byte[].
Using
Telerik.Web.UI.ImageEditor.EditableImage newimg = args.Image;
does not result in a type that can be converted to byte[]. Or does it? I can't even seem to convert it to a Stream.
Hello, I have the following requirements for enhancing a radgrid on a page on our website:
1. When the insert form is opened, the end user should only see the Date of Service and Status fields enabled.
2. Upon selecting a status, the other elements in the form should be updated based on the selected status
Here is how we have our radgrid set up in the aspx page:
<telerik:RadGrid ID="RadGrid2" ShowStatusBar="True" runat="server" AllowPaging="True" PageSize="5" DataSourceID="SqlDataSource2" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" ShowFooter="True" Skin="Silk" ShowHeader="False" AllowSorting="True"> <MasterTableView Width="100%" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" CommandItemDisplay="Top" ShowFooter="False" EditMode="PopUp" DataKeyNames="VisitsID" ShowHeader="True" InsertItemPageIndexAction="ShowItemOnCurrentPage"> <EditFormSettings PopUpSettings-Height="400px" PopUpSettings-Width="810px"> <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn column"/> <PopUpSettings Modal="True" Height="400px" Width="810px" ScrollBars="Vertical"/> </EditFormSettings> <CommandItemSettings ExportToPdfText="Export to PDF" AddNewRecordText="Add new visit"/> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"/> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"/> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> <ItemStyle CssClass="MyImageButton" /> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn DataField="ClaimsID" DataType="System.Int32" FilterControlAltText="Filter ClaimsID column" HeaderText="ClaimsID" ReadOnly="True" SortExpression="ClaimsID" UniqueName="ClaimsID" Visible="False"/> <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter FirstName column" HeaderText="Name" SortExpression="FirstName" UniqueName="FirstName" ReadOnly="True"/> <telerik:GridDateTimeColumn DataField="DOS" FilterControlAltText="Filter DOS column" HeaderText="DOS" SortExpression="DOS" DataFormatString = "{0:d}" UniqueName="DOS" DataType="System.DateTime"> <ColumnValidationSettings EnableRequiredFieldValidation="True"> <RequiredFieldValidator Display="Dynamic" ErrorMessage="DOS is Required!" Font-Bold="True" ForeColor="Red" SetFocusOnError="True"/> </ColumnValidationSettings> </telerik:GridDateTimeColumn> <telerik:GridDropDownColumn DataSourceID="SqlDataSource4" ListTextField="Units" ListValueField="Units" UniqueName="Units" SortExpression="Units" HeaderText="Units" DataField="Units" DropDownControlType="RadComboBox" FooterText="RadComboBox column footer" AllowAutomaticLoadOnDemand="false" AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="10"/> <telerik:GridDropDownColumn DataSourceID="SqlDataSource6" ListTextField="DDDDescription" ListValueField="DDDCode" FilterControlAltText="Filter DDDCode column" HeaderText="Code" DataField="DDDCode" SortExpression="DDDCode" UniqueName="DDDCode" DropDownControlType="RadComboBox" FooterText="RadComboBox column footer" AllowAutomaticLoadOnDemand="false" AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="10"/> <telerik:GridDropDownColumn DataSourceID="SqlDataSource7" ListTextField="VisitStatus" ListValueField="VisitStatus" FilterControlAltText="Filter Status column" HeaderText="Status" DataField="VisitStatus" SortExpression="VisitStatus" UniqueName="VisitStatus" DropDownControlType="RadComboBox" FooterText="RadComboBox column footer" AllowAutomaticLoadOnDemand="false" AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="10"/> <telerik:GridBoundColumn DataField="TherapistID" FilterControlAltText="Filter TherapistID column" HeaderText="TherapistID" SortExpression="TherapistID" UniqueName="TherapistID" Visible="False"/> <telerik:GridBoundColumn DataField="PatientID" FilterControlAltText="Filter PatientID column" HeaderText="PatientID" SortExpression="PatientID" UniqueName="PatientID" DataType="System.Int32" Visible="False"/> <telerik:GridTemplateColumn HeaderText="Subjective" UniqueName="Subjective"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Subjective") %>' TextMode="MultiLine" Height="70px" Width="700px" Wrap="True"/> <asp:CustomValidator id="custV" runat="server" ControlToValidate = "TextBox1" ErrorMessage = "Minimum of 25 characters required" ClientValidationFunction="MinLength"/> <asp:RequiredFieldValidator id="RequiredFieldValidator1" ControlToValidate="TextBox1" Text="Subjective Is Required" runat="server"/> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Eval("Subjective") %>'/> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Objective" UniqueName="Objective" > <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Objective") %>' TextMode="MultiLine" Height="70px" Width="700px"/> <asp:CustomValidator id="custV2" runat="server" ControlToValidate = "TextBox2" ErrorMessage = "Minimum of 25 characters required" ClientValidationFunction="MinLength"/> <asp:RequiredFieldValidator id="RequiredFieldValidator2" ControlToValidate="TextBox2" Text="Objective Is Required" runat="server"/> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Eval("Objective") %>'/> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Assessment" UniqueName="Assessment" > <EditItemTemplate> <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Assessment") %>' TextMode="MultiLine" Height="70px" Width="700px"/> <asp:CustomValidator id="custV3" runat="server" ControlToValidate = "TextBox3" ErrorMessage = "Minimum of 25 characters required" ClientValidationFunction="MinLength"/> <asp:RequiredFieldValidator id="RequiredFieldValidator3" ControlToValidate="TextBox3" Text="Assessment Is Required" runat="server"/> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label3" runat="server" Text='<%# Eval("Assessment") %>'/> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="Plan" UniqueName="Plann" > <EditItemTemplate> <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Plann") %>' TextMode="MultiLine" Height="70px" Width="700px"/> <asp:CustomValidator id="custV4" runat="server" ControlToValidate = "TextBox4" ErrorMessage = "Minimum of 25 characters required" ClientValidationFunction="MinLength"/> <asp:RequiredFieldValidator id="RequiredFieldValidator4" ControlToValidate="TextBox4" Text="Plan Is Required" runat="server"/> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label4" runat="server" Text='<%# Eval("Plann") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="UserName" FilterControlAltText="Filter UserName column" HeaderText="UserName" SortExpression="UserName" UniqueName="UserName" Visible="False" ReadOnly="True"/> <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this visit?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> </telerik:GridButtonColumn> </Columns> <EditFormSettings UserControlName="Home Health Billing"> <EditColumn FilterControlAltText="Filter EditCommandColumn column"/> <PopUpSettings Modal="True" /> </EditFormSettings> <PagerStyle AlwaysVisible="True" /> </MasterTableView> <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true"> <ClientEvents OnPopUpShowing="PopUpShowing" /> <Selecting AllowRowSelect="true" /> </ClientSettings> <PagerStyle Mode="Advanced" AlwaysVisible="True" /> <FilterMenu EnableImageSprites="False"/> </telerik:RadGrid>
I have already attempting using OnItemCommand and checking for InitInsert but during this time the ItemCommandArgs.Item attribute is not a GridDataItem of any kind, it always spits out a cast error when trying to cast it to get at the columns to modify them as per our requirements.
The crux of it is that some way, either once the initinsert command has been issues or when the popup modal open command is issues we need to get into the popup window and make changes and then we also need to make changes when the status is changed.
How would we access the open popup modal from an OnSelectedIndexChanged sub? My first guess would be getting the tableview through the owner of the sender parameter but that will only be applicable if the controls in the popup can remain grid elements.
Is something that can be done with a RadGrid or will we need to re-engineer the page to implement this?
Thanks.

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[ParseException: Expression expected] Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +227 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.ParseArguments() +68 Telerik.Web.UI.ExpressionParser.ParseArgumentList() +96 Telerik.Web.UI.ExpressionParser.ParseIif() +58 Telerik.Web.UI.ExpressionParser.ParseIdentifier() +234 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.ParseParenExpression() +63 Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +151 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.Where(IQueryable source, String predicate, Object[] values) +208 Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +3835 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) +222 Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +155 Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +566 Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +224 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() +363 Telerik.Web.UI.GridTableView.Rebind() +100 Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +995 Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +200 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +170 Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80 Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +9053 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 |

I'm using telerik HTML 5 chart in the page which gets rendered along with bunch of other tables. so the page contains few tables, couple of paragraphs and telerik HTML5 charts in between them.
I'm using this https://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/responsive-chart/defaultvb.aspx link as reference for resizing the window. However when i try to do print the charts are not getting resized.
I'm using Area chart and Bar chart https://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/areachart/defaultvb.aspx
But the resize on print doesnt work, can you help out with this issue? how to do print with resize feature, so that the chart doesnt get cutoff. Any help will be highly appreciated.
I need the MS Help Viewer installer download but can't find it in the list of downloads. Where can I get this? The web documentation is too difficult to use.
I'm using version 2016.1.225 of the asp.net ajax controls.
This is the page I have found and it refers to an installer download that I can't find.
"Installing local documentation for MS Help viewer (Help3) in Visual Studio 2010"
https://www.telerik.com/support/kb/aspnet-ajax/details/installing-local-documentation-for-ms-help-viewer-(help3)-in-visual-studio-2010
(I'm using visual studio 2013 but that may not matter)


I created a new project, and added a RadDropDownList to the form. I went into the configuration of the DDL, and tried to add a new datasource to an accdb database.
I clicked <new data source>, selected SQL database as the type, named the source and clicked OK.
On the Choose data connection page, I selected new connection. In the next page, i selected Microsoft Access Database File, and the always use this selection checkbox was checked.
I clicked continue.
In the Add connection dialog, I clicked browse for my database file name, and selected the ACCDB. This database has no log in, so i cleared out the UserName of Admin.
At this point, no matter what I do - either click test connection or click OK, VS2017 crashes with no error, just "Microsoft Visual Studio 2017 has stopped working".
I have tried this multiple times with the same result.
Can someone help please?
Jerry
