Hello , i have an issue with converting the milliseconds to human readable date,
I cannot find the solution for vue, but I have found multiple solutions for jquery.
What am i doing wrong ?
I noticed in the jquery example, the have this : labels: {
template: "#= kendo.toString(new Date(value), 'HH:mm') #"
}
i have tried adding this code :
it does not work, any suggestions would be greatly appreciated. Thank you
Having problems when using the showColumn() hideColumn() function for grids:
Why does hideColumn() function on grid scrunch up the width when enabling it?
Then when I check the checkbox to hide the first row:
It seems to scrunch the other rows to the LEFT? You demo in the DOJO doesn't do this... I was wondering if this is because I am using a hierarchical grid?
function toggleEditing(e){
var hideColumn = $(e.target).prop("checked");
var grid = $("#grid").data("kendoGrid");
if(hideColumn){
grid.hideColumn(0);
}
else {
grid.showColumn(0);
}
}
See my Kendo UI Dojo code for behavior:
https://dojo.telerik.com/UmAgoDEs/2
Thanks!
George
I see the same issue on your pages
so my question is whether there is any way to prevent this, because when there are many columns, the last borders are seriously damaged as you can see:
I am using a kendoGrid bound to a SharePoint list. I am able to get the grid to work fine with pagination. The problem is that I am using large datasets so the query performance is slow due to returning the total record count. SharePoint provides a way to do paging without using a total record count. Queries return a "next" and "previous" page url (see screenshot below). I would rather use this method for the sake of performance. Is there a way to have a custom pager with just a next and previous button and set the click event of those buttons?
hello,
i want to use kendo to send data to a REST API. I get a 415 error. But i do not know what i have made wrong.
My test html looks like this:
<button id="button" type="button">Submit</button>
<script>
$("#button").kendoButton({
click: function (e) {
//alert(combobox.value);
//alert(e.event.target.tagName);
var dataSource = new kendo.data.DataSource({
transport: {
// make JSONP request to https://demos.telerik.com/kendo-ui/service/products/create
create: {
url: "https://localhost:7170/api/Kunden",
dataType: "json", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
type: "PUT"
},
parameterMap: function (data, type) {
if (type == "create") {
// send the created data items as the "models" service parameter encoded in JSON
return { models: kendo.stringify(data.models) };
}
}
},
schema: {
model: {
id: "kundenId", // the identifier of the model
fields: {
id: { editable: false, nullable: true },
}
}
}
});
// create a new data item
dataSource.add({ id: 4713 });
//dataSource.insert(0, { id: 4714 });
// save the created data item
dataSource.sync(); // server response is [{"ProductID":78,"ProductName":"New Product","UnitPrice":0,"UnitsInStock":0,"Discontinued":false}]
//dataSource.pushCreate([{ id: combobox.value }]);
}
});
</script>
My API controller looks like this. I want to use the method SetKunde.
namespace Api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class KundenController : ControllerBase
{
// GET: api/Kunden
[HttpGet]
public async Task<ActionResult<IEnumerable<Kunde>>> GetKundeItems()
{
//return await _context.KundeItems.ToListAsync();
DataAccess dataAccess = new DataAccess();
return dataAccess.GetKunden();
}
// GET: api/Kunden/5
[HttpGet("{id}")]
public async Task<ActionResult<Kunde>> GetKunde(long id)
{
//var kunde = await _context.KundeItems.FindAsync(id);
DataAccess dataAccess = new DataAccess();
Kunde kunde = dataAccess.GetKunde(id);
if (kunde == null)
{
return NotFound();
}
return kunde;
}
// PUT: api/Kunden/5
[HttpPut]
public async Task<ActionResult<Kunde>> SetKunde(KundeShort kdn)
{
return NotFound();
}
}
}