or
var
grid = $("#Grid").data("kendoGrid"); => error
Did I miss something ?
<script id="expscenDetail" type="text/kendo-tmpl"> @(Html.Kendo().TabStrip() .Name("TabStrip") .SelectedIndex(0) .Items(items => { items.Add().Text("Chart") .LoadContentFrom("_eDetail", "Tray") .Selected(true); items.Add().Text("Text") .LoadContentFrom("_eDetail", "Tray"); }))</script>
_eDetail - partial view
<div >
<ul>
<li><label>Code:</label></li>
</ul>
</div>
Controller
public ActionResult _eDetail()
{
return PartialView();
}
If I put a break point on the controller it doesn't even get hit, so I believe it's a problem with how the loadcontent() part is parsed.
The error:
<div class="k-widget k-tabstrip k-header" id="TabStrip"><ul class="k-reset k-tabstrip-items"><li class="k-item k-state-default k-state-active"><a class="k-link">Chart</a></li><li class="k-item k-state-default"><a class="k-link">Text</a></li></ul><div class="k-content k-state-active" id="TabStrip-1" style="display:block"></div><div class="k-content" id="TabStrip-2"></div></div><script>
jQuery(function(){jQuery("#TabStrip").kendoTabStrip({"contentUrls":["/Tray/_eDetail","/Tray/_eDetail"]});});
' Generated code:'var o,e=kendo.htmlEncode;with(data){o='\n <div class="k-widget k-tabstrip k-header" id="TabStrip"><ul class="k-reset k-tabstrip-items"><li class="k-item k-state-default k-state-active"><a class="k-link">Chart</a></li><li class="k-item k-state-default"><a class="k-link">Text</a></li></ul><div class="k-content k-state-active" id="TabStrip-1" style="display:block"></div><div class="k-content" id="TabStrip-2"></div></div><script>\n\tjQuery(function(){jQuery("';TabStrip").kendoTabStrip({"contentUrls":["/Tray/_eDetail","/Tray/_eDetail"]});});
;o+=;}return o;'
Is there anyway around this? Or am I just trying to take it a step too far?
Thanks From the documentation about autocomplete
.Filter("contains") //Define the type of the filter, which autocomplete will use.
I noticed that the Filter method has some hard-coded values.What are the other filter types?
if other controls also have this kind of hard-coded values,where can i find them?also,they are case-sensitive?
Regards,
Daniel
@model IEnumerable<LightRouteDB.Customer>@{ ViewBag.Title = "Customer List";}@( Html.Kendo().Grid(Model) .Name("CustomerGrid") .Pageable() .Sortable() .Filterable() .Columns(cols => { cols.Bound(c => c.CustomerNum).Width(100).Groupable(false); cols.Bound(c => c.CustomerName).Width(200); cols.Bound(c => c.BillAddr1).Width(200).Title("Address"); cols.Bound(c => c.BillCity).Width(100).Title("City"); cols.Bound(c => c.TotalDue).Format("{0:c}").Title("Balance"); cols.Command(cmd => cmd.Custom("Edit").Text("Edit").Click("editCustomer")); }))<script type="text/javascript"> function editCustomer(e) { e.preventDefault(); var dataItem = this.dataItem($(e.currentTarget).closest("tr")); window.nav("/customers/edit/" + dataItem.CustomerID); }</script>function onClose() { var selected = $.map(this.select(), function(item) { return $(item).text(); }); $("#safekeep").text = selected.toString;}Any suggestions? Or is there a tutorial somewhere for this?