Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
244 views

I'm trying to databind the pie chart to the sqldatasource, but it seems there are issues (or I'm not doing it right) with DataFieldY.  The sqldatasource will return 2 column of data as follow:
Description     cnt
7 Days            3
30 Days        37
Rest              42
24 Hour         116

Where the "Description" column I assign to "NameField" and "cnt" column I assign to DataFieldY.  Below is my code for the chart.
                            <telerik:RadHtmlChart runat="server" ID="chartRouters" Width="100%" Height="100%" Transitions="true" 
                                Skin="Silk" DataSourceID="sqlDSModem">
                                <ChartTitle Text="Router Status">
                                    <Appearance Align="Center" Position="Top">
                                        <TextStyle Color="White" />
                                    </Appearance>
                                </ChartTitle>
                                <Legend>
                                    <Appearance Position="Right" Visible="true">
                                    </Appearance>
                                </Legend>
                                <PlotArea>
                                    <Series>
                                        <telerik:PieSeries StartAngle="90" DataFieldY="Cnt" NameField="Description">
                                            <LabelsAppearance Position="OutsideEnd" DataFormatString="{0} %">
                                            </LabelsAppearance>
                                            <TooltipsAppearance Color="White" DataFormatString="{0} %"></TooltipsAppearance>
                                        </telerik:PieSeries>
                                    </Series>
                                </PlotArea>
                            </telerik:RadHtmlChart>   

when I run the code, my pie chart looked "weird" and had only 4 lines (not the chart line, but lines extending out from a single point) Looks almost lilke it is not reading the "cnt" column of the data.  

When I go to the immediate window and do the :

?chartRouters.PlotArea.Series(0).DataFieldY(0)

 

it gave me value of "c" and then DataFieldY(1) is "n" and DataField(2) is "t".  I was expecting to see the actual value when I do that, but it almost like is putting the column field name in the value instead of actual data value?  That is weird.

What is wrong?

thank you!

Frank
Top achievements
Rank 1
 answered on 14 Dec 2017
4 answers
297 views

How do you clear the selection or go back to intial state via javascript?  I can do it from codebehind but it's faster on the client side.

Thanks,

Tim

Rumen
Telerik team
 answered on 14 Dec 2017
7 answers
2.1K+ views
The web application I have developed works fine on my local machine but when I try to run it from the server it gives me the following error. I have Telerik.Web.UI.dll andTelerik.Web.Design.dll in my Bin folder.

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Stack Trace:


[FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +123

[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11565312
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +485
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +79
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +280
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1167

[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11697760
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4866485

 

Few parts of my web.config are as follows:
<compilation debug="true">
     <assemblies>
         <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
         <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     </assemblies>
   </compilation>
 
 
<httpHandlers>
     <remove verb="*" path="*.asmx" />
     <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
     <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false" />
   </httpHandlers>
KidSysco
Top achievements
Rank 1
 answered on 14 Dec 2017
0 answers
157 views
I've found that RadGrid filtering doesn't work when the values have a "<" (less than) character inside of the column.  Upon removing the values with the "<" sign, the filters work.  Does anyone know a fix or way around this?  It seems like an escaping bug.

Thanks,
Jason
l
Jason
Top achievements
Rank 1
 asked on 14 Dec 2017
4 answers
415 views

radGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Biff;

I want the format to be Xlsx.  But it only shows Biff, ExcelML, Html as selection.  My references of Telerk.Web.UI is pointing to

C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R3 2017\Bin35\Telerik.Web.UI.dll

What do I miss?  Thanks.

Vessy
Telerik team
 answered on 14 Dec 2017
1 answer
162 views

We are looking to create a custom SharePoint web part which displays appointment data on a Scheduler. Ideally we want to return JSON format data from a WCF service and bind this to the Scheduler. We do not need to use insert / update functionality. Having had a look at some examples we're not sure where to go with this. We've looked into Data Providers but again we haven't been able to successfully implement this so far. Any help / step by step examples would be greatly appreciated.

Thanks

Peter Milchev
Telerik team
 answered on 14 Dec 2017
1 answer
225 views

Hi all,

I tried to localize RadAsyncUpload, but it looks it is not possible to translate tooltip for 'Select' button. It shows 'No file selected'. Is it possible to translate or disable it?

Thank you,

Petr

 

Petr
Top achievements
Rank 1
Iron
Iron
 answered on 14 Dec 2017
5 answers
407 views

 Using RadScriptManager and EnableScriptCombine="true" I get a response header for Telerik.Web.UI.WebResource.axd of Tue, 11 Jul 2017 00:00:00 GMT.

 Where does that date/time come from?

Marin Bratanov
Telerik team
 answered on 14 Dec 2017
0 answers
111 views

hi

how can i set the radgrid to load the last page when databound?

i don't want to sort, i just want to show the last page instead of showing first page.

Thanks

Amirreza
Top achievements
Rank 1
 asked on 14 Dec 2017
2 answers
321 views

Hello.  I am dynamically adding multiple upload controls - I need to find a way to pass an argument to the OnClientFileUploaded javascript function OR to dynamically create the function itself from the code behind so that I can build the argument directly into the OnClientFileUploaded function.

Specifically, I need to pass an ID to the function so that when the files are uploaded, I can tell where they should be saved. Please note this is not the controlID but an ID from my database. 

I've tried adding the function code like this, but the timing does not seem to be correct.    Thank you for any help on this!

protected void Page_Load(object sender, EventArgs e)
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<script> function OnClientFileUploaded(sender) {\n");
            sb.Append("<%= Page.ClientScript.GetPostBackEventReference(new PostBackOptions(this,").Append(tempContentID).Append(")) %>\n");
            sb.Append("}</script>");
 
            this.Page.ClientScript.RegisterClientScriptBlock(typeof(RadEditor), "UploadScript_" + this.ClientID, sb.ToString());
        }
 
  protected void Page_PreRender(object sender, EventArgs e)
        {
            RadAsyncUpload1.OnClientFileUploaded = "OnClientFileUploaded";
        }

 

Angie
Top achievements
Rank 1
 answered on 13 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?