Hi
Would you have an idea why the tick is outside the box.
I use <p>..
See it here: http://prntscr.com/7dxgui
The checkbox is for JOINT_APPLICANT
The view is:
@using PartnerLink.Models@using Telerik.OpenAccess.SPI@model TBL_ASSIGNMENT@section Head{ <link href="@Url.Content("~/Content/css/AddCase.min.css")" re rel="stylesheet" type="text/css" /> <link href="https://da7xgjtj801h2.cloudfront.net/2015.1.408/styles/kendo.common.min.css" rel="stylesheet" type="text/css" /> <link href="https://da7xgjtj801h2.cloudfront.net/2015.1.408/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" /> <link href="https://da7xgjtj801h2.cloudfront.net/2015.1.408/styles/kendo.default.min.css" rel="stylesheet" type="text/css" /> <script src="https://da7xgjtj801h2.cloudfront.net/2015.1.408/js/jquery.min.js"></script> <script src="https://da7xgjtj801h2.cloudfront.net/2015.1.408/js/jszip.min.js"></script> <script src="https://da7xgjtj801h2.cloudfront.net/2015.1.408/js/kendo.all.min.js"></script> <script src="https://da7xgjtj801h2.cloudfront.net/2015.1.408/js/kendo.aspnetmvc.min.js"></script> <script src="@Url.Content("~/Scripts/kendo.modernizr.custom.js")"></script> <script src="//cdn.jsdelivr.net/jquery.cookie/1.4.1/jquery.cookie.min.js" type="text/javascript"></script>}@{ Layout = "~/Views/Shared/_EmptyLayout.cshtml"; ViewBag.Title = "Add case"; EntitiesModel entities = new EntitiesModel(); var currentUser = entities.TBL_USERs.FirstOrDefault(u => u.USER_ID == Model.USER_CREATED); var usersSource = entities.TBL_USERs .Where(u => u.LEAD_PROVIDER_ID == currentUser.LEAD_PROVIDER_ID) .Select(u => new UserDropBoxItem { UserId = u.USER_ID, FullName = u.FIRST_NAME + " " + u.SURNAME }) .ToList(); //usersSource.Add(new UserDropBoxItem() { UserId = "", FullName = "" }); usersSource = usersSource.OrderBy(u => u.UserId).ToList(); var salutations = entities.TBL_SALUTATIONs .Where(s => !s.OUT_OF_USE) .Select(s => new SalutationDropboxItem { Id = s.SALUTATION_ID, Salutation = s.SALUTATION }) .ToList(); salutations.Add(new SalutationDropboxItem() { Id = 0, Salutation = "" }); salutations = salutations.OrderBy(s => s.Id).ToList(); var country = entities.TBL_COUNTRies.Where(w => !w.OUT_OF_USE) .Select(s => new { ID =s.COUNTRY_ID, Name=s.COUNTRY} ); var sourceCodes = entities.TBL_SOURCE_CODEs.Where(w=>!w.OUT_OF_USE) .Select(s => new TBL_SOURCE_CODE { SOURCE_CODE_ID = s.SOURCE_CODE_ID, SOURCE_CODE = s.SOURCE_CODE }) .ToList(); }<div class="all-content-wrapper"> <div class="top-bar"> <div class="title-container"> <h1>Add case</h1> </div> <img class="logo" src="@Url.Content("~/Content/Images/logo_300x50.png")" alt=" autodraft" /> </div> <form action="/CreateCase" method="POST" accept-encoding="UTF" id="AddCaseForm"> <div class="main-content" style="height: 520px; width: 1000px;"> <div class="content-column"> <dl class="listcontent"> <dt><br /><label for="CALL_AGENT_ID">Call Agent <span class="required"> *</span></label></dt> <dd>@Html.Kendo().DropDownListFor(m => m.CALL_AGENT_ID).Name("CALL_AGENT_ID").BindTo(usersSource).DataValueField("UserId").DataTextField("FullName").OptionLabel(" ").HtmlAttributes(new { required = "true", validationMessage = "Select Call Agent" })</dd> <dt><br /><label for="CALL_AGENT_MANAGER_ID">Call Agent Manager <span class="required"> *</span></label></dt> <dd>@Html.Kendo().DropDownListFor(m => m.CALL_AGENT_MANAGER_ID).Name("CALL_AGENT_MANAGER_ID").BindTo(usersSource).DataValueField("UserId").DataTextField("FullName").OptionLabel(" ").HtmlAttributes(new { required = "true", validationMessage = "Select Call Agent Manager" })</dd> <dt><br /><label for="CUSTOMER_ADVISOR_ID">Customer Advisor <span class="required"> *</span></label></dt> <dd>@Html.Kendo().DropDownListFor(m => m.CUSTOMER_ADVISOR_ID).Name("CUSTOMER_ADVISOR_ID").BindTo(usersSource).DataValueField("UserId").DataTextField("FullName").OptionLabel(" ").HtmlAttributes(new { required = "true", validationMessage = "Select Customer Advisor" })</dd> <dt><br /><label for="CUSTOMER_ADVISOR_MANAGER_ID">Customer Advisor Manager <span class="required"> *</span></label></dt> <dd>@Html.Kendo().DropDownListFor(m => m.CUSTOMER_ADVISOR_MANAGER_ID).Name("CUSTOMER_ADVISOR_MANAGER_ID").BindTo(usersSource).DataValueField("UserId").DataTextField("FullName").OptionLabel(" ").HtmlAttributes(new { required = "true", validationMessage = "Select Customer Advisor Manager" })</dd> <dt><br />@Html.LabelFor(m => m.SOURCE_CODE_ID, "Source Code")</dt> <dd>@Html.Kendo().DropDownListFor(m => m.SOURCE_CODE_ID).Name("SOURCE_CODE_ID").BindTo(sourceCodes).DataValueField("SOURCE_CODE_ID").DataTextField("SOURCE_CODE").OptionLabel(" ")</dd> <dt></dt> <dd>@Html.Kendo().CheckBoxFor(m => m.JOINT_APPLICANT).Name("JOINT_APPLICANT").Label("Joint Applicant").HtmlAttributes(new { style = " left: -5000px" }) @Html.Kendo().CheckBoxFor(m => m.PARTNER_UNAWARE).Name("PARTNER_UNAWARE").Label("Partner Unaware").HtmlAttributes(new { style = " left: -5000px" }) </dd> </dl> </div> <div class="content-column"> <dl class="listcontent"> <dt><br /><label for="FIRST_NAME">First Name <span class="required"> *</span></label></dt> <dd>@Html.Kendo().TextBoxFor(m => m.FIRST_NAME).Name("FIRST_NAME").HtmlAttributes(new { required = "true", validationMessage = "Enter First Name" })</dd> <dt><br /><label for="SURNAME">Last Name <span class="required"> *</span></label></dt> <dd>@Html.Kendo().TextBoxFor(m => m.SURNAME).Name("SURNAME").HtmlAttributes(new { required = "true", validationMessage = "Enter Last Name" })</dd> <dt><br />@Html.LabelFor(m => m.MAIDEN_NAME, "Maiden Name")</dt> <dd>@Html.Kendo().TextBoxFor(m => m.MAIDEN_NAME).Name("MAIDEN_NAME")</dd> <dt><br />@Html.LabelFor(m => m.SALUTATION_ID, "Salutation")</dt> <dd>@Html.Kendo().DropDownListFor(m => m.SALUTATION_ID).Name("SALUTATION_ID").BindTo(salutations).DataValueField("Id").DataTextField("Salutation")</dd> <dt><br /><label for="ADDRESS_COUNTRY">Country <span class="required"> *</span></label></dt> <dd>@Html.Kendo().DropDownListFor(m => m.ADDRESS_COUNTRY_ID).Name("ADDRESS_COUNTRY_ID").BindTo(country).DataValueField("ID").DataTextField("Name").OptionLabel(" ").HtmlAttributes(new { onchange = "countryChange(this.value);", required = "true", validationMessage = "Select Country" })</dd> <dt><br />@Html.LabelFor(m => m.GENDER, "Gender")</dt> <dd> @Html.Kendo().RadioButtonFor(m => m.GENDER).Name("GENDER").Label("M").Value('M').HtmlAttributes(new { style = " left: -5000px" }) @Html.Kendo().RadioButtonFor(m => m.GENDER).Name("GENDER").Label("F").Value('F').HtmlAttributes(new { style = " left: -5000px" }) </dd> </dl> </div> </div> <div class="bottom-bar"> <p class="close" style="margin-top: 0px; margin-top: 20px; position: fixed;">CLOSE</p> <input class="save-and-close" style="margin-top: 20px;" type="submit" value="ADD CASE" onclick="submitClicked()" /> <input type="submit" class="creatingMessage" value="Creating Case..." disabled /> </div> <a></a> </form></div><script> $(window).ready(function () { $("p.close").click(function () { location.pathname = "/"; }); }); function submitClicked() { var validator = $("#AddCaseForm").kendoValidator().data("kendoValidator"); var isvalid = validator.validate(); if (isvalid) { $('.save-and-close').hide(); $('.creatingMessage').show(); $('.close').hide(); } } function countryChange(selcountry) { var enabled = true; if (selcountry == 2) { enabled = false; $("#JOINT_APPLICANT").attr('checked', false); $("#JOINT_APPLICANT").attr('disabled', true); } else { $("#JOINT_APPLICANT").removeAttr('disabled'); enabled = $("#JOINT_APPLICANT").is(":checked"); } }</script>I'm unable to select rows using mouse drag when the grid contains 90 or more rows of data. I've modified pre-existing demos that contained 160 rows of data to use the mouse drag select and it worked. So I'm wondering if it has something to do with the grids configuration. Are there any other events firing during the mouse drag select?
Here is how my grid is configured:
$(selector).kendoGrid({
dataSource: self.eventGridDataSource(url, params, columns),
pageable: false,
sortable: { mode: "multiple", allowUnsort: true },
scrollable: true,
selectable: "multiple row",
resizable: true,
columnResize: function (e) {
var width = e.newWidth;
var name = e.column.field;
var colId = e.column.attributes["data-sc-id"];
console.log('column: ' + name);
console.log('column width: ' + width);
EventBuilder.fn.saveColumnInfo.call(this, module, colId, width, 0);
},
columns: EventBuilder.fn.gridColumns(columns, true, module),
editable: {
mode: "popup",
window: { title: "Edit Event" },
template: kendo.template($("#popup-editor").html())
},
edit: function (e) {//put into a function
//content removed
},
excelExport: function (e) {
var from = e.sender;
var cellId = e.sender._cellId;
var gridName = cellId.substring(0, cellId.indexOf('_'));
var filename = gridName + ".xlsx";
e.workbook.fileName = filename;
}
});
The grid only has 15 columns.

Hi all
I have an in-cell editable grid which I have managed to make so only several columns are editable. However, those non-editable columns are still selectable and when using tab, the tabbing does not skip these cells. Is there any way to make it so the tab order only selects the editable cells?
Also, when I enter one of the editable cells, the cursor puts itself at the start of the value and leaves the cell contents unselected. Is there any way to automatically select the cell's contents on enter?
Regards
Brad
I need to create tabs dynamically, with the same structure but different data. When I clone a tab, the events (dropdownlist specifically do not work).
var tabpanel = $('[data-name="tabpanel"]').data("kendoTabStrip");
if (typeof tabpanel === 'undefined') tabpanel = tabpanel = $('[data-name="tabpanel"]').kendoTabStrip().data("kendoTabStrip");
$.each(addresses, function (key, value) {
var tabHeader = value["AddressTypeDescription"];
var tab = $('<div>').attr('name', tabHeader);
$(tabpanel.contentHolder(0)).children().clone().appendTo(tab);
value['phonetypes'] = phonetypes;// data for dropdownlist
value['addrtypes'] = addrTypes; //data for dropdownlist
var vm = kendo.observable(value);
kendo.bind(tab, vm);
//Need to do this otherwise the input values will not get passed
tab.children().find('input').each(function () { $(this).attr('value', this.value);})
tabpanel.insertAfter({
text: tabHeader,
content: tab.html()
}
, tabpanel.tabGroup.children(":nth-last-child(2)")
);
});
snippet of the markup for the dropdownlist
<select class="form-control" data-role="dropdownlist" data-bind="source: addrtypes, value: AddressTypeID" data-text-field="text" data-value-field="value" name="ContactAddress.AddressType"></select>
Hi All,
Is there a way to bind extra event to the 'create' toolbar button? I want to populate data before or after into grid column after a new row was insert by kendo.
I tired the following for the toolbar button but with no luck
​edit: function (e) {
e.container.find(".k-grid-add").on("click", function (e) {
//populate data here
});
}
and this
var grid = $("#grid").kendoGrid({...});
grid.data().kendoGrid.bind('edit', function (e) {
e.container.find('.k-grid-add').click(function () {
//populate data here
});
TIA
Hello,
I am using MVC razor and need to show " No Data Available " message for Charts when there is no data available or chart is empty.
Is this possible in Kendo MVC Charts. Any pointer will be helpful.
-Thanks
Hemant
Hi, I'm trying to rotate the category axis labels so they appear like the attached mockup. Please let me know how I can achieve this.
Thanks,
--Ed
var draw = kendo.drawing;var geom = kendo.geometry;var rect = new geom.Rect([5, 5], [240, 240]);var path = draw.Path.fromRect(rect).stroke("red", 5);var rect2 = new geom.Rect([5, 5], [240, 240]);var path2 = draw.Path.fromRect(rect).stroke("blue", 5);var root = new draw.Group();var p1 = new draw.Group();root.append(p1);p1.append(path);var p2 = new draw.Group();root.append(p2);p2.append(path2);draw.exportPDF(root, { paperSize: "A5", landscape: true, multiPage: true }).done(function(data) { kendo.saveAs({ dataURI: data, fileName: "frame.pdf" });});I have a grid that will typically have anywhere between 50 to 400 rows. I figured out to export the grid to a one page pdf, however 100+ rows on a 1 page (Letter) pdf is unusable. How do I export to a multi-page pdf, or is that not an option?
If I specify PaperSize("Letter") I get a pdf with the top left section of the grid with the rest of the content simply cut-off. The PDF export functionality sounds really usefull, but unless I figure out how to do multiple-page exports, the possible uses will be extremely limited. Am I missing something?
@(Html.Kendo().Grid(Model) .Name("grid") .Columns(c => { c.Bound(m => m.ExternalID).Title("ID"); c.Bound(m => m.LocalID).Title("Local ID"); c.Bound(m => m.GroupDate).Format("{0:d}").Title("Date") .ClientGroupHeaderTemplate("Date: #= kendo.toString(value, 'd') # <button onclick='selectGridGroup(this);' class='btn btn-danger btn-sm'>Delete Items</button>"); c.Bound(m => m.SubmitDate).Format("{0:d}"); c.Bound(m => m.SettlementDate).Format("{0:d}").Title("Settle Date"); c.Bound(m => m.FirstName); c.Bound(m => m.LastName); c.Bound(m => m.Company); c.Bound(m => m.SettlementAmount).Format("{0:C}").Title("Amount") .ClientGroupFooterTemplate("Sub-Total: #= kendo.toString(sum, 'C') #") .ClientFooterTemplate("Total: #= kendo.toString(sum, 'C') #"); c.Bound(m => m.AdjustmentAmount).Format("{0:C}").Title("Adjustments") .ClientGroupFooterTemplate("Sub-Total: #= kendo.toString(sum, 'C') #") .ClientFooterTemplate("Total: #= kendo.toString(sum, 'C') #"); c.Bound(m => m.InvoiceNumber); c.Bound(m => m.Description); c.Bound(m => m.TransactionStatus); c.Bound(m => m.Matched);. c.Command(m => m.Destroy()).Hidden(); }) .Groupable() .ToolBar(t => t.Pdf()) .Pdf(p => p .AllPages() .Landscape() .PaperSize("Letter") .Title(@ViewBag.Title) .FileName(@ViewBag.Title + ".pdf") ) .DataSource(d => d.Ajax() .ServerOperation(false) .PageSize(30) .Model(m => m.Id(i => i.Id)) .Aggregates(a => { a.Add(s => s.SettlementAmount).Sum(); a.Add(s => s.AdjustmentAmount).Sum(); }) .Group(g => g.Add(a => a.GroupDate)) .Destroy(r => r.Action("RemoveTransaction", "Report"))))