telerik / ui-for-aspnet-mvc-examples Goto Github PK
View Code? Open in Web Editor NEWA collection of Telerik UI for ASP.NET MVC examples
A collection of Telerik UI for ASP.NET MVC examples
When I use google map autocomplete function in the popup edit window, it won't save the whole line of location that google auto filled. It just saved the word I typed.
For example, I type "Calg", and I select "Calgary AB, Canada" that google suggested. Kendo only save "Calg"
Who can help me to solve this??? Thanks in advance.
Moving from aspnet/Mvc#6600
This line of code here: https://github.com/telerik/ui-for-aspnet-mvc-examples/blob/master/scheduler/scheduler-web-api-crud/SchedulerWebApiCrud/ModelBinders/DataSourceRequestModelBinder.cs#L68
Is calling an API that was marked as obsolete in ASP.NET Core 1.1, and was then removed in ASP.NET Core 2.0.
You can see the commit where the API was removed to see the alternative pattern that will still work: aspnet/Mvc@824d65c#diff-161a3b0396461c85730bbbe25b9d5ac7L383
Hi
I do not know if it's the right place to post a doubt but I'd like to ask a question.
How can I do the same thing as the sample (https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/excel-export-server-side) including the Grouping data feature whic returns a Kendo.Mvc.Infrastructure.AggregateFunctionsGroup instead of list?
Thank you!
`
@{
Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
</div>
<div class="col-md-2">
<button type="button" class="btn btn-outline-primary" id="btn-add" style="float:right; margin-top:0px;">Add More</button>
</div>
</div>
</div>
</div>
</div>
</div>
Check | Employee Name | Employee branch | Employee Salary |
---|
</div>
</div>
<div class="row mb-3">
<div class="col-md-10"></div>
<div class="col-md-2">
<button type="submit" id="btnsumit" class="btn btn-outline-success">Submit</button>
<button type="button" class="btn btn-warning waves-effect waves-themed" style="float:right;" onclick="location.href='@Url.Action("CreateEmp","Home")';">Cancel</button>
</div>
</div>
<p>Total Number Of Employees:<label></label></p>
<p>Total Salary:<label></label></p>
</div>
</div>
`
Since there's a lot setting up this full example project. It'd be nice to have a link to the index.cshtml file that actually represents the main kendo-ui portion of the example. It took me a while to find initially before thinking of searching on 'odata-v4' (though I knew that was something I was looking for ahead of time from other threads which led me here).
I've cloned the repo, and found the scripts folder to be missing for the ui-for-aspnet-mvc-examples/grid/grid-dpl-integration/GridExcelSpreadProcessing/ sample. Please help.
I ran this project and its working perfectly fine for add/edit event but not for destroy(delete). When we destroy any recursive event it throws below exception on line db.SaveChanges(); in "Delete(MeetingViewModel meeting, ModelStateDictionary modelState)" method.
Exception - Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.
When I try to apply this approach:
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-inline-editing-with-nullable-boolean
I get this error:
The nullableBoolean binding is not supported by the DropDownList widget
What about an solution like this:
$( document ).ready(
$("form").each(function(i, form){
$(this).find(".k-grid").each(function(_i, div){
$(form).submit(div, kendoGridSubmitData);
});
});
);
function kendoGridSubmitData(e) {
var lModel = e.data.id;
var lKendoGrid = $(e.data).data("kendoGrid");
// Iterate over all rows
lKendoGrid.dataItems().forEach(function(_row, _rowIndex){
// Iterate over all fields
_row.forEach(function(_value, _name){
// Add the input hidden
$('<input>').attr({
type: 'hidden',
id: lModel,
name: lModel+'['+_rowIndex+'].'+_name,
value: _value
}).appendTo('form');
});
});
}
Subject says it all.
Please make this file available for download or include it in the repository.
Daylight switch off date in the US is Nov, 07, 2021 02:00:00
Suppose the Datetime is Nov, 07, 2021 03:00:00
The grid data will display Nov, 07, 2021 02:00:00
There will be an hour gap. How to fix this?
Happens when you decrease the size of the column.
Here's a simplified version of the grid's code:
@(Html.Kendo().Grid<PDS.Web.Areas.Assets.Models.EquipmentModel>()
.Name("EquipmentDashboardGrid")
.Columns(col =>
{
col.Bound(m => m.EquipmentTypeName).Title(AssetManagement.Equipment_Type).Width(150).ClientGroupHeaderTemplate("#=value#").Hidden();
col.Bound(m => m.SortOrder).Title(AssetManagement.Equipment_SortOrder).Width(135).Filterable(false);
col.Bound(m => m.IsInstalled).Title(AssetManagement.Equipment_Installed).Width(130).Filterable(false).HtmlAttributes(new { style = "text-align: center" });
col.Bound(m => m.ExtendedDesc2).Title(AssetManagement.EquipmentDashboard_Equipment).Width(250).Filterable(false);
col.Bound(m => m.ExtendedDesc3).Title(AssetManagement.Equipment_Details).Width(250).Filterable(false);
col.Bound(m => m.OpenInspectionCount).Title("Open Faults").Width(140).HtmlAttributes(new { style = "text-align: center" }).Sortable(true);
col.Bound(m => m.InstalledDate).Title(AssetManagement.Equipment_Installed).Width(130).Filterable(false);
col.Bound(m => m.ScheduledRemoval).Title(AssetManagement.EquipmentDashboard_ScheduledRemoval).Width(130).Filterable(false);
col.Bound(m => m.RemovalDate).Title(AssetManagement.Equipment_Removal).Width(130).Filterable(false);
col.Bound(m => m.LastSavedDateTime).Title(AssetManagement.Equipment_LastSaved).Width(175).Filterable(false).Sortable(true);
col.Bound(m => m.CreatedDateTime).Title(AssetManagement.Equipment_Created).Width(175).Filterable(false);
col.Bound(columns => columns.EquipmentTypeNameSort).Width(175).ClientGroupHeaderTemplate("#=value.split('_@@')[1]#").Hidden(true);
col.Bound(m => m.EquipmentID).Title(AssetManagement.Equipment_ID).Width(145).Hidden(false);
col.Bound(m => m.EquipmentTypePrefix).Hidden();
})
.Sortable()
.Scrollable()
.Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
.Resizable(resize => resize.Columns(true))
.Reorderable(reorder => reorder.Columns(true))
This error occurs after selecting the month view.
Please look at the new SignalR development (preview) and consider creating a open source component library and new guidance on creating real-time server side databinding with telerik components.
TimePickerEditor example does not show submitting timespan to server.
Issue is related to the following example:
https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/window/KendoWindow-Ajax-Form
As the title says, when a new row is made using this method, it is not inserted at the top of the grid. When using the normal built in creation of rows, new rows are inserted at the top until the datasource is refreshed.
Hi. I have a very slow internet connection. Would you be so kind of create a separate download so i could get just that ?
The complete examples code is about 900 and change MB. To big for my bandwidth. Thanks in advance.
Starting your demo I accidentally had developer tools opened and noticed that jquery and the file "/" are included more than once.
Here is what the console log shows:
Detected Kendo UI version: "2015.3.930"
VM466:170 jQuery is included more than once
VM466:170 Kendo file / is included more than once(anonymous function) @ VM466:170(anonymous function) @ VM466:169req.onreadystatechange @ VM466:148XMLHttpRequest.send (async)check_can_load @ VM466:155(anonymous function) @ VM466:160diagnose_scripts @ VM466:159(anonymous function) @ VM466:190
Hi Team,
Kendo Grid in asp.net core is not returning the model value during form submit.
i Have multiple grid in multiple tab control. while submitting the form the model value is not returning to controller.
Regards,
Anand Kumar A
After pressing the "Load Settings" button the Add new record button no longer works. This could also be issue for other buttons
Is there any way the example for grid-handling-unauthorized-request can be updated to .net core 2.1? There have been deprecations and the code does not easily translate into .net core
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.