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

I have no issue getting the value from the cell using:

funciton onSelect(arg) {

var cellvalue = arg.range.value();

}

Do you have documentation on how to get the selected column and row index?

Veselin Tsvetanov
Telerik team
 answered on 02 Feb 2018
2 answers
139 views

When mapping a date file as grid column, it's not being transformed into a DatePicker.
This doesn't happen with Edge, Chrome or the latest Firefox, I'm only experiencing this with the ESR version of Firefox.

Example:  

@(Html.Kendo().Grid<HuntingReportModel>()
        .Name("test")
        .Columns(x => x.Bound(y => y.Date))
    .ToolBar(x => x.Create()))

See attachment for the resulting control...

using jquery ui without the wrappers it works.

manually calling .kendoDatePicker helps but it's really just a bad workaround...

Browser: Firefox ESR (52.5.3 & 52.6.0)

Kendo: 2018.1.117


Stefan
Telerik team
 answered on 01 Feb 2018
1 answer
209 views
Please guide me to disable both weekends and holidays in calendar widget
Viktor Tachev
Telerik team
 answered on 31 Jan 2018
1 answer
457 views

Hello!  

I'm using the grid to display some LastUpdateDate which is saved as UTC in the database. I want to display this dates to the user in the local browser time zone in "g" general format based in the user settings. ex: "1/26/2018 14:15 PM". 

 

Date in the database: "2018-01-26 17:15:13.130" UTC

Local time in which the data was saved "2018-01-26 14:15:13" my local time 

What the grid displays: "1/26/2018 5:15 PM" Wrong!

 

Thanks in advance!

Stefan
Telerik team
 answered on 31 Jan 2018
1 answer
190 views

Hi,

I have .net core application and i want use React.js with kendo Core UI, is there any possibility to follow this and please provide any sample

krds

lakmal

 

 

 

Stefan
Telerik team
 answered on 29 Jan 2018
2 answers
273 views

Hi,

 

I wanted to try and install the 2018 release trial of Telerik for Asp.net Core from nuget, however the only version that is listed is

Telerik.UI.for.AspNet.Core.Trial 2017.3.1026

Is it missing from the private nuget feed ?

 

I used https://nuget.telerik.com/nuget as my nuget feed.

 

Thank you

 

Stephane
Top achievements
Rank 1
 answered on 24 Jan 2018
1 answer
415 views

Hello,

Isn't it possible to use a Kendo DropDownList in the Grid EditTemplate and pass the Parameter for the Dropdown with the Kendo Template Syntax like this: new {mitgliedid = "#: Mitglied_ID #"}

Here a example:

@(Html.Kendo().DropDownList()
      .Name("products")
      .DataTextField("ProductName")
      .DataValueField("ProductID")
      .DataSource(dataSource => { dataSource.Read(read => read.Action("Lookup", "Berechtigung", new {mitgliedid = "#: Mitglied_ID #"}))
          .ServerFiltering(true); })
          .ToClientTemplate()
      )

 

or is the only way to pass that parameter in the Grid Edit Event (e.model)?

robert

Konstantin Dikov
Telerik team
 answered on 23 Jan 2018
1 answer
152 views
How to create MultiSelectFor using taghelpers? Without this I am unale to post form with selected values.
Ianko
Telerik team
 answered on 23 Jan 2018
1 answer
764 views

I have Kendo grid that is configured for batch edit as per the demo. Instead of making 3 separate calls to server for Create, Update and Delete I am handling the SaveChange event of the grid to save all changes ( to maintain transaction)

 

var grid = $("#grid").getKendoGrid();
grid.bind("saveChanges", function (e) {       
    var data = grid.dataSource.data();
 
   // collect updated rows and new rows
    var items = $.grep(data, function (item) {
        return item.dirty || item.id === 0;
    })
 
    // collect deleted rows
    $.each(grid.dataSource._destroyed, function (index, item) {
        item.IsDeleted = true;
        items.push(item);
    })
 
    $.ajax({
        type: "POST",
        data: items,
        url: "save",
        contentType: "application/json; charset=utf-8",
        processData: true,
        cache: false,
    })
    .done(function (response, textStatus, jqXHR) {           
        // do something
    })
    .fail(function (jqXHR, textStatus, errorThrown) {
       // How do i inform datasource or grid about error
 
    })
 
})

 

If there is an error on server while saving changes, the datasource does not know about it. How do i inform datasource ( or trigger error in datasource) that the save operation is failed?

Right now if there is an Error during save, datasource does not know about it and datasource sets updated record's dirty property to false and also clears dataSource._destroyed collection. Beacuase of that if after error user clicks SaveChanges again, the above code will only find records with id  zero

Georgi
Telerik team
 answered on 23 Jan 2018
2 answers
1.1K+ views

Using ASP.NET Core 2.0 Razor Pages

Currently I have a cshtml page that renders a combo/dropdown

 

<select asp-for="DoctorPractice.DoctorId" class="form-control" asp-items="ViewBag.Doctors"></select>

the PageModel for the view contains some code to populate the ViewBag

 var doctors = _context.Doctors;
ViewData["DoctorId"] = new SelectList(doctors, "Id", "FullName");

 

This all works fine - however, now I wish to use the Telerik AutoComplete control because of it's nice features.

I tried this code below without success - i just get js errors.

 @(Html.Kendo().AutoComplete()
                  .Name("doctors")
                  .Filter("startswith")
                  .Placeholder("Select doctor...")
                  .BindTo(ViewBag.Doctors)
             )

Please can I have an example for Razor Pages using the AutoComplete control?

Thanks,

 

 

 

John
Top achievements
Rank 2
 answered on 21 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?