Telerik Forums
Community Forums Forum
1 answer
346 views
using (var memoryStream = new MemoryStream(bytes))
                {
                    using (var workBookImporter = SpreadImporter.CreateWorkbookImporter(SpreadDocumentFormat.Xlsx, memoryStream))
                    {
                        foreach (var worksheetImporter in workBookImporter.WorksheetImporters)
                        {
                            int rowCounter = 0;
                            foreach (var rowImporter in worksheetImporter.Rows)
                            {
                                if (rowCounter < skipHeaderRows)
                                {
                                    rowCounter++;
                                    continue;
                                }
                                var county = rowImporter.Cells.ElementAt(6).Value;
                                counties.Add(county);
                            }
                        }
                    }
                }
using (var memoryStream = new MemoryStream(bytes))
                {
                    using (var workBookImporter = SpreadImporter.CreateWorkbookImporter(SpreadDocumentFormat.Xlsx, memoryStream))
                    {
                        foreach (var worksheetImporter in workBookImporter.WorksheetImporters)
                        {
                            int rowCounter = 0;
                            foreach (var rowImporter in worksheetImporter.Rows)
                            {
                                if (rowCounter < skipHeaderRows)
                                {
                                    rowCounter++;
                                    continue;
                                }
                                var county = rowImporter.Cells.ElementAt(6).Value;
                                counties.Add(county);
                            }
                        }
                    }
                }

worksheetImporter.Rows only ever contains the first row of the spreadsheet. I tried downloading the same bytes to a file, and the other rows are there.  Is there an issue with the library?  I used this a couple weeks ago and it worked fine, but now it's broken.
Dimitar
Telerik team
 answered on 11 May 2023
0 answers
246 views

I have an MVC 3 application that has been running well so far on a Windows 2012 web server. We are in the process of upgrading the application, AS IS, to a Windows 2022 server. And are running into the following error:

 

 

[ArgumentNullException: Value cannot be null.
Parameter name: value]
   System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic, CacheInternal cache) +11948326
   System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace) +141
   System.Web.Caching.AspNetCache.Insert(String key, Object item, CacheInsertOptions options) +107
   Telerik.Web.Mvc.Infrastructure.Implementation.CacheProvider.Insert(String key, Object value) +54
   Telerik.Web.Mvc.Infrastructure.Implementation.Cache.Get(String key, Func`1 defaultValueFactory) +146
   Telerik.Web.Mvc.Infrastructure.Implementation.ControllerContextCache.GetControllerContext(RequestContext requestContext, String controllerName, String areaName) +204
   Telerik.Web.Mvc.Infrastructure.Implementation.AuthorizationContextCache.AuthorizationContextFactory(RequestContext requestContext, String controllerName, String actionName, String areaName) +52
   Telerik.Web.Mvc.Infrastructure.Implementation.<>c__DisplayClass1.<GetAuthorizationContext>b__0() +44
   Telerik.Web.Mvc.Infrastructure.Implementation.Cache.Get(String key, Func`1 defaultValueFactory) +95
   Telerik.Web.Mvc.Infrastructure.Implementation.AuthorizationContextCache.GetAuthorizationContext(RequestContext requestContext, String controllerName, String actionName, RouteValueDictionary routeValues) +346
   Telerik.Web.Mvc.Infrastructure.Implementation.ControllerAuthorization.IsAccessibleToUser(RequestContext requestContext, String controllerName, String actionName, RouteValueDictionary routeValues) +151
   Telerik.Web.Mvc.Infrastructure.Implementation.NavigationItemAuthorization.IsAccessibleToUser(RequestContext requestContext, INavigatable navigationItem) +367
   Telerik.Web.Mvc.UI.NavigationItemContainerExtensions.WriteItem(TItem item, TComponent component, IHtmlNode parentTag, INavigationComponentHtmlBuilder`1 builder) +315
   Telerik.Web.Mvc.UI.<>c__DisplayClass4.<WriteHtml>b__3(MenuItem item) +36
   Telerik.Web.Mvc.Extensions.EnumerableExtensions.Each(IEnumerable`1 instance, Action`1 action) +159
   Telerik.Web.Mvc.UI.Menu.WriteHtml(HtmlTextWriter writer) +352
   Telerik.Web.Mvc.UI.ViewComponentBase.Render() +87
   Telerik.Web.Mvc.UI.ViewComponentBuilderBase`2.Render() +15

 

At this point, I am fairly certain this has to do with some dll mismatch between the 2 servers. The 2022 server has MVC3 installed on it.

Any ideas what I should be looking at?

Balaji
Top achievements
Rank 1
 asked on 03 May 2023
1 answer
215 views

My understanding is if you had a license at the time a project was built then you could always use that version, is this still true? I need to make a couple small edits to a legacy asp.net MVC app that was built when I had an asp.net controls license for version 2021.2,511 but I no longer have the license as I now only have a license for the Blazor controls.

I've switched machines since then and am therefore unable to build the project without restoring the packages from the telerik nuget feed. I understand I cant upgrade to a newer version but just need to make a few minor edits that have nothing to do with the telerik controls in the project. How can I restore the packages in this project so it can build?

Thanks.

Jacob
Telerik team
 answered on 28 Apr 2023
1 answer
119 views

How to set fontsize for the elements/child nodes of tree of RadTreeView ?

Below is my sample code: (setting as in below code is not working)

<telerik:RadTreeView  x:Name="treeview"
                           ItemTemplate="{StaticResource xx}"
                           ItemsSource="{Binding yy}"
                           ItemsIndent="0">
            <telerik:RadTreeView.ItemContainerStyle>

               <Style BasedOn="{StaticResource xy}" TargetType="telerik:RadTreeViewItem">
                 <Setter Property="IsExpanded" Value="{Binding ab, Mode=TwoWay}" />

                 <Setter Property="FontSize" Value="20" />

          </telerik:RadTreeView.ItemContainerStyle>
 </telerik:RadTreeView>
Stenly
Telerik team
 answered on 27 Apr 2023
7 answers
364 views
Is it possible to get the psd file for the Loading animation image used with callbacks?

I would like to use a different background color than white.

Thanks.
John
Top achievements
Rank 1
 updated answer on 11 Apr 2023
0 answers
103 views

Hi Team,

 

We need a help related to "RadNumericTextBox" as we are using it with "AM Charts", we want to manage the charts and set resolution to a fixed number or set it to auto, so that it should get managed as per size of table and chart, the Telerik details we are using, Telerik version 2014.3.1024.45 with Asp.Net Webforms, Kindy request you to please give a solution.

 

Thank you

 

Swapnil
Top achievements
Rank 1
 asked on 03 Apr 2023
8 answers
141 views

Hi,

Somehow I managed to end up with two Telerik user accounts, each with its own email address (private and work). I keep receiving emails from Progress twice as a result. Is it possible to have these two accounts merged?

Best regards,

Henk

Iva
Telerik team
 answered on 03 Apr 2023
0 answers
97 views

I copy on notepad with Telerik script editor installed:

0x7A8F460B47f01B596759Bb2CaE4886ED182101E4

I get while doing paste:

0x7A1e71B4498Ae1a1C3ec13F165a0D655bd082394

 

What kind of modification is it?

 


John
Top achievements
Rank 1
 updated question on 29 Mar 2023
2 answers
1.8K+ views

blazor server running initialization code twice in spite of render-mode="Server"-- does Telerik force server side prerender?  I have done everything i can think of and have engaged microsoft directly to try to figure out what is going on.  Is there something in Telerik UI for Blazor that is forcing server prerender?  The bottom line is that the initial instances of my services have values set and subsequent instances, after initialization code is re-run no longer have the same values and context that my menuing and layouts are relying on for context.  Has anyone run into this problem and is it at all related to Telerik components?  I'm at a complete loss and have been trying to get this to work for nearly a month now.

Christopher
Top achievements
Rank 1
 answered on 29 Mar 2023
2 answers
145 views

Hello,

the Telerik Reporting Map (as a choropleth) seems to work well with Gradient colors and a rangemin/rangemax.

But there seems to be an issue with trying to use it (as a choropleth) with a defined Colorpalette of a fixed number of colors. the map only seems to pick up only two colors despite the number of colorts defined in the palette and the setting of the map colorscount property.

Also, is there a way in order to specify the distinct categories for the legend  if not using a Rangemin/Rangemax?

Thanks

Douglas
Top achievements
Rank 1
 answered on 29 Mar 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?