We just upgraded to the latest 2017.3.913 to fix an issue where we couldn't get a good PDF export (AllPages() wasn't working) from a grid with server paging. That problem was corrected with the update but now we have another PDF export issue. We have a grid that has row detail grids and is NOT using server side paging. When the user clicks export, we use the PDF export event to expand all of the detail grids and change the number of rows per page to a large number so that all records will be exported along with the row details.
function onPdfExport(e) {
var grid = e.sender;
var pageSize = grid.dataSource.pageSize();
grid.dataSource.pageSize(5000);
grid.refresh();
grid.expandRow(this.tbody.find("tr.k-master-row"));
e.promise
.done(function () { grid.dataSource.pageSize(pageSize); grid.refresh(); });
}
The problem we're having happens whether we are using this code to expand all rows OR if we comment out the code and expand a few manually. If I expand 3 rows, the export is combining the details for each row and showing the detail data for all open rows in all open rows. I know that is a little difficult to understand...if each of the 3 rows that have been expanded have 1 detail row each then 3 detail rows will export under every expanded row. See attached images for a clearer description. These images were generated without the use of the PDF export event handler defined above. I manually expanded 3 rows before exporting. The first screenshot is the actual grid showing 3 rows expanded. The second is the page from the PDF export where you can see that the detail grids are combined.
I have a grid that I am loading with a linq query to my database. On page load it works great and returns dated now + 21 days. The users need to ability to then enter there own dates to search between. It is all working great right up to the point the data returned from the controller needs to get into the grid. It just won't load.
Relevent code of grid
.DataSource(dataSource => dataSource .Ajax() .PageSize(20) .Read(read => read .Action("Action", "Controller") ) .Sort(sort => { sort.Add(p => p.ID).Ascending(); sort.Add(p => p.Date).Ascending(); }) .Group(g => { g.Add(c => c.ID); }) .ServerOperation(false))
When the user enters 2 dates and clicks search the function is run. The grid is cleared and a loading message appears goes away and the grid remains blank.
function onClickSearch() { var fromDate = $("#startDate").data("kendoDatePicker").value(), toDate = $("#endDate").data("kendoDatePicker").value(); $("#prodReadiGrid").data("kendoGrid").dataSource.read({ "start": fromDate, "end": toDate});}
When I debug I see the controller sending the view the grid, it just does not load.
Any ideas?

Hi,
MultiSelect Tag Template selected value with comma separate in input field.
Is it available in document? If not could you send sample code how to set selected value with comma separate.
Regards
Suman
I am able to populate Editor programmatically from my model using Alexander's code snippet from http://www.telerik.com/forums/how-do-i-set-the-value-to-a-model-value-in-a-template-7d3339946e0d.
However, when I try to populate editor using an Ajax call (based on a selection in a dropdownlist), then it stops working. I can see the correct values are being returned and my other bound fields are populating correctly, just not the Editor textarea.
My editor:
@(Html.Kendo().EditorFor(m => m.Content) .Name("Content") .HtmlAttributes(new { style = "height:650px", aria_label = "editor" }) )and my Jquery:
$(function () { $('#Name').change(function () { var name = $(this).val(); var success = function (results) { debugger; $('#Id').val(results.Id); $('#Name').val(results.Name); $('#NewName').val(results.Name); $('#Content').val(results.Content); }; $.ajax({ url: '/Staff/Email/GetEmail', type: 'POST', data: { name: name }, dataType: 'json', success: success }); }); });
The textarea has an id of 'Content', so why can't I set it's value using Jquery?
Thank you in advance,
Laura
Maybe I am missing documentation if such a feature exists but is it possible to display some kind of indication on a column header to identify that particular column has an active filter?
When sorting a column it can display an up arrow or down arrow which indicates active sorting on that column. Is there an equivalent for active filter?

Hi, I'm trying to get this: http://demos.telerik.com/aspnet-mvc/grid/detailtemplate
except I don't need the tabstrip. So what I want is just the grid. Is that possible because when I try to do this with just a grid, I get an empty row with no data.
Thanks,
Jokull

Hi, I am trying to customize my mvc grid, here is the image https://ufile.io/6c1xf
1. No header, the columns.bound to customize instead of c.name
2. How to put edit and delete into 1 column?
3. How to call javascipt in string not integer?
@(Html.Kendo().Grid<iOneDistribution.Web.Models.Users.UserViewModel>()
.Name("grid")
.Columns(columns =>
{
//1. header must be able to customize.
//3. it doesn't call the datagrid as this must be in string not integer
columns.Bound(c =>
c.Name).ClientTemplate(
"<a style='cursor:pointer' onclick='getEditView('#=UserCode#');' " +
">EDIT</a>").Width("90");
// 2. it is in the other column, i want to put into 1 column with the edit
columns.Command(command =>
{
command.Destroy().Text(" ");
}).Width(100);
columns.Bound(c => c.Name);
columns.Bound(c => c.Email);
columns.Bound(c => c.MobilePhone);
columns.Bound(c => c.OfficePhone);
columns.Bound(c => c.HomePhone);
columns.Bound(c => c.UserPosition);
columns.Bound(c => c.IsSalesPerson);
columns.Bound(c => c.IsPurchaser);
columns.Bound(c => c.IsActive);
columns.Bound(c => c.IsAllowApprove);
columns.Bound(c => c.DefaultCulture);
})
.Pageable()
.Sortable()
.Filterable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(u => u.UserCode))
.Read(read => read.Action("Users_Read", "Users"))
.Destroy(update => update.Action("Destroy", "Users"))
)
)

Hello,
My Kendo menu has 3 items. First is an Icon , second is a text "Adress suchen" and third is another Icon with Sub menuitems. Using following Stylesheet i could achieve partially but i cannot Center align the text of manu. Also the left side Icon is outside the menu width.
@(Html.Kendo().Menu()
.Name("menuImages")
.Items(items =>
{
items.Add().Text("<span class=\"k-icon k-i-menu\"></span> ").HtmlAttributes(new { id = "mnuMain" }).SpriteCssClasses("k-icon k-i-menu").Encoded(false)
.Items(children =>
{
.....
children.Add().Text("Alle Objekte Anzeigen");
});
items.Add().Text("Adressen suchen").HtmlAttributes(new { id = "mnuTitle" }).ContentHtmlAttributes(new { @style = "text-align:middle;" });
items.Add().Text("<span class=\"k-icon k-i-grid\"></span> ").HtmlAttributes(new { id = "mnuHome" }).SpriteCssClasses("k-icon k-i-grid").Encoded(false);
})
My css is
ul.k-widget.k-menu-horizontal > .k-item
{
float: right;
}
#menuImages > .k-last {
float: left;
width:40px;
}
So i want both Icon items left and right aligned and middle one text Center aligned
Thanks
Anamika

Hi,
In button click event inside the script will call $("#grd").data("kendoGrid").dataSource.read();
script for Grid databound
function onDefaultSelect(e) {
var rows = e.sender.tbody[0].rows;
$(rows).each(function (e) {
var grid = $("#grd").data("kendoGrid");
var row = this;
var dataItem = grid.dataItem(row);
grid.select(row);
});
var getValue = this.selectedKeyNames().join(",");
}
When I button click the selectedKeyName value is getting correct. When I button click again, the selectedkeyvalue is not changed, it getting old value. Is there any missing script ??
Regards
Suman
