Telerik Forums
UI for ASP.NET Core Forum
1 answer
114 views

Running

$("#tabStrip").kendoTabStrip().data("kendoTabStrip").activateTab($("#tabstrip-tab-3"));

on Doc Ready in the demo throws a Javascript error and the 3rd tab("Moscow") is not selected.

"Uncaught TypeError: Cannot read properties of undefined (reading 'length')" - logged in Console

What am I doing wrong?

https://netcorerepl.telerik.com/cFFlFhGv515cOcCN27

Mihaela
Telerik team
 answered on 22 Nov 2021
0 answers
306 views

So, basically I do not want clients to have the options to delete or rename files which they have by default when you use FileManager through tag helper. All I need is clients to be able to view available files and download them. Is there any alternative to FileManager to achieve this feature? I greatly appreciate any help or directions. Thank you.

Edit: Using <Context-Menu> tag helper inside the filemanager component accomplished what I was looking for.

Prabhat
Top achievements
Rank 1
 updated question on 19 Nov 2021
1 answer
348 views

What is the usage of UnmaskOnPost?
It seems that if the value is true or false the unmasked text is passed to the ViewModel/Model/Controller.

I need the masked value to be passed for additional validation.

Alexander
Telerik team
 answered on 19 Nov 2021
1 answer
204 views

Good afternoon,

I have created a pie chart based on a ViewModel that contains:
int OperatorId,
string OperatorName,
int OperatorTotal

The chart series is created with a click event as:

.Series(series => series .Pie(model => model.OperatorTotal, model => model.OperatorName) .ColorField("Color") .Padding(0) )
.Events(events => events.SeriesClick("onPieChartClick"))

I can access e.series.name and e.category in the click event which gives me the OperatorName, but I really need the OperatorId.

Is there a way that I can group the pie chart by Id but display the name, or pass the Id in the click event?

Many thanks

Richard

Stoyan
Telerik team
 answered on 18 Nov 2021
1 answer
150 views

Hi,

I have two Donut charts next to each other (see attachment), one has more items in the legend making the Donut smaller than the one next to it, how can i make them both the same size regardless of how many items in the legend?

I have found this article: https://docs.telerik.com/kendo-ui/controls/charts/how-to/appearance/fixed-size-pie-or-donut for JQuery how can i replicate for ASP.NET Core?

I have tried the PlotArea but this doesn't offer a Height Property.

Viktor Tachev
Telerik team
 answered on 15 Nov 2021
2 answers
1.1K+ views

I'm unable to update my project to target .Net 6 as it causes a Nuget conflict with the CodeAnalysis library when using the "Telerik.UI.for.AspNet.Core 2021.3.914" and "Microsoft.PowerShell.Commands.Utility 7.2.0" packages.

Is this something that can be looked at in the next release / internal build of the UI AspNet.Core package?

Error NU1605 Detected package downgrade: Microsoft.CodeAnalysis.CSharp from4.0.0-6.final to 3.8.0.
Reference the package directly from the project to select a different version.
-> Microsoft.PowerShell.Commands.Utility 7.2.0 -> Microsoft.CodeAnalysis.CSharp (>= 4.0.0-6.final) -> Microsoft.CodeAnalysis.CSharp (>= 3.8.0)

Thanks,
Richard

Richard
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 12 Nov 2021
1 answer
528 views

Hi,

I have a form control (21 R3) that binds to a simple class and on some properties I want to use a dropdownlist as the editor.  This all works well other than I cannot set a default value?  The dropdownlist does not honour any default set on it when within a form.

Is it possible to set defaults, and will those defaults survive a form reset?

Thanks in advance,

Zack

 

Tsvetomir
Telerik team
 answered on 11 Nov 2021
1 answer
3.4K+ views

I am having trouble getting the multi select to work in a .NET 5 project. I believe the code below is the relevant portion. This is copied directly from the official Telerik demo with a few modifications, and it works in the official Telerik demo project. The problem is that I can't get this code to work in any other project. It seems to be unable to read the data coming from Virtualization_Read. Since this works fine in the demo project, I am thinking it must be something outside of the code shown below, but I have no idea what it could be.

 

@(Html.Kendo().MultiSelect() .Name("orders") .DataTextField("text") .DataValueField("value") .Placeholder("Select addresses...") .Height(450) .Filter("contains") .DataSource(source => { source .Ajax() .PageSize(10) .Read("Virtualization_Read", "Home"); }) .Virtual(v => v.ItemHeight(26).ValueMapper("valueMapper")) )

 public ActionResult Virtualization_Read([DataSourceRequest] DataSourceRequest request)
        {
            return Json(GetOrders().ToDataSourceResult(request));
        }
 private List<SelectListItem> GetOrders()
        {
            var list = new List<SelectListItem>();
            list.Add(new SelectListItem() { Text = "Item 1", Value = "1" });
            list.Add(new SelectListItem() { Text = "Item 2", Value = "2" });

            return list;
        }
Tsvetomir
Telerik team
 answered on 10 Nov 2021
1 answer
1.3K+ views

This question is what I faced when I'm trying to build CRUD with Grid,
I got multiple grids in one view, and each grid shows different infos depends on the model,
I'll use a simple model as example:
Model1:

public class Model1
    {
        public string Name { get; set; }
        public int Age { get; set; }
    }

What Ive tried already, I can pass Model1 with IQueryable data to view like below when there is only one model

 public IActionResult Data_Read([DataSourceRequest] DataSourceRequest request)
        {   
               IQueryable<Model1> datas = Model1 that I Queried
               DataSourceResult dataresult = datas.ToDataSourceResult(request);
               return Json(dataresult);
        }
The question is how can I pass multiple models with one view model,
I'm guessing the view model would be something like this: 

public class MultipleModelViewModel { public IQueryable<Model1> Model1 { get; set; } public IQueryable<Model2> Model2 { get; set; }

}

But when I tried to do as what I imagined,
I was not able to use the extension method ".ToDataSourceResult(request)" with a View Model

public IActionResult Data_Read([DataSourceRequest] DataSourceRequest request) { IQueryable<Model1> datas = Model1 that I Queried
MultipleModelViewModel.Model1 = datas;


//can't use the ".ToDataSourceResult" extension method with the ViewModel
DataSourceResult dataresult = MultipleModelViewModel.ToDataSourceResult(request);
return Json(dataresult); }


The other thing I'm assuming is, this view model should be work via CRUD operations,
since the grid is counting on the view model to bind the datas,
and so I'm guessing that when client creates a row of data, 
the new data should be passed back to the "Create" action via the view model,
Dont know if I am right,
Can anyone help?

Aleksandar
Telerik team
 answered on 10 Nov 2021
1 answer
212 views

Hi,

Upgrading to Kendo UI v2021.3.914 dialog titles are now truncated to half the dialog width.

As per here: https://netcorerepl.telerik.com/cvPPafaS01WpoJLM05   where the only change is the title. 

Is there a workaround for this?

thanks

Rod

 

Alexander
Telerik team
 answered on 09 Nov 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?