Is there a nuget package for ASP.NET MVC that excludes the client-side resources? Due to my dev machine setup, source control bindings and other factors, it takes a very long time to update the kendo Content & Script files any time I update the Kendo nuget package. Having a nuget package for ASP.NET MVC without client side resources (in the same way as the ASP.NET Core package) would help greatly. Even if it's just steps that I can take to create a custom package from an existing release that removes the files in question.
Thanks
I have a Kendo Grid MVC with columns that need to get their unique list of multi-filter values from the server. So, I am trying to call an MVC controller method passing the field name and a set of filters.
columns.Bound(c => c.SalesRepName)
.Filterable(ftb => ftb.Multi(true).Search(true).DataSource(ds => ds.Custom().Transport(t => t.Read(r => r.ContentType("application/json").DataType("json").Type(HttpVerbs.Post).Action("Portfolio_Read_Filter", "Contract").Data("() => getGridFilterParameters('SalesRepName', 'portfolioGrid')")))));
No matter what I do, the datasource sends the request parameters as form instead of sending the parameters as json.
How to force Kendo dataSource to send request parameters as JSON?
Thank you for you help!
I am currently implementing Kendo UI for ASP.Net MVC.
My application has detected a vulnerability with the latest version of JQuery so there is no version to move to to resolve this vulnerability.
As Kendo comes with JQuery in the package is there work on-going to work with the JQuery community to fix this issue?
1.
public
ActionResult GetCompanyDetails([DataSourceRequest] DataSourceRequest request)
2.
{
3.
var companyDetails = BusinessLayer.GetCompaniesDetail();
4.
return
Json(companyDetails.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
5.
}
Hi,
we recently updated out project from Telerik 2019 to Telerik 2022.
Now our grids behave differently (without error) when we use getOptions() and setOptions() to keep the grids state; the column headers seem to change.
Here is a column header before we restore the state:
<th class="k-header" data-field="Prioritaet" data-index="6" data-title="Priorität" id="03b46289-2aba-487e-ba2e-e4aa67dae464" scope="col" data-role="columnsorter"><a class="k-link" href="/inoTerminal/Fremdpanzer/Read?fremdpanzerTable-sort=Prioritaet-asc">Priorität</a></th>
Here is a the same column header after we restore the state:
<th scope="col" role="columnheader" data-field="Prioritaet" rowspan="1" data-title="Priorität" data-index="6" headers="undefined" id="03b46289-2aba-487e-ba2e-e4aa67dae464" class="k-header" data-role="columnsorter"><span class="k-cell-inner"><span class="k-link"><span class="k-column-title">Priorität</span></span></span></th>
Visibly this produces these results:
Before:
After:
Otherwise the functionality seems to be the same.
We're using the MVC-Helpers to generate the grid...
Update:
To clarify, the difference in visible style comes through the css we implemented for the headers:
.k-grid-header th.k-header > .k-link {
font-weight: bold;
color: #2fa4e7;
height: auto;
}
After restoring the grid state the hierarchy of elements in the headers has changed. And because we use the direct child selector (>), the styles are not applied anymore. We solved this now by omitting the direct child selector.
So the issue is not a severe one, but I'm still curious if it is expected behaviour, that the header markup changes after getOptions/setOptions?
I have an existing grid which works fine.
Now I need to introduce a dropdown in toolbar for filtering in a column.
The column in question already has filtering implemented. However the client requires a dropdown in toolbar for ease of use as there are many columns and have scroll horizontally each time.
In short this dropdown has to do exactly what a column filter does, but it should be placed in toolbar along with search bar.
Is this possible? how to implement it?
How do I get the encrypted credentials for my account?
And how do I make it work?
Previously one guy tried to do it and failed, so now I'm going in for a new attempt. Clean slate.
This is what the config looks like right now (without username and password) :
<?xml version="1.0" encoding="utf-8"?>I have a number of grids that use the Endless scroll with the scrollable height set to 500 (see helper code below) with a default page size of 10. Sometimes the vertical scollbar doesn't appear on the grid even though it indicates that there are more records then are being shown (pages).
If i set the height to something else, for instance 472 it seems to show the scroll bar, but i am worried this is driven by the size of the rows and won't be durable.
public static GridBuilder<T> EndlessScrollDefault<T>(this GridBuilder<T> gridBuilder, string emptyMsg = "There are no records to show.", int? height = 500) where T : class
{
var rVal = gridBuilder.Pageable(page =>
{
page.Enabled(true);
page.PageSizes(false);
page.Input(false);
page.Numeric(false);
page.PreviousNext(false);
page.Refresh(true);
page.Messages(message => message.Empty(emptyMsg));
})
.Scrollable(s => s.Endless(true));
if (height != null)
{
rVal = rVal.Scrollable(s => s.Height(height.Value));
}
return rVal;
}
how to set NumericTextBox format dynamically like below. I tried this but its not working.
var dynamicValue = "###,###.000";
@(Html.Kendo().NumericTextBox<double>()
.Name("Amount")
.Spinners(false).Format("dynamicValue")
.Decimals(3)
.HtmlAttributes(new { style = "width: 100%; height: 27px;", tabindex = "6" })
.Events(e => e.Change("OnAmountChange"))
)
dynamicValue is set as the response of GET API call.