or
@Html.Kendo().Grid(Model).Name("qxtgrid"
).DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read", "Grid")
$(
function
() {
$(
"#grid"
).kendoGrid({
dataSource: {
transport:{
read:
"libyMsg.php?way=getUsrMsgList"
,
create:{
url :
"libyMsg.php?way=createMsg"
,
type:
"POST"
},
update:{
url :
"libyMsg.php?way=updateeMsg"
,
type:
"POST"
},
destroy:{
url :
"libyMsg.php?way=destroyMsg"
,
type:
"POST"
}
},
batch:
true
,
pageSize: 10,
schema: {
data:
"data"
,
model: {
id:
"msg_id"
,
fields: {
msg_id: { editable:
false
, nullable:
true
},
msg_title: { validation: { required:
true
} },
msg_content: { validation: { required:
true
} },
msg_type: { type:
"number"
, validation: { min: 0, required:
true
}},
msg_date: { type:
"date"
, validation: { required:
true
} },
msg_status: { type:
"number"
, validation: { min: 0, required:
true
} }
}
}
}
},
columns: [{ field:
"msg_id"
, width: 40,title:
"ID"
},
{ field:
"msg_title"
,width: 230, title:
"Title"
},
{ field:
"msg_content"
, width: 370,title:
"Content"
},
{ field:
"msg_type"
, width: 40,title:
"Type"
},
{ field:
"msg_date"
, width: 300,title:
"Date"
},
{ field:
"msg_status"
, width: 40,title:
"Status"
}],
scrollable:
true
,
sortable:
true
,
editable:
"popup"
,
pageable: {
refresh:
true
,
pageSizes:
true
},
toolbar: [
"create"
,
"save"
,
"cancel"
],
});
});
</script>
@(Html.Kendo().TabStrip()
.Name("tabstrip")
.Items(tabstrip =>
{
tabstrip.Add().Text("About Us")
.Content(@<
text
>
</
text
>);
tabstrip.Add().Text("Contact Us")
.Content(@<
text
>
</
text
>);
})
.SelectedIndex(0)
)
<
style
>
.k-tabstrip .k-tabstrip-items { padding:0.3em 0.35em 0;}
.k-reset { text-align:right;}
</
style
>
e.g.
if we select 15 Nov 2012 as date it is sending it as 14 Nov 2012
same as if we select 12:30AM in time it is sending it as 19:00 hrs i.e. 07:00PM