Hello everyone,
I have a dynamic Kendo grid that can perform CRUD operations. Foreign Keys are retrieved and mapped to their value and placed in the grid as a drop down list using an editor template, similar to this example here: https://demos.telerik.com/kendo-ui/grid/foreignkeycolumn
I have virtualization enabled on those FK dropdowns similar to this example: https://demos.telerik.com/kendo-ui/dropdownlist/virtualization and my dropdown correctly calls the valueMapper with the id. The problem is with the valueMapper, as this function only receives the FK id or dataitem. I am not able to communicate to the server which column the FK id belongs to, and thus can not return the index of the value. This problem seems that it could result in any grid that has multiple foreign keys so I am hoping there is a solution but I have been unable to find one. Any tips/leads would be greatly appreciated!
Here is my DynamicForeignKey editor template that is used as in each FK column of the grid.
@( Html.Kendo().DropDownListFor(m => m) .Filter(FilterType.Contains) .HtmlAttributes(new { style = "width:300px" }) .Height(290) .DataValueField("ForeignKeyID") .DataTextField("ForeignKeyName") .DataSource(source => { source.Custom() .ServerFiltering(true) .ServerPaging(true) .PageSize(80) .Type("aspnetmvc-ajax") .Transport(transport => { transport.Read("Read", "ForeignKey", new { SchemaName = ViewData["SchemaName"], TableName = ViewData["TableName"], ColumnName = ViewData["ColumnName"] }); }); }) .Virtual(v => v.ItemHeight(26).ValueMapper("valueMapper")))Hi Team,
I have requirement where i want editable kendo grid in which i have one column (Values) in which i want to show the date ,number and text values.depending on the datatye it should change control of that cell accourding to datatype of that value .i'm able to show these value but at the time of editing i facing issue like values are not visible in the cell something like that if i forced column type either to string or datetime,
please suggest some working example
Thanks in advance.

I am working on a page that progressively adds server content as the user provides more information. So there are a lot of chunks of UI being appended and replaced in the UI. I just noticed that when I remove one div, via jquery's .remove function, the div.k-calendar-container.k-popup for some date pickers that were descendants of the div are not being removed and are accumulating at the bottom the page.
In regards to separation of concerns, at the point in my javascript that I am removing the parent element, I don't necessarily want that code to have to know that there are kendo datepickers inside or to have to care about what the contents are at all. Is there a best practice to make sure that kendo widgets are cleaned up/destroyed when they are indirectly removed from the DOM like this?
Hey,
I'm having a problem while tryign to use webpack + angularjs + kendo ui in my application.
While trying to use the kendo combo box, an exception raised (through chrome console):
"The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.".
I've read those issues (which didn't help me at all):
https://github.com/telerik/kendo-ui-core/issues/1932
http://stackoverflow.com/questions/39499716/how-to-use-kendo-ui-core-with-webpack-and-es2016
My code can be downloaded through Github:
https://github.com/amityaniv4/CheckSomething/tree/master
Thank you for helping :)
Hi,
a Toolbar Button without url is created as <a href="" ...
See http://dojo.telerik.com/aBiHumiR and inspect the button in toolbar1.
For the browser this is a link and the user can open the context menu for the links (open in new tab/windows, ...)
And in my css I have styles for links (i.e. a:any-link ) which will also apply to <a href="". For this I could exlude the button with a:any-link:not(.k-button).
But it would be better, that href="" is ommited if no url is defined. So I remove it in toolbar2 with
$("#toolbar2 a").removeAttr("href");
And this not work for the buttons in the overflow menu - make the run pane smaller in the dojo.
Is there an option in kendoToolBar / type="button" to omitt href="" ?
Peter
Hi,
Is tooltips available for connections in diagram ??. I have found tooltips for shapes. Do we have same kind of feature in connections too ? It seems content template available for connections but tooltips are not available
Hello, I have this sub-grid. I'm trying to use the row ID (which appears fine on the actual row) .. but is null when I try to use it in the hyperlink inside a ClientTemplate
Any help?
<script id="criticalTopicsTemplate" type="text/kendo-tmpl">
@(Html.Kendo().Grid<DashboardViewModel>()
.Name("grid_#=TopicID#")
.Columns(columns =>
{
columns.Bound(cr => cr.CTID); // <-- CTID does appear here and on the grid
columns.Bound(cr => cr.CTTitle).Title("CT Name");
columns.Bound(cr => cr.CTStatus).Title("Status");
columns.Bound(cr => cr.CTPercentComplete).Title("Percent");
columns.Bound(cr => cr.CTEnd).Title("Target");
columns.Bound(cr => cr.CTCertified).Title("Certified");
columns.Bound(cr => cr.CTOwner).Title("Owner");
columns.Bound(cr => cr.CTExecStakeholder).Title("Stakeholder");
columns.Bound(cr => cr.OpenPRs).Title("Open PRs");
columns.Bound(cr => cr.CompletedPRs).Title("Completed PRs");
columns.Bound(cr => cr.OtherPRs).Title("Other PRs");
columns.Command(command => command.Custom("Details").Click("showDetails")).Title("Critical Topic Details");
columns
.Bound(cr => cr.CTID)
.Template(@<text></text>)
.Title("Actions")
.ClientTemplate("<a href='http://<link-info-here>/DispForm.aspx?ID=#=CTID#' target='_blank' class='k-button link'>View</a>" + // CTID = null
"<a href='http://<link-info-here>/EditForm.aspx?ID=#=CTID#' target='_blank' class='k-button link'>Edit</a>"); // CTID = null
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetCriticalTopics", "Hierarchy", new { title = "#=TopicTitle# " }).Data("filterOptions"))
.PageSize(20)
)
.Pageable()
.Sortable()
.ClientDetailTemplateId("partnerTemplate")
.ToClientTemplate()
)
</script>
I'm currently using Kendo UI with jQuery and have a line graph being rendered from a kendoChart object. I've noticed that the category axis (x axis) min and max date renders entirely based off of the data that is returned, using the earliest date as the starting point and latest as the end point. For the life of me, I can not find a way to manually set the start and end date on the chart before it renders. On the flipside, I was able to find where you set the value axis (y axis) min and max by using the chart.dataSource.options.valueAxis.min/max object.
Am I doing something wrong? Is this possible to do or is it unsupported?