Hi,
is it possible to have a standalone column-chooser in ASP.Net Core Telerik UI, like shown here in Angular UI?:
https://www.telerik.com/kendo-angular-ui/components/grid/columns/menu/#toc-standalone-column-chooser
Hi,
is it possible to change order of column menu items?
By default menu items are like this:
1. Sorting
2. Columns show/hide
3. Filtering
I would like to change that ordering to (for example):
1. Filter
2. Columns
3. Sort ascending
4. Sort descending
I have a grid similar to this where the first column is a label and the other columns are years.
2020 2021
Apps 2,000 3,000
Orgs 3,000 7,000
Total 5,000 10,000
% Chg 50%
I would like for the numbers to be formatted as they are above. That is, in all of the rows except the last one numbers are formatted with comma separators, and in the last row numbers are formatted with a trailing %.
Is there a way to conditionally format the numbers depending on the row?
Thanks,
Tim
Hi,
I'm working on develop web application using MVC Core (razor). One of the view will have column with running total from previous row (see picture below) . I try to use Kendo Grid (GridEditMode.InCell) to do the job and write some codes to save to database but I cannot get amount from previous row to display. The first row the users enter the number to start and the row after that will need to get the amount from previous pulse the number from column b, c, d.
Do you have any recommendation what is the better tools or widgets to use to handle all these requirement? Thank you.
Hello
I'd like to keep the popup of a FloatingActionButton open after clicking one of the items.
The function preventDefault() is not available for the click event of the items.
Thanks and best regards,
Christine
Hello,
I've created an Index screen with a Grid, but I want to be able to fill and submit some search criteria before the Read action occurs, then use those values in the Action method on the controller. I've set auto-bind="false" for the Grid.
My Grid has a data source:
<kendo-datasource name="dataSource1" type="DataSourceTagHelperType.Ajax" server-operation="false" page-size="20">
<transport>
<read url="@Url.Action("TblPart_Read", "TblPart");" data="searchData" />
</transport>
</kendo-datasource>
function searchData() {
return {
search: $("#txtSearch").val(),
archived: $("#chArchived").prop('checked')
};
}
The searchData consists of textbox and checkbox values.
The controller action is as follows:
public async Task<ActionResult> TblPart_Read([DataSourceRequest] DataSourceRequest request)
{
var service = new TblPartService(_context);
// omitted, but this is where I will filter the result based on the searchData
return Json(result);
}
How do I:
Many thanks,
Richard
I used to work in ASP MVC, now I switched to ASP.NET Core, I connected all libraries and all elements.But 2 errors appear on startup:
1) Could not load content for https://localhost:44395/lib/kendo/js/kendo.all.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Could not load content for https://localhost:44395/lib/kendo/js/kendo.aspnetmvc.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
2) kendo is not defined
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - service</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2021.3.914/styles/kendo.bootstrap-v4.min.css" />
</head>
<body>
...................
<footer class="border-top footer text-muted">
<div class="container">
© 2021 - service - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
</div>
</footer>
@*<script src="~/lib/jquery/dist/jquery.min.js"></script>*@
<script src="~/lib/kendo/js/jquery.min.js"></script>
<script src="~/lib/kendo/js/kendo.all.min.js"></script>
<script src="~/lib/kendo/js/kendo.aspnetmvc.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
<script src="~/js/href.js" asp-append-version="true"></script>
@RenderSection("Scripts", required: false)
</body>
Startup.cs:
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<Context_new>(options =>
options.UseSqlServer(
Configuration.GetConnectionString("DefaultConnection")));
services.AddIdentity<LoginViewModel, IdentityRole>().AddEntityFrameworkStores<Context_new>();
services.AddRazorPages();
services.AddKendo();
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
});
services
.AddMvc(options => options.EnableEndpointRouting = false).SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());
}
control.cshtml:
@using MvcModels.Contains
@using Kendo.Mvc.UI
<div class="container text-center">
<div class="row">
<h5>Панель администратора</h5>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3">
@(Html.Kendo().PanelBar()
.Name("MenuAdmin")
.ExpandMode(PanelBarExpandMode.Single)
.Items(panelBar =>
{
panelBar.Add()
.Text(MainPage.Users);
panelBar.Add()
.Text(MainPage.Category);
panelBar.Add()
.Text(MainPage.Parameters).Enabled(true);
})
.Events(events => events.Select("menuSelectAdmin"))
//.SecurityTrimming(true)
)
</div>
I have a grid with a column that is a foreign key. I need to filter the column and to create a dropdown for it. Since the number of values is huge I need to use a dropdown with virtualization. Because of that I need to define a UI function. (I should mention that I have the columnmenu = true for the other case I know which field it is)
All of our javascript code must exist in a js file so the read function can not be set in it since the site can have variable url.
Is there a way to get to know for which field the function is called? I tried to look in the parent of the element sent but there is no information for which column the menu is created.
Hi,
I am trying to integrate kendoEditor into my application. Everything works correctly, even the upload mechanism. The Read action works correctly and returns the list of files and folders, but in the file display the name is incorrect as well as the path. Only "undefined" is displayed under each icon. The wrong icon is also displayed, a clear sign that the JSON returned by the Read does not reach its "destination" correctly.
I have created a project to test how the editor works out of the context of my application, but I still have this problem. I have attached the project to this post, along with an image showing the error message.
Thanks!
Sebastiano