I am trying to use the Kendo DatePicker from code generated and rendered into the view, I can make it work when part of the cshtml
e.g.
In cshtml:
@(Html.Kendo().DatePicker().Enable(!Model.ReadOnly).Name("DatePick").Value("12/25/2017").HtmlAttributes(new { style="width: 10% ", title="datepicker" }))
works fine.
when rendering from
result.Append("@(Html.Kendo().DatePicker().Enable(" + !ReadOnly + ").Name(\"a" + PrimKey + "\").Value(\"" + theDate + "\").HtmlAttributes(new { style=\"width: 10%\", title=\"datepicker\" }))\r\n");
I just get the text and no control.
I am using the code generation for all my controls on the page as it is dynamic and not a preset layout
I have here a MENU which would show partial views as the content.
<div class="panel-body"> <div id="row_menu" class="row" style="margin-top: -15px;"> @( Html.Kendo().Menu() .Name("Menu_PatientDetails") .Items(items => { items.Add().Text("Patient Information").Selected(true).Enabled(false); items.Add().Text("Insurance").Enabled(false); items.Add().Text("Visits").Enabled(false); items.Add().Text("Notes").Enabled(false); items.Add().Text("Documents").Enabled(false); }) .Events(e=>e.Select("openPatientDetails")) ) </div> <div id="PatientInformationPanel"> @Html.Action("ShowPatientInformation", "Patient") </div> <div id="PatientInsurancePanel" class="hidden"> @Html.Action("ShowPatientInsurance", "Patient") </div> <div id="PatientYearPanel" class="hidden"> @Html.Action("ShowPatientYear", "Patient") </div> <div id="CasesPanel" class="hidden"> @Html.Action("ShowPatientCases", "Patient") </div> <div id="PatientDocumentPanel" class="hidden"> @Html.Action("ShowPatientDocuments", "Patient") </div></div>
function openPatientDetails(e) {

I am trying to add a DDL to a toolbar template, I have tried all sorts , including simple text in the toolbar.
But when I add the template , I always get a syntaxthe character befor the ampersand (@<text> as if the toolbar.template does not like the string as a paramater. What could be wrong here .
My current code is below
I have tried simple divs with text and other things , but the issue is always the same.
.ToolBar(toolbar =>
{
toolbar.Template( @<text>
<div class="toolbar">
@(Html.Kendo().DropDownList()
.Name("CityId")
.DataTextField("Name")
.DataValueField("Value")
.OptionLabel("Select City...")
.DataSource(source => source
.ServerFiltering(true)
.Custom()
.Transport(transport => transport
.Read(read =>
{
read.Url("/Api/Common/_GetCity/2")
.DataType("json");
})
)
)
)
</div>
</text>);
})


I see that as promised for the Q3 3016 release, the kendoSpreadsheet now has support for defined names in the UI, and that these names are preserved in the client-side toJSON() method of the kendoSpreadsheet.
Is there any chance we could get support for defined names in the Telerik.Web.Spreadsheet.Workbook object? We've tried
Telerik.Web.Spreadsheet.Workbook.Load(Stream input, string extension)
and
Telerik.Web.Spreadsheet.Workbook.FromDocument(Telerik.Windows.Documents.Spreadsheet.Model.Workbook dplWorkbook)
but any defined names in the source are stripped out. I guess this is because the Telerik.Web.Spreadsheet.Workbook doesn't even have a public Names collection. This issue also prevents a client-generated Workbook from being passed to an MVC method: the MVC binder simply doesn't map properties that aren't public.
The net result is that developers can't take an XLSX file from the file system and render it accurately in the kendoSpreadsheet UI, nor can they round-trip it.
http://dojo.telerik.com/IGujU/3
How to make it so the hint can only be moved within the boundaries of the parent?
And how to autoscroll if I have a very long list, like i'm dragging the last item and when the hint is on top most of the visible viewport it will scroll up?

Hi,
I'm building SPA using kendo ui and angularjs for client-side and asp.net web api for server-side. Customer wants server paging, filtering and sorting in grids. I know, how to configure kendo grid, so I only need to implement it on my server.
I found solution to use .ToDataSourceResult() with the DataSourceRequest parameter, but the problem is that I'm not using entity framework for all db stuff - the requirement is to use dapper https://github.com/StackExchange/dapper-dot-net, so I should generate sql queries on the fly.
Are there some code samples or even already written components for this scenario?

I want to put a splitter in a bootstrap collapse panel. This works fine when the collapse panel is loaded open (ie a class of collapse in). However when the page loads with the collapse is loaded closed, the splitter does not render. Is there a way to make this work short of having a document ready function that has $(".collapse").collapse('hide');?
Thank-you
Here is the cshtml code.
<div class="panel-heading" style="background-color: #717174;height: 35px;color:white;font-size:11px;width:100%;">
<div class="panel-title">
<div class="row">
<div class="col-md-6">
<form id="form1" name="form1">
<div class="input-group input-group-sm input">
<span style="color:white;font-size:12px;font-weight:bold;">Account: </span>
<input id="selacct" class="form-control" name="selacct" placeholder="Search Account #..." style="width:120px;font-size:10px;height:20px;vertical-align:middle;float:none">
<a href="#" style="color:white;height:20px;"><span class="glyphicon glyphicon-search"></span></a>
<div class="col-md-1" style="border-left:1px solid #cccccc;">
<a data-toggle="collapse" href="#collapse1" style="text-decoration:none;color:white;font-weight:bold;font-size:14px;"><span class="glyphicon glyphicon-menu-down"></span></a>
</div>
<!-- /.end see more -->
</div>
</div>
</div>
<div id="collapse1" class="panel-collapse collapse col-md-12">
<div class="panel-body" style="background-color: #999999;height: 250px;color:white;font-size:12px">
@(Html.Kendo().Splitter()
.Name("vertical")
.Orientation(SplitterOrientation.Vertical)
.Panes(verticalPanes =>
{
verticalPanes.Add()
.HtmlAttributes(new { id = "top-pane" })
.Scrollable(false)
.Collapsible(false)
.Content(
Html.Kendo().Splitter()
.Name("horizontal")
.HtmlAttributes(new { style = "height: 100%;" })
.Panes(horizontalPanes =>
{
horizontalPanes.Add()
.HtmlAttributes(new { id = "left-pane" })
.Size("220px")
.Content(@<div class="pane-content">
<h3>Inner splitter / left pane</h3>
<p>Resizable and collapsible.</p>
</div>);
horizontalPanes.Add()
.HtmlAttributes(new { id = "right-pane" })
.Size("220px")
.Content(@<div class="pane-content">
<h3>Inner splitter / right pane</h3>
<p>Resizable and collapsible.</p>
</div>);
}).ToHtmlString()
);
})
)
</div>
</div>

Hello,
for day I've been trying to get this to work, but with the current state of your documentation its impossible to find anything useful besides maybe Custom Server Binding which probably won't be helpful in my case anyways.
My problem is basically that grouping works, but it'll completely ignore any properties that are mapped from other models I included via Linq which, for whatever reason, works fine if I don't use grouping at all. I have a property in the ViewModel which displays the Count of the Jobs a Profile has (as seen in the code snipper further down) which will be completely ignored when I have grouping activated.
I do realize by the way that I could fix my problem by working with a list, but I want to keep using serverside paging and such for performance reasons.
return _context.CrmProfiles.Where(p => ugIds.Contains(p.UserGroupId)) .Include(p => p.CrmType) .Include(p => p.UserGroup) .Include(p => p.OrdnungsbegriffType) .Include(p => p.Jobs);
This is my Read-Action for filling the grid. I tried different ways to do this, but the result is always the same.
public virtual ActionResult Read([DataSourceRequest]DataSourceRequest request){ var samAccountName = Session["SamAccountName"].ToString(); var result = _db.GetProfiles(samAccountName) .ToDataSourceResult(request, j => new { CreatedAt = j.CreatedAt, IsGlobalProfile = j.IsGlobalProfile, CreatedBy = j.CreatedBy, LastUpdatedBy = j.LastUpdatedAt, LastUpdatedAt = j.LastUpdatedAt, UserGroup = j.UserGroupName, Name = j.Name, JobCount = j.Jobs.Count }); return Json(result);}var result = _db.GetProfiles(samAccountName) .ToDataSourceResult(request, Mapper.Map<CrmProfileGridVM>);
And this is my grid:
(Html.Kendo().Grid<CrmProfileGridVM>() .Name("grid-crmprofiles") .Columns(c => { c.Bound(j => j.Name); c.Bound(j => j.IsGlobalProfile).ClientTemplate("<input type='checkbox' disabled #=IsGlobalProfile ? checked='checked' : '' # />").Width(160).Sortable(false); c.Bound(j => j.JobCount); c.Bound(j => j.UserGroupName); c.Bound(j => j.CreatedBy); c.Bound(j => j.CreatedAt); c.Bound(j => j.LastUpdatedBy); c.Bound(j => j.LastUpdatedAt); }) .ToolBar(toolBar => toolBar.Template("<a href='javascript: void(0)' class='button button-create2' title='Neues Profil anlegen' id='bt-profile-create'>button create</a>")) .HtmlAttributes(new { style = "height: 680px;" }) .Editable(editable => editable.Mode(GridEditMode.PopUp)) .Events(e => { e.DataBound("onProfileGridDataBound");}) .Scrollable() .ClientDetailTemplateId("template-grid-crmprofile") .Groupable() .Sortable() .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) .Filterable() .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .ServerOperation(true) .Model(model => model.Id(p => p.Id)) .Read(r => r.Action("Read", "CrmProfile")) .Events(e => e.Error("onProfileGridError")) .Group(g => g.Add(p => p.UserGroupName)) ))
Could somebody please explain to me what the problem is? As far as I can tell AggregateFunctionsGroup is the reason why, but again .. no clue how to fix this.