Telerik Forums
UI for ASP.NET Core Forum
3 answers
137 views

Hi, is there a way to specify using the .Net Core Dependency Injection container instead of constructing an entity directly by the Grid?

For instance, I would like to specify the interface of the Entity to request from the DI container as below:

@(Html.Kendo().Grid<IEntityInterface>()

When I click add new it throws an exception saying it cannot create an instance of the interface, which of course is correct, I would like it to request an instance from the DI container instead.

Is this possible?

Thanks!

Konstantin Dikov
Telerik team
 answered on 07 Sep 2018
2 answers
152 views

hi,

Are there any ways to group my data in kendo grid while making my date as a column. please see attached image as my sample data. thanks!

Enrico
Top achievements
Rank 1
 answered on 07 Sep 2018
2 answers
517 views

Hi, 

I need the selected node to expand on single click if the node has children.  I tried using the toggle() method on the selected node during the dropdowntree change event but have been unable to produce the desired result.

For your health,

Chad

Chad
Top achievements
Rank 1
 answered on 06 Sep 2018
2 answers
895 views

My application consists of a couple of pages of data populating a grid.  This data is made up of dirty data that needs to be cleaned up.  The user wants to see if we can populate the data and when the page renders, show the cells with bad data in them -- basically run the validation code for every cell of every row in the grid. .  My guess is that this would be cpu intensive and would need to occur on the databound event of the grid.  Is this even possible? 

 

Error Type Col1     Col2     Col3   Col4    Col5

Out of Range

Michael
Top achievements
Rank 1
 answered on 06 Sep 2018
6 answers
501 views

Hello. Is there a possibility to add a Title or Legend inside the @(Html.Kendo().RadialGauge() )? By trying .title or .legend nothing appears. In the demo's there arent titles nor legends. 

 

Regards.

Rumen
Telerik team
 answered on 05 Sep 2018
1 answer
291 views

Hello everyone,

 

I have a column in my grid which contains colors.

I would like to offer the possibility for the user to filter with a color palette, instead of typing the hexadecimal value.

 

I found an example close to what I want in javascript, but I don't know how to use Kendo Color Palette instead of Color Picker :     

https://dojo.telerik.com/inawEYOH

 

Do you know how to do this in the MVC core way (using Razor) ?

 

Regards,

Christophe.

Viktor Tachev
Telerik team
 answered on 05 Sep 2018
1 answer
1.1K+ views

Hello,
I want to ask if it is supported in Kendo for ASP.NET Core, multi-select as EditorTemplate for a column in grid?

I've try it but it doesn't work like in MVC 5.

Alex Hajigeorgieva
Telerik team
 answered on 05 Sep 2018
2 answers
100 views

Hello,

I am wondering if there is a possibilty to create a `static` stacked bar.So I can put multiple Y values in the bar

Chili
Top achievements
Rank 1
 answered on 04 Sep 2018
2 answers
323 views

I have a zoomable chart with a datetime category axis.The ChartAxisBaseUnit is set to Fit.

I can zoom until I reached the milliseconds unit.

Can I limit the Max and Min Base Unit, so I can only zoom between Unit Year and Day?

 

01.@(Html.Kendo().Chart(Model.Stats.Items)
02.        .Name("temperaturechart")
03.        .Title(title => title
04.            .Text("Temperature")
05.            .Visible(true)
06.            .Position(ChartTitlePosition.Top))
07.        .Legend(legend => legend
08.            .Visible(true)
09.            .Position(ChartLegendPosition.Bottom)
10.        )
11.        .ChartArea(chart => chart
12.            .Background("transparent")
13.        )
14.        .Series(series =>
15.        {
16.            series
17.                .Line(model => model.Temperature, categoryExpression: model => model.Date)
18.                .Aggregate(ChartSeriesAggregate.Avg)
19.                .Name("Temperature");
20.        })
21.        .ValueAxis(axis => axis.Labels(label => label.Format("{0:0} °C")))
22.        .CategoryAxis(axis => axis
23.            .Date()
24.            .Labels(x => x.Rotation(310))
25.            .BaseUnit(ChartAxisBaseUnit.Fit)
26.        )
27.        .Tooltip(tooltip => tooltip
28.            .Visible(true)
29.            .Format("{0:0.0} °C")
30.        )
31.        .Pannable(pannable => pannable
32.            .Lock(ChartAxisLock.Y)
33.        )
34.        .Zoomable(zoomable => zoomable
35.            .Mousewheel(mousewheel => mousewheel.Lock(ChartAxisLock.Y))
36.            .Selection(selection => selection.Lock(ChartAxisLock.Y))
37.        )
38.)

 

Thanks,

Alex

Alexander
Top achievements
Rank 1
 answered on 04 Sep 2018
1 answer
179 views

I'm trying to use an AutoComplete component in the popup editor window for a grid.

Here's the grid code:

@(Html.Kendo().Grid<Contract>(Model.Contracts)
    .Name("contractGrid")
    .Columns(columns =>
    {
        columns.Bound(model => model.Name);
        columns.Bound(model => model.StartDate).EditorTemplateName("_DatePicker").Format("{0:dd MMM yyyy}");
        columns.ForeignKey(model => model.WithdrawalReasonId, Model.AllWithdrawalReasons, "Id", "Value");
        columns.Bound(model => model.Country).EditorTemplateName("_AutoComplete");
        columns.Command(command =>
        {
            command.Edit();
        }).Width(172);
    })
    .Events(e => e.DataBound("contractGridEdit"))
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => editable.Mode(GridEditMode.PopUp))
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(20)
        .ServerOperation(false)
        .Model(model =>
        {
            model.Id(p => p.Id);
            model.Field(p => p.ClinicianId).Editable(false).DefaultValue(Model.Id);
        })
        .Create(update => update.Action("ContractCreateAndEdit", "Clinician").AddRequestVerificationTokenData())
        .Update(update => update.Action("ContractCreateAndEdit", "Clinician").AddRequestVerificationTokenData())
    )
)

 

Here's the AutoComplete editor template (_AutoComplete.cshtml):

@using Kendo.Mvc.UI
@model object
 
@(Html.Kendo().AutoComplete()
    .Name("Country")
    .Filter("startswith")
    .MinLength(3)
    .BindTo(new string[] {
        "Albania",
        "Andorra",
        "Armenia",
        "Austria",
        "Azerbaijan",
        "Belarus",
        "Belgium" }
    )
)

 

I've tried various options for the name of theAutoComplete control but cannot get it to render in the grid popup. What am I missing?

Thanks,
Stuart.

Eyup
Telerik team
 answered on 03 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?