Hi Team,
when i try to add new scaffolding item from my controller class, i could not able to see Kendo UI Template, i tried to click all the left hand side menu options, but no luck.
I tried this option with VS 2013,2015. but its not working .i am using telerik trial version
telerik.ui.for.aspnetmvc.2017.2.621.trial
watch this video : https://www.youtube.com/watch?v=Tmz_j2GrJBk and try the option from 6.48 time line
Thanks
Sundar
Hi,
im trying to export PDF from my kendo grid but im facing some issues with pdf export settings.
@(Html.Kendo().Grid<Statistics.Models.Inspection>() .Name("grid") .Pdf(pdf => pdf .AllPages() .PaperSize("A4") .AvoidLinks() .Scale(0.8) .RepeatHeaders() .Margin("2cm", "1cm", "1cm", "1cm") .TemplateId("page-template") .FileName("Export.pdf") ) .Excel(exc=>exc.AllPages(true).Filterable(true).FileName("exc.xlsx"))
Excel is working fine.
But PDF always exports only 1 visible page from the grid (and only few columns that fit to the page). I figured out that if i remove .PaperSize("A4") it is showing all data BUT its completely ignoring template and it renders grid to pdf with all buttons.
Thanks

Hi, I'm trying to create a custom popup editor for my grid, however, the drop downs are not being populated or at least won't open at all. I'm stumped. The controller method does get hit and I see 3 values but the drop downs down open. When I first click on them I see a quick activity indicator appear but that's it.
Popup editor code
@(Html.Kendo().DropDownList() .Name("PressureGroupNm") .DataTextField("PressureGroupNm") .DataValueField("PressureGroupNm") .DataSource(source => { source.Read(read => { read.Action("GetPressureTypeGroups_ForDropDown", "Group"); }); }) .HtmlAttributes(new { style = "width: 60%" }) ) @Html.ValidationMessageFor(model => model.PressureGroupNm)
Controller code
public ActionResult GetPressureTypeGroups_ForDropDown() { return Json(GetGroups(), JsonRequestBehavior.AllowGet); } private IEnumerable<PressureTypeGroup> GetGroups() { return db.PressureTypeGroups.Select(pg => new PressureTypeGroup { PressureGroupNm = pg.PressureGroupNm, PressureTypeGroupTblId = pg.PressureTypeGroupTblId }); }

I'm having issue for display listview template vertically.
<div class="mainsortable">
@(Html.Kendo().ListView<KendoUI_MVC.ViewModel.Product>()
.Name("listView")
.TagName("div")
.ClientTemplateId("template")
.DataSource(dataSource =>
{
dataSource.Read(read => read.Action("ProductGrid_Read", "ListView"));
})
)
@(Html.Kendo().Sortable()
.For("#listView")
.Ignore(".order")
.Filter(">div.product")
.Cursor("move")
.PlaceholderHandler("placeholder")
.HintHandler("hint")
)
</div>
</div>
<script type="text/x-kendo-tmpl" id="template">
<div class="product">
<div class="panel panel-default">
<div class="panel-heading">#=ProductID# #:ProductName#</div>
<div class="panel-body">
<div class="partialsortable">
@(Html.Kendo().ListView<KendoUI_MVC.ViewModel.Order>()
.Name("OrderlistView_#=ProductID#")
.TagName("div")
.ClientTemplateId("ordertemplate")
.DataSource(dataSource =>
{
dataSource.Read(read => read.Action("Order_Read", "ListView", new { ProductID = "#=ProductID#" }));
})
.ToClientTemplate()
)
@(Html.Kendo().Sortable()
.For("#OrderlistView_#=ProductID#")
.Filter(">div.order")
.Cursor("move")
.PlaceholderHandler("placeholder")
.HintHandler("hint")
.ToClientTemplate()
)
</div>
</div>
</div>
</div>
</script>
<script type="text/x-kendo-tmpl" id="ordertemplate">
<div class="order">
Unit Price : #:UnitPrice#<br />
Quantity : #:Quantity#<br />
Discount : #:Discount#
</div>
</script>
<script>
function placeholder(element) {
return element.clone().addClass("placeholder");
}
function hint(element) {
return element.clone().removeClass("k-state-selected");
}
</script>
<style>
.mainsortable {
min-width: 1120px;
}
.order {
margin: 10px;
padding: 10px;
border: 2px solid #000;
}
.panel{
margin-left:10px;
margin-right:10px;
}
.tabstrip{
margin-bottom:10px;
}
.frame{
padding:10px;
}
#listView {
padding: 10px 5px;
margin-bottom: -1px;
min-height: 400px;
min-width:1120px;
}
.product {
float: left;
position: relative;
width: 400px;
min-height: 100px;
cursor: default;
}
.k-listview:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
</style>
In css, #listView min-width and max-width property does not working properly.
I'm try to set
.mainsortable {
width: 5000px;
}
and
#listView {
padding: 10px 5px;
margin-bottom: -1px;
min-height: 400px;
width:5000px;
}
seperately and it's working prperly.but its not expectable solution because can't adjust the width.
I attached following the screenshot of expected listview (Expected.png) and Issued listview (Issue.png).
Please give explanation for this issue.

Having some Grid formatting issues with a grid in a partial view, loaded via ajax function and pass it a parameter. It appears that the grid is partially created and displayed to soon. I have attached 2 screenshot. to show what is going on. using bootstrap
Basically the process should be call the grid. the loading.... dialog should be first, then the grid loaded when successfull with norecords shown inside of grid. This is happening way out of order. I am probably missing a process..
Main view:
@model Jlo4MVC.Models.UserToSend@{ ViewBag.Title = "JLO";}<div id="userinput" class="row"> <ul class="userrentry"> <li> @Html.Label("User ID") @Html.Kendo().TextBox().Name("searchuserid") </li> <li> @Html.Kendo().Button().Name("findUser").Content("Search for Sessions").HtmlAttributes(new { @class = "k-button" }) </li> </ul></div><div id="sessionsfound" class="row" style="display:none"></div><div id="status" class="row" style="display:none"></div><div id="gridloading" class="imgdiv" style="display:none"> <img id="loader" src="~/Images/ajax-loader.gif" class="center-block" /></div><script type="text/javascript"> $(function () { $('#findUser').click(function () { var myurl = '@Url.Action("getSessionsView", "home")'; var model = { userID: $("#searchuserid").val() }; $('#userinput').css("display", "none"); $.ajax({ url: myurl, type: "POST", datatype: "html", data: model, success: function (data) { $('#sessionsfound').html(data); $('#sessionsfound').css("display", "block"); } }) }); });</script>
Partial view
@model Jlo4MVC.Models.UserToSend<div> @(Html.Kendo().Grid<Jlo4MVC.Models.SessiondataDTO>() .Name("VSM_Grid") .NoRecords("No Sessions Found") .Columns(c => { c.Template(t => { }).ClientTemplate("<input type='checkbox' class='checkbox' />"); c.Bound(i => i.id).Title("ID").Width(10); c.Bound(i => i.farmName).Title("Farm").Width(25); c.Bound(i => i.domainName).Title("Domain").Width(25); c.Bound(i => i.applicationName).Title("App Name").Width(75); c.Bound(i => i.serverName).Title("Server").Width(25); c.Bound(i => i.sessionID).Title("Session ID").Width(10); c.Bound(i => i.userID).Title("User ID").Width(40); }) .DataSource(data => data .Ajax() .Model(m => m.Id(p => p.id)) .Read(read => read.Action("sessionsread", "Home", new { userID = Model.userID }))) )</div>
Hi,
I have the following grid...
$("#grid").kendoGrid({
toolbar: ["excel"],
excelExport: function (e) {
e.workbook.fileName = "Test.xlsx";
e.workbook.sheets[0].title = 'Hello World';
var rows = e.workbook.sheets[0].rows;
e.workbook.sheets[0].rows.unshift({
cells: [
{
value: ''
}
],
});
e.workbook.sheets[0].rows.unshift({
cells: [
{
value: 'Football: ' + $('input[name=mnuFoot]:checked').val(),
bold: true
}
],
});
e.workbook.sheets[0].rows.unshift({
cells: [
{
value: 'Soccer: ' + $('input[name=mnuSoccer]:checked').val(),
bold: true
}
],
});
for (var ri = 0; ri < rows.length; ri++) {
var row = rows[ri];
if (row.type == "group-footer" || row.type == "footer") {
for (var ci = 0; ci < row.cells.length; ci++) {
var cell = row.cells[ci];
if (cell.value) {
//Use jQuery.fn.text to remove the HTML and get only the text
cell.value = $(cell.value).text();
//Set the alignment
cell.hAlign = "right";
}
}
}
}
},
......
How can I export the data using the same functionality as the button on the toolbar using a button outside of the grid?
Thanks,
Liem
HI All,
Is it possible to convert kendo UI filter textbox to dropdown and bind custom data? I need answer in server side grid. pls see attachment

I have a Kendo MVC Grid that has a column with a DateTime column. Everything looks good and formats correctly. When i filter, it gives me a date picker and a time picker. When i remove the DateTimeFilter Template below and use template contains, it will give me a Date picker (which i want), but still wants to filter by the date and time.. Is there a way i can have the date and time all as the same field, but only filter with a Date picker.? Example: i use the Date picker to pick 07/24/2017 and it filter everything on that date regardless of time.. Or do they need to be completely different fields, or even concatenated fields in the same column.?
the Column data looks as such: 07/24/2017 18:12:00
columns.Bound(c => c.CreatedDate).Title("Submitted On")
.ClientTemplate("#= kendo.toString(kendo.parseDate(CreatedDate), 'MM/dd/yyyy HH:mm:ss') #")
.Filterable(ftb => ftb.Cell(cell => cell.Template("DateTimeFilter")));

Hello, and thank you in advance for any and all help.
I do not know if this is a known bug, something I have discovered, or something I am simply doing wrong.
.Selectable(selectable => selectable .Mode(GridSelectionMode.Multiple) .Type(GridSelectionType.Row)).Resizable(resize => resize.Columns(true)).AllowCopy(true)
This is how I have my grids set up. However, I notice copy/paste will fail from the grid unless all columns are showing. I use hideColumn() and showColumn() to allow a user to dynamically select what columns they wish to see. Is this a known issue, or is it a strict requirement that all columns have to be showing for copy/paste to work? Is there a workaround, if that is the case?
Thank you again!
