1. Is it hard to understand the version numbers of our releases? If yes, what makes them hard to understand them?
2. Would semantic versioning (SemVer) of our releases make it easier to understand our version numbers and what's behind them?
3. If we go with SemVer, we might need to start with version 3000.0.0 as we currently use 2022.x.x. Please share your thoughts about this approach and ideas for what number versioning would work best for you.
In my MVC Kendo-Grid web app, I need to periodically see if certain data in the underlying database has expired. If it has, then I modify the data in the database and the normal "refresh" cycle of the Grid updates the displayed data. So, here is my server-side method, contained in my GridController.cs (from the "Controller" part of MVC), abridged:
namespace WireDashboard2.Controllers
{
public partial class GridController : Controller
{
....
[System.Web.Services.WebMethod]
public static void ReviewSuspensions()
{
... do some database stuff ....
}
....
}
And here is the client-side JavaScript method that is supposed to be calling GridController.ReviewSuspensions() method:
function Check4ExpiredSuspensions() {
$.ajax({
url: '@Url.Action("GridController", "ReviewSuspensions")',
success: function() {
alert("Reviewed Suspensions successfully!");
},
error: function() {
alert('Did NOT review Suspensions successfully.');
}
}); // GET http://localhost:63794/GridController/ReviewSuspensions 404 (Not Found)
}
I know the "Check4ExpiredSuspensions() JavaScript is being called on the client-side, because it is attempting to invoke the method, resulting in a 404 (Not Found) error being returned. That JavaScript function is from the WireDashbard2\Views\Home\Index.cshtml file (the "View" part of MVC).
I've tried literally a dozen modifications of the Client-Side and Server-Side (based on lots of different methods found online), and it never hits a breakpoint in the server-side method. Most of those methods look like FM to me because I don't have a good handle on the mapping between the "web" reference to the GridController and Check4Suspensions() method as viewed from the client side - so I am mostly just trying to match up from examples.
I inherited the web app, and it is a combination of Microsoft C# Windows web application now using .NET 4.6.2, Entity Framework 6.x, JQuery 3, Kendo UI for JQuery MVC 2024.1.319, running (in Prod) under WIndows Server 2016 Standard and IIS, so there seems to be plenty of potential for difficult interactions! Problem occurs using both Chrome and Edge (no surprise really there, same engine in both).
Thanks!
We are using the below .dlls as standalone .dlls (Not from Nuget package installation) In a .Net Framework Web Forms Application
We want to migrate/upgrade to .Net framework 4.8
Are these Dlls backwards compatible or should i use new versions of these dlls that will be compatible with .Net Framework 4.8?
Thanks!
Asp.net mvc kendo rating control shwoing 1 star by default even though value is zero
This code is integrated in kendo grid
below is the code
columns.Bound(p => p.Rating).Title("Rating").Editable("returnFalse")Kendo UI for JQuery MVC 2024.1.319 upgraded in WebApp to .NET 4.6.2. Runs fine in VS 2019, but when deployed to web server, the, the Date and Time pickers don't appear when editing a Grid cell DateTime field, instead it just has a text box with the likes of "Wed May 08 2024 01:30:00 GMT-0400 (Eastern Daylight Time)". I've compared the Dev build (which works) to the Production deployment, and all the files match up. Which suggests that something is out of date or missing. Not seeing any errors in the Developer's Tools' Console (other than some cookies being blocked, which sounds unrelated).
Kendo.MVC.resource.dll (Kendo.MVC.Web) shows version 2024.1.319.545 with in the Bin folder under IIS, so it seems like at least that much is what is expected - could I have ended up with a mixed bag of Kendo libraries or scripts? How would I tell?
I am new to Kendo UI, so this may be a pretty obvious thing, but I've just about exhausted the obvious and simple things I can think of to check!
Thanks in advance!!
In my cshtml view, I have this kendo mvc grid control below.
@(Html.Kendo().Grid<MyModel>()
.Name("mygriddata")
.Columns(column =>
{
column.Bound(model => model.MyData).Title("No.").....
})
.Pageable(x => x.PageSizes(true).ButtonCount(3).Responsive(false))
.AutoBind(false)
.Filterable()
.Sortable(x => x.Enabled(true))
.Resizable(resizable => resizable.Columns(true))
.Scrollable(x => x.Height("auto"))
.PersistSelection()
.HtmlAttributes(new { style = "height: 50vh; margin-left:10px", @class = "form-group" })
.NoRecords()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(true)
.Model(model =>
{
model.Id(item => item.ID);
})
.Read(read => read.Action("MyActionMethod", "MyController"))
)
)
In in my controller, I have this async task action method.
public async Task<JsonResult> MyActionMethod([DataSourceRequest] DataSourceRequest request)
{
var data = await _service.GetData();
var model = data.Select((item, index) => new MyModel
{
MyData = ......
});
return new JsonResult { Data = model.ToDataSourceResultAsync(request), MaxJsonLength = int.MaxValue, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
}
Then, when accessing the view, I got this error. How to set up the Kendo mvc grid control in this case?
Message: The asynchronous action method 'MyActionMethod' returns a Task, which cannot be executed synchronously.
I am trying to update my spreadsheet based on the jsonData i get from my controller.
Controller data:
public ActionResult GetDoubleCombinations(Telerik.Web.Spreadsheet.Workbook jsonData, int id) { foreach (var sheet in jsonData.Sheets) { var columnCount = sheet.Columns.Count; var rowCount = sheet.Rows.Count; for (int i = 2; i < columnCount; i++) { var expressionTop = expressionService.GetExpressionByName(sheet.Rows[1].Cells[i].Value.ToString(), id); var parameterTop = expressionTop.FK_ParameterID; for (int j = 2; j < rowCount; j++) { var expressionLeft = expressionService.GetExpressionByName(sheet.Rows[j].Cells[1].Value.ToString(), id); var parameterLeft = expressionLeft.FK_ParameterID; if (parameterTop == parameterLeft) { var position = sheet.Rows[i].Cells[j]; position.Enable = false; position.Background = "#d3d3d3"; } } } } return Json(new { success = true, data = jsonData }); }
this is what i get in my view:
function getDoubleCombinations() { var spreadsheet = $("#matrix").data("kendoSpreadsheet"); const urlParams = new URLSearchParams(window.location.search); const id = urlParams.get('analysisId'); $.ajax({ url: "@Url.Action("GetDoubleCombinations", "Matrix")", data: JSON.stringify({ jsonData: spreadsheet.toJSON(), id: id }), contentType: "application/json", type: "POST", success: function (response) { spreadsheet.fromJSON(response.data); }, error: function () { alert("Error loading data."); } }); }
I use "spreadsheet.fromJSON" to update my spreadsheet.
My spreadsheet:
@model Telerik.Web.Spreadsheet.Workbook @(Html.Kendo().Spreadsheet() .Name("matrix") .HtmlAttributes(new { style = "width:100%" }) .BindTo(Model) .Toolbar(t => { t.Home(h => { h.Clear(); h.ExportAs(); }); t.Data(false); t.Insert(false); }) )
My problem is, that the spreadsheet is not updated.
In the attachement i have a screenshot of my jsonData.
Hi,
After update from 2023.3.718 to 2024.1.319 I could no longer see icons. I understand that there has been a switch to svg icons.
I use icons like this in grid columns
columns.Bound(p => p.Id).ClientTemplate("" +
"<a href='" + @Url.Action("Details", "Orders", new { id = "#=Id#" }) + "'target='_blank' '><i title ='Show details' class='k-icon k-i-detail-section'></i></a>")
Could you please modify code above so I can understand how to use svg icons instead?
/Br. Anders
Is there a way to determine what kind of kind of control you have using JavaScript. For example , if you have a form with several different kendo controls
.data("kendoNumericTextBox")
.data("kendoComboBox")
.data("kendoButton")
I only have the name and id of the control. Is there a way to determine what kind of kendo control that is represented.
I have tried looking through the jquery selection but I do not see any thing that indicates whether the selection is a kendoNumericTextBox, kendoComboBox etc...
I have a Kendo tabstrip with partial views. When I click on the tab, the partial views are loaded. But I need to set the focus() and/or tabindex to a specific element in the partial view, for example the first text box. I tried setting the tabindex to 1 in the partial view. But that does Not seem to work.
There seems to be 2 TabStrip methods for loading a partial views ?
.LoadContentFrom("CustomerEdit"
... and .Content(@<text> @Html.Partial("OrdersEdit"
I think the LoadContentFrom is Ajax.
Using Content(@<text> @Html.Partial("OrdersEdit
"**... how can I set the focus to my first textbox on the the OrdersEdit.. I tried setting tabindex =1 and tried this:
$(document).ready(function () {
$('#firstTextBox').focus();
}
But does not work.