
I have copied the code from this example http://jsfiddle.net/yzKqV/159/ into a MVC view, the expand link is not working. the template for the master row is
<script id="rowTemplate" type="text/x-kendo-tmpl">
<tr class="k-master-row">
<td class="k-hierarchy-cell"><a href="\#" class="k-icon k-plus"></a></td>
<td> ${FirstName} </td>
<td> ${LastName} </td>
</tr>
</script>
so the link for the href on my machine is https://localhost/# which is incorrect, not sure how to fix this link.
Any help would be greatly appreciated.
hi
i ma using k-rtl on spreadseet and the cells stay ltr. there is a wey to fix it?
Hi,
I'm trying to get a diagram to generate a PDF file.
I've successfully persuaded it to output in landscape format using information from http://docs.telerik.com/kendo-ui/api/javascript/drawing/pdfoptionsbut I would also like to modify the output file's name and adjust other aspects of the output the code I'm, using is below:
function PrintDiagram() {
var filename = jsonDiagram.Name.replace(/[^a-z0-9]/gi, '_').toLowerCase();
findControl('input','EmpName').Value
Telerik_Diagram.pdf = {
creator: "Actis CRM",
fileName: filename + '.pdf',
subject: jsonDiagram.Name,
title: jsonDiagram.Name,
paperSize: "A4",
landscape: true
}
Telerik_Diagram.saveAsPDF();
}
hopefully fairly self explanatory.
As I say the result is a diagram pdf that is correctly oriented but the file name is still the default 'export.pdf' and the pdf producer (I assume should map to 'creator) is still Kendo UI PDF Generator v.2016.3.913. There is no title, author or subject either (see attached)
What am I doing wrong here?
Alan

hi:
my grid view data is using databound:
@model List<StockBetaVolatility>
@(Html.KendoGrid<StockBetaVolatility>()
.Name("MainGridTable")
.EnableCustomBinding(true)
.Columns(columns =>
{
columns.Bound(p => p.TradeDate).Width(100);
columns.ForeignKey(p => p.StockID, Shared.StockBaseNameList());
columns.Bound(p => p.StockBeta);
columns.Bound(p => p.StockVolatility);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(r => r.Action("AjaxRead", ViewContext.ControllerName())
.Data("PanelBarParameters"))
.ServerOperation(true)
)
.DefaultFormat()
.Events(events => events.Change("GridMainSelect"))
)
in the browser is show B,
columns define:
[DisplayName("stockβvalue")]
public decimal StockBeta { get; set; }
how can i do?
I have a grid reading data from a SharePoint online list and one of the columns is a Choice type column that permits multiple values - maximum of 3 entries currently and unlikely to spread beyond 5. When getting the data using REST (getbytitle) the column comes back as a null if no item is selected or an object - collection of strings. I am using the template declaration within the grid column definition to use a function to extract the chosen items and concatenate them together into a comma separated list for display in the grid - see below:
{ field: "BusinessDevelopmentProject", title: "Business Development Project", aggregates: ["count"], groupHeaderTemplate: "Project: #= GetBDProject(value)# - Count: #=count#", template: "<span>#= GetBDProject(BusinessDevelopmentProject) #</span>"}
The function is as follows:
function GetBDProject(project) { if (project == null || project == undefined) return ''; var projectString = ''; for (var i = 0; i < project.results.length; i++) { projectString += project.results[i]; if (i < (project.results.length - 1)) projectString += ', '; } return projectString;};
This works perfectly for the column itself and when choosing to group by the column the grouping works OK and the grouping of those records with no project chosen is fine. But once I move to a page in the grid where the grouping changes to one with a value, so wants to group by it, the grid generates the following error and just sits with the loading graphic cycling permanently:
Uncaught SyntaxError: Unexpected identifier at Function (<anonymous>) at o.filter (kendo.all.min.js:11) at kendo.all.min.js:11 at N (kendo.all.min.js:11) at o.select (kendo.all.min.js:11) at o.group (kendo.all.min.js:11) at Function.o.process (kendo.all.min.js:11) at init._queryProcess (kendo.all.min.js:11) at init.query (kendo.all.min.js:11) at init._query (kendo.all.min.js:11)
Is there something else I need to do to get the group header to work for a column with a function in for formatting?
Thanks in advance for any assistance.
I am using SPA with Kendo grid. Can I apply different select color for different grid? I tried to put the below style in my sub page. But it will override my hosting page as well. Thanks.
<style>
.k-grid .k-state-selected {
background-color: #cbf1e3 !important;
color: #000000;
}
.k-grid .k-alt.k-state-selected {
background-color: #cbf1e3 !important;
color: #000000;
}
</style>
I want to use the grid in a CSS flex layout with nested flex containers. However the grid expands the flex item and the scrollbars are therefore missing (IE11 latest):
http://runner.telerik.io/fullscreen/iHugEV/16
What's going wrong here?
var obuDS = new kendo.data.DataSource({ transport: { read: { url: function(data) { return api_url_v1+"obus/user/"+$.cookie('user')+"?ssid="+$.cookie('ssid'); }, dataType: "json", complete: function(response,type) { } } }, pageSize: 10});01.webcontrol.route("/obus", function() {02. $("#content").html(obus({}));03. $("#obus").kendoGrid({04. dataSource: obuDS,05. sortable: true,06. filterable: true,07. pageable: {08. refresh: true,09. pageSizes: true10. },11. columns: [12. { field: "name", title: "Name", width: 50, template: "<a href=\"\\#/obu/#:obu#/0\">#:name#</a>" },13. { field: "obu", title: "OBU", width: 70},14. { field: "country", title: "Country", width: 30 },15. { field: "eurocode", title: "EURO", width: 30 }16. ]17. });18.});