Hi,
is there a way to show the unit during editing in the NumericTextBox.
Right now the behavior is like this:
The desired behavior would be that the EUR would be showing up already in the editing mode.
Regards
Martin
We're currently experiencing issues with the Telerik NuGet Server (https://nuget.telerik.com/nuget).
We are working to resolve those as soon as possible. Please follow this thread for updates.
Apologies for the inconvenience.
Good afternoon,
I have a yearly dashboard where I have set up a slightly complicated scenario using several MVC Core components.
When you select a year from the dropdown it forces each of the charts/grids to read the data based on the selected year. The 'Yearly Activity' tab is the default tab and works nicely. I have a few pie charts and a bar chart on one tab which are arranged using the TileLayout - this allows them to be resized and dragged. It looks like this:
On the second tab "Monthly Activity by Operator" there is a kendo grid which displays aggregated data based on the selected year. However, when I click on the second tab and change the year in the dropdown, then click back on the first tab, the bar and pie chart have updated correctly data-wise but have not resized correctly in layout - they appear zoomed in:
I've tried making them resize if I click on the 'Yearly Activity' tab:
function tabSelect(e) {
var tab = $(e.item).find("> .k-link").text();
if (tab == "Yearly Activity") {
kendo.resize($(".k-grid, .k-chart"));
}
}
I also have these functions, which are almost exactly as written in the demos:
$(document).ready(function () {
kendo.resize($(".k-grid, .k-chart"));
});
function onTileResize(e) {
if (e.container) {
// for widgets that do not auto resize
// https://docs.telerik.com/kendo-ui/styles-and-layout/using-kendo-in-responsive-web-pages
kendo.resize(e.container, true);
$(document).bind("kendo:skinChange", updateTheme);
}
}
function updateTheme() {
var charts = $(".k-chart");
$.each(charts, function (i, elem) {
var theme = kendoTheme;
if (/(default-|bootstrap-|material-|classic-)/.test(kendoTheme)) {
theme = "sass";
}
$(elem).getKendoChart().setOptions({ theme: theme });
});
}
$(window).on("resize", function () {
kendo.resize($(".k-card-body"));
});
How can I get the charts to resize themselves correctly, as if I was on the first tab when I changed the year?
Kind regards,
Richard
Afternoon,
Is there a way to display a formatted date in a readonly TextBox on a kendo form without using a DateTimePicker as below?
items.Add()
.Field(f => f.Datelastedited)
.Label(l => l.Text("Date Last Edited:"))
.Editor(e => e.DateTimePicker()
.HtmlAttributes(new { style = "width: 100%", title = "datetimepicker" })
.Format("{0:dd/MM/yyyy HH:mm:ss tt}"))
.InputHtmlAttributes(new { @readonly = "readonly" });
I want the TextBox to be readonly so I don't need the ability to change the value, or display the buttons to set the time or date elements.
A NumericTextBox has a Format method, but the TestBox doesn't.
Kind regards,
Richard
I'm trying to implement a double click event on kendo grid row which would open a kendo window and the content is called making an ajax call based on the row data. The content gets it's data from a view. It works for the first time but when I close the window using out-of-the box window close button and select the same row or another row, the double click doesn't work. I want client to have option to get out of window/form and switch the row and double click it. Developer Tools shows the following error when dblclick is attempted second time or on subsequent attempts. ""dataitem" uncaught typeerror cannot read property of undefined (reading 'dataitem') at HTMLTableRowElement.
"Below is a code snippet.
//grid
@(Html.Kendo().Grid(Model)
.Name("mygrid")I'm having an issue where I have some code that opens an existing Excel file, adds some data then saves the file. When this runs all the charts in the original Excel file disappear.
I have tested it and even if I just open the Excel file and save it without making any changes the charts are gone.
I can't upload Excel files here but I have attached a screenshot of the before / after.
Example code
var xlsxFormatProvider = new XlsxFormatProvider();
// Import
using Stream input = new FileStream("c:\\tmp\\Charts.xlsx", FileMode.Open);
var workbook = xlsxFormatProvider.Import(input);
// Export
using Stream output = new FileStream("c:\\tmp\\Charts_Edited.xlsx", FileMode.Create);
xlsxFormatProvider.Export(workbook, output);
Thanks,
Richard
The scenario what I am trying to achieve:
For example,
I got a "product" model with totally 7 properties,
and in the grid I'm only showing 4 properties,
say showing "ProductId", "ProductName", "SupplierId", "CategoryId"
public product { public int ProductId { get; set; } public string ProductName { get; set; } public int? SupplierId { get; set; } public int? CategoryId { get; set; } public string QuantityPerUnit { get; set; } public decimal? UnitPrice { get; set; } public short? UnitsInStock { get; set; } }
I'm new to ASP Core Grid component. I need to build a custom detail template. It has a child grid with its own data source. But it also have some info above the child grid. I started with the 'Grid and Menu' Visual Studio project template and removed unnecessary code. I've attached the UI screenshot and copied the content of Index.cshtml below. I have the following questions:
Any pointers are greatly appreciated.
Thank you!
Index.cshtml:
@{
Hi, all
theme: kendo.bootstrap-v4.min.css
header in DatePicker is not correct colored. Text is white on light gray background. In 2021.3.914 the same problem too.