I am trying to start a Asp.Net.Core 3.1 core project. I used the default Grid based project template. That all went off without a hitch. The default template delivers a workable starting project.
I then attempted to add my first view. Right clicked on item, selected "add VIew". The system responds with the message: "There was an error running the selected code generator: The local source "C:\Program Files (x86)\Progress\Telerik UI for ASP.NET Core R3 2019\wrappers\aspnetcore\Binaries\AspNet.Core" does not exist.
The message is accurate as the referenced path does not exist. My system has Telerik UI for ASP.NET Core R1 2020 not the referenced R3 2019 folder.
To the best of my knowledge my project has no reference other than 2020 versions. Effectively I am blocked from adding a view via the "add View" option. If I knew where that reference was I might be able to correct things.
Anyone have any ideas on what I am forgetting to do? I have tried all the options, partial view, use or do not use layout pages, reference or do not reference script pages, no option works.
I have a external popup tempate that is called from a button on the grid.
@model CIPHRChecks.Models.Order;
<div class="k-content popup-content">
<text><input data-bind="value: Service.Name" /></text>
@foreach (var item in Model.Service.ServiceAdditionalData)
{
<p>@item.DisplayName</p>
}
</div>
When I run the page it fails to load the Kendo Grid and I get the jscript error "Unexpected "</body>" or end of file. All open elements should be closed before the end of the document." This happens with any reference to the Model.
There is nothing wrong with the data provided to the grid. It has the collection I want to iterate through. The intellisense for Model.Service.ServiceAdditionalData all works.
Am I not supposed to use 'Foreach with Kendo or reference the model in this way. Should I use some other method to iterate through the collection and reference the data.
Hi
this JsFiddle Demo change this javascript line ( if (event.keyCode == 13) ) to ( if (event.keyCode == 40) )
then changes does not made after pressing down key arrow on keyboard.
i need help.
Thanx
I get the following error in the browser console when exporting to excel from the ASP.NET core spreadsheet control. This only happens on certain spreadsheet files and I am not sure what is causing it. Is there a way to get a more detailed error message?
kendo.all.js:12691 Uncaught TypeError: Cannot read property 'target' of undefined
at kendo.all.js:12691
at Array.map (<anonymous>)
at init.drawingsXML (kendo.all.js:12685)
at o.toZIP (kendo.all.js:13063)
at o.toBlob (kendo.all.js:13159)
at r (kendo.all.js:136510)
at kendo.all.js:136498
at XMLHttpRequest.n.onload (kendo.all.js:135962)
(anonymous) @ kendo.all.js:12691
drawingsXML @ kendo.all.js:12685
toZIP @ kendo.all.js:13063
toBlob @ kendo.all.js:13159
r @ kendo.all.js:136510
(anonymous) @ kendo.all.js:136498
n.onload @ kendo.all.js:135962
kendo.all.js:12691 Uncaught TypeError: Cannot read property 'target' of undefined
at kendo.all.js:12691
at Array.map (<anonymous>)
at init.drawingsXML (kendo.all.js:12685)
at o.toZIP (kendo.all.js:13063)
at o.toBlob (kendo.all.js:13159)
at r (kendo.all.js:136510)
at kendo.all.js:136498
at XMLHttpRequest.n.onload (kendo.all.js:135962)
(anonymous) @ kendo.all.js:12691
drawingsXML @ kendo.all.js:12685
toZIP @ kendo.all.js:13063
toBlob @ kendo.all.js:13159
r @ kendo.all.js:136510
(anonymous) @ kendo.all.js:136498
n.onload @ kendo.all.js:135962
kendo grid In asp.net core project
how to Hide column DateResult
i have
columns.ForeignKey(p => p.result, (System.Collections.IEnumerable)ViewData["Result"], "id", "Name").Title("Result");
columns.bound(c =>c.DateResult) in my Grid
and there is three type of result ViewData(agree - disagree -Inprogress)
If the user select disagree I want to hide the DateResult
Note
popup editor
thanks
This is driving me nuts. I have a drop-down that onChange sends a query for the grid's data. I can see in my debugger that it is hitting my method in my controller and can see that the query actually returns rows but I get nothing showing up in the grid.
And before you ask, I did the camel-case serializer fix that is described many times over in these threads
.AddJsonOptions(options => {
options.SerializerSettings.ContractResolver = new DefaultContractResolver();
});
but it didn't help. I verified that the json looks correct by hitting the controller method directly and the fields are in PascalCase. I dumbed the grid down as much as possible to try to troubleshoot but no luck and I get no errors in my js console. Help! Here's my code
@(Html.Kendo().Grid<Data.Model.Client>()
.Name("grid")
.Columns(columns => {
columns.Bound(e => e.ClientID);
columns.Bound(e => e.ClientName);
columns.Bound(e => e.ClientStatus);
})
.Sortable()
.Pageable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("GetClients", "Home")
.Data("filterGrid"))
)
)
<script>
function filterGrid() {
return {
stateId: $("#ddlStates").val()
};
}
</script>
Hi,
I am using a custom popup template to add and edit rows on the grid. I can add and modify rows just fine and everything stores to the db the way it's supposed to.
However, I am finding that if I:
1: add a new row via the template
2. hit save,
3. come back to the main grid from the popup template.
4. immediately hit the EDIT button and go back to the template and correct a mistake.
5. hit the save button on the template.
when this sequence is followed the OnPostCreate gets called intead of OnPostUpdate.
It's like it never got out of edit mode.
If I refresh the grid by navigating someplace else and coming back all the data is correct. It's only in this rare instance.
Any ideas?
Thanks … Ed
Is there a way to catch the click event for this and the cancel button?
Thanks … Ed
Hi,
I have a class with more than 60 fields. Our quality gate doesn't allow more than 20 fields. So I factorized my code and have some class with one to one relations.
Is there something that I can use to have only one grid with all my fields?
I tried something like this, and got an error data.AppFacts is undefined :
@(Html.Kendo().Grid<App>()
.Name(
"grid"
)
.Columns(columns =>
{
columns.Bound(a => a.Name);
columns.Bound(a => a.AppData.DatabaseInstances);
columns.Bound(a => a.AppFacts.ApplicationType);
}
)
I tried with columns.ForeignKey, but I don't think I have understand how it work.
I'm a new developer, so it might be obvious but I tried.
Hello,
I'm trying to built a reusable grid component with Kendo Grid (ASP.NET Core) but I'm finding some problems with its configuration.
Taking the example, https://demos.telerik.com/aspnet-core/grid/editing-custom, if we configure edition mode as PopUp, the result form doesn't show the custom field.
Same happens if we change the grid type Grid<Kendo.Mvc.Examples.Models.ProductViewModel>() -> Grid<dynamic>(). In this case to configure fields I use the overload with (Type memberType, string memberName) params.
Do I need to configure something else?
One solution is to use the Foreign configuration, like this https://demos.telerik.com/aspnet-core/grid/foreignkeycolumn, but with grid type dynamic (Grid<dynamic>()) grid disappears and no errors are shown.
What I need would be the edition mode to be PopUp and the grid type dynamic. How can I do that?
Thank you.
Best Regards,
Ivan