Telerik Forums
Community Forums Forum
1 answer
150 views

Hi all,

 

I am using Kendo UI with Angular. I want to show some data in my Kendo Grid but I am stuck at a point as the json data I am using is of multiple level.

Json data:

{

"colleges": [

{

"id": 1,

"name": "test 1",

"entities": [

{

"type": "teacher",

"name": "Dan"
}

]

},

{

"id": 2,

"name": "test 2",
"entities":

[

{

"type": "student",

"name": "David"

}
]
}

],

"status": "Success"

}

 

I want to show data in the below form:

 

College name            Student name                  Teacher name

test 1                                                                          Dan

test 2                            David

 

Your valuable response will be appreciated. Please feel free to contact back if any question.

 

Thanks,

Akash Verma

Akash
Top achievements
Rank 1
 updated question on 16 May 2023
1 answer
116 views

I am using a radgrid which has edit form for each row. When I click on the EDIT, needdatasource event is triggered and databinding, which I dont want it to do because the query for the grid takes a fews seconds to run. I set on the needdatasource event so that the code doesn't run if the EDIT link is clicked on. But this makes the radgrid disappear. I have tried making the grid visible again and enable but doesnt show the grid. Code snippet below.

 protected void rg_OrderSummary_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
                if (refreshGrid)
                {

                    (sender as RadGrid).DataSource = LoadResults();
                }
                else
                {
                    rg_OrderSummary.Visible= true;
                    updGrid.Update();
                }
            }

}

How can I get it the grid to show without having to run databind again through need datasource event please?

 

                             
Attila Antal
Telerik team
 answered on 15 May 2023
1 answer
371 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
258 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
244 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
127 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
371 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
107 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
146 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
104 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?