or
datepicker.setOptions({
format:
"dd/MM/yyyy"
,
parseFormats: [
"dd/MM/yy"
],
culture: window.culture,
min:
new
Date(1000, 0, 1),
max:
new
Date(9999, 11, 31),
value: dateValue
});
Please note:
1. This behavior is common in all browsers like Internet Explorer, Firefox, Chrome
2. Kendo js version: Kendo UI Complete v2013.3.1324
Please advise how to make Shift+Tab work for this scenario.
function onIncDataBound() {
var dropdownlist = $("#IncludeExclude").data("kendoDropDownList");
if (dropdownlist.dataSource.data().length == 1) {
debugger;
var items = $("li.k-state-selected", $("#IncludeExclude-list"));
dropdownlist.trigger("select", { item: items, value: dropdownlist.text() });
}
}
function onInExSelect(e) {
debugger;
var projSq = '@Model.Project.ProjSq';
var typeDol = $('#type').val();
var county = $('#county').val();
var dataItem = this.dataItem(e.item);
var incExc = dataItem.Value;
var Url = '@Url.Action("GetDecision", "Shared")';
$.ajax({
url: Url,
type: 'GET',
dataType: 'HTML',
data: { cnty: county, projSq: projSq, includeExclude: incExc, type: typeDol }
})
@(Html.Kendo().DropDownListFor(d => d.RequestFlatten.IncludeExclude)
.Name("IncludeExclude")
.HtmlAttributes(new { style = "width:450px" })
.OptionLabel("Select Include/Exclude")
.DataTextField("Description")
.DataValueField("Value")
.CascadeFromField("Type")
.Events(e => e.Select("onInExSelect").DataBound("onIncDataBound"))
.CascadeFrom("FdolTypeCode")
.AutoBind(false)
.Enable(false)
.DataSource(ds => ds.Read(r => r.Action("GetIncludeExcludeByCountyAndType", "Shared").Data("filterIncludeEx"))
.ServerFiltering(true)))
@Html.HiddenFor(h => h.RequestFlatten.IncludeExclude, new { id = "incExc" })
@(Html.Kendo().Grid<MyViewModel>()
.Name(
"grid"
+ gridName)
.ToolBar(comands => comands.Template(templateHeader))
.Columns(columns =>
{
columns.Bound(c => c.name).Title(
"Name"
);
columns.Bound(c => c.status).Title(
"Status"
);
}
.Scrollable()
.Sortable()
.Filterable()
.ColumnMenu(c => c.Messages(m => m.SortAscending(
"Ordem Ascendente"
).SortDescending(
"Ordem Descendente"
).Columns(
"Colunas"
)))
//.Pageable(pageable => pageable.Input(true).Numeric(false))
.Resizable(resizable => resizable.Columns(
true
))
.DataSource(dataSource => dataSource.Ajax().Read(read => read.Action(action, controller).Data(
"filtroAdicionalCargasPendentes"
)))
)
public
ActionResult HierarchyBinding_Types([DataSourceRequest] DataSourceRequest request)
{
IQueryable<pxCore.Type> _types =_db.Types.OrderBy(t=>t.Kurzzeichen);
DataSourceResult _dsr = _types.ToDataSourceResult(request, _type =>
new
Typeview(_type, _db));
return
Json(_dsr);
}
public
ActionResult HierarchyBinding_DynParts(Guid typeid, [DataSourceRequest] DataSourceRequest request)
{
Typeview typeview=
new
Typeview(_db.Types.Where(w=>w.Id==typeid).FirstOrDefault(), _db);
DataSourceResult _dsr = typeview.DynParts.ToDataSourceResult(request);
return
Json(_dsr);
}
@(Html.Kendo().Grid<
pxCore.Type
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(e => e.Kurzzeichen).Width(110);
columns.Bound(e => e.Bezeichnung).Width(510);
})
.Sortable()
.Scrollable()
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.ClientDetailTemplateId("template")
.HtmlAttributes(new { style = "height:700px;" })
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("HierarchyBinding_Types", "Types"))
)
.Events(events => events.DataBound("dataBound"))
)
<
script
id
=
"template"
type
=
"text/kendo-tmpl"
>
@(Html.Kendo().Grid<
object
>()
.Name("grid_#=Id#")
.Resizable(r=>r.Columns(true))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("HierarchyBinding_DynParts", "Types", new { typeID = "#=Id#" }))
)
.Pageable()
.Groupable()
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.Sortable()
.Reorderable(r=>r.Columns(true))
.ToClientTemplate()
)
</
script
>