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

Is there a guide for creating a Asp.Net core application on Mac OS X using kendo.ui for asp.net core ?

Or just using OS Windows and IDE VisualStudio ? 

Ianko
Telerik team
 answered on 14 Feb 2019
15 answers
284 views
Hello,
I'm new to Telerik and I'm trying to run your Scheduler demo for Core in my Visual Studio 2017. I installed Telerik.UI.for.AspNet.Core(2019.1.115) in my VS 2016.
But when I copy the code from your demo I get an error in: @(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel>()

Under Kendo.Mvc.Examples it cannot find "Models". Did the dll changed? How can I get to Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel ?
Marin Bratanov
Telerik team
 answered on 13 Feb 2019
4 answers
1.5K+ views
I am using a DateTime column with filterable options enabled. When I apply a filter on this column, the request.Filters has a valid DateTime but it is applying an incompatible format when it calls SQL Server. Here is my code:

    public async Task<JsonResult> OnGetDataAsync([DataSourceRequest]DataSourceRequest request, CustomFilterModel customFilters)
    {
        IQueryable<DAL.Product> products = this.productService.GetByCriteria(customFilters);

        JsonSerializerSettings jsonSettings = new JsonSerializerSettings()
        {
            ContractResolver = new DefaultContractResolver()
        };

        return new JsonResult(await products.ToDataSourceResultAsync(request), jsonSettings);
    }

This is what EF generates: (abbreviated for clarity)

    SELECT ....
    WHERE [p].[DateAdded] <= '2018-10-01T00:00:00.0000000'

**Error:** System.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting date and/or time from character string.

Basically, the generated SQL query does not work when I run it directly in SMMS. It only works if I convert the date to **'2018-10-01T00:00:00'**

Tech stack: .NET Core 2.2, Razor Pages, Kendo 2018.3.911, SQL 2018
Paito
Top achievements
Rank 2
 answered on 13 Feb 2019
6 answers
73 views

I have two auto completes working on the main page of this application.  One on the header and one that appears when the user resizes the browser down to a smaller screen width/

Both use the same controller ajax action.  It seems the first time the user types in the values it take about 5 seconds to render matches.  And subsequent searches are instant.  

Is there a way to optimize that so that that first search is instant?  Please note that the dataset is large.  Over 10,000 products.  But that data is cached in .NET Core at application startup so it is not hitting the database again on each search or a web service, rather reading from the same cached list.  And that list is optimized to contain only two fields, the product name and primary key.

Is there a way to pre-read the data for the list to make it faster?

 

Thanks

Konstantin Dikov
Telerik team
 answered on 13 Feb 2019
3 answers
480 views

Wanting to add tooltips to column headers on the grid.

Trying:

$(document).ready(function () {
    //grid header tooltip
    $('thead [data-title]').kendoTooltip({
        content: function (e) {
            return $(e.target).text();
        },
    });
})

 

Seems to work except there appears to be spurious tooltips.  Please see attached 1.png and 2.png.

These appear to be from title attributes from within child elements.  Please see 3.png and 4.png.

In the case of 3.png the title="" attribute appears to be dynamically added.

Would like to remove the empty title="" tooltip and convert the column menu tooltip due to title="Column Menu" to be of kendoTooltip as well (preferably using single initialization step).

 

 

Edward
Top achievements
Rank 1
 answered on 12 Feb 2019
2 answers
469 views

     Hi;

I'm newbie to core and trying progress controls. I'm using razor pages and i couldn't find any sample about selecteditemchanged event usage for filling other controls from db. 

Is it possible to give a short sample? If filling can be done serverside will be more happy :) 

 

Thanks

Alper
Top achievements
Rank 1
 answered on 12 Feb 2019
1 answer
283 views

How do you remove the "Add Task" button?  My Gantt chart is completely driven from database values, so I don't want my users to be able to add tasks to the Gantt, they only need to see schedule.

Thanks

Ken

Marin Bratanov
Telerik team
 answered on 11 Feb 2019
1 answer
128 views

Hi,

I want to develop an editable grid using kendo in Asp.net core 2.

I am trying to install nuget package kendo grid in asp.net core 2

Kendo.MVC.UI

Kendo.MVC

 

However i am not able to get the through.

I am getting following version conflict.

Package Kendo.Mvc 2016.1.112 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package Kendo.Mvc 2016.1.112 supports:

 

Can you please help me with some demo version if its available.

 

 

 

Alex Hajigeorgieva
Telerik team
 answered on 11 Feb 2019
2 answers
105 views

     Good morning,

 

I'm working on an web application and I was wondering the best way to go about initializing a prefiltered grid. Users see a flowchart of different statuses of a product, if they click on one of the statuses I would like it to go to the grid that I have with the status column filtered with the status that they selected.

 

I thought the best way to do this would be to create a separate method in the controller for each status, but that seemed a little clunky. 

 

I currently have the status column as 

columns.Bound(c => c.Status).Width(150)
                       .Title("Status")
                          .Filterable(filterable => filterable
                                  .Cell(cell => cell
                                      .ShowOperators(false)
                                      .InputWidth(150)
                                      .Operator("contains")
                                      .SuggestionOperator(FilterType.Contains)
                                      .Template("statusFilter")
                                  )
                              );

 

function statusFilter (element) {
            element.element.kendoDropDownList({
                dataSource: {
                    dataType: "json",
                    transport: {
                        read: "@Url.Action("Status_Filter", "Controller")"
                    }
                },
                optionLabel: "--Select Status--"
            });
        }

 

Would I need to change how I have my filtering? Would you know how to do this?

 

Bradley
Top achievements
Rank 1
 answered on 11 Feb 2019
3 answers
380 views

Basic sample from https://demos.telerik.com/aspnet-core/autocomplete/index displays this in chrome console:

VM591:1 Uncaught TypeError: jQuery(...).kendoAutoComplete is not a function

....

 

Kendo UI is working fine for every control except autocomplete.  There are multiple controls on this page besides the autocomplete..  Even the basic asp.net core demos do not work at all.  What extra configuration steps are needed to actually get this to work?  I also noticed that much of the samples have big chunks of code missing, such as the virtualization demo. 

 

 

Nencho
Telerik team
 answered on 11 Feb 2019
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?