or
<
ul
data-role
=
"listview"
data-type
=
"group"
id
=
"itemListView"
data-click
=
"listViewClick"
data-style
=
"inset"
>
<
li
><
label
class
=
"km-listview-label"
><
textarea
id=${idval}
onfocus
=
"clearArea(this);"
style
=
"width:100%;height: 100px;"
maxlength
=
"150"
>input answer</
textarea
></
label
></
li
>
<
li
><
label
class
=
"km-listview-label"
><
textarea
id=${idval}
onfocus
=
"clearArea(this);"
style
=
"width:100%;height: 100px;"
maxlength
=
"150"
>input answer</
textarea
></
label
></
li
>
<
li
><
label
class
=
"km-listview-label"
><
textarea
id=${idval}
onfocus
=
"clearArea(this);"
style
=
"width:100%;height: 100px;"
maxlength
=
"150"
>input answer</
textarea
></
label
></
li
>
<
li
><
label
class
=
"km-listview-label"
><
textarea
id=${idval}
onfocus
=
"clearArea(this);"
style
=
"width:100%;height: 100px;"
maxlength
=
"150"
>input answer</
textarea
></
label
></
li
>
<
li
><
label
class
=
"km-listview-label"
><
textarea
id=${idval}
onfocus
=
"clearArea(this);"
style
=
"width:100%;height: 100px;"
maxlength
=
"150"
>input answer</
textarea
></
label
></
li
>
<
li
><
label
class
=
"km-listview-label"
><
textarea
id=${idval}
onfocus
=
"clearArea(this);"
style
=
"width:100%;height: 100px;"
maxlength
=
"150"
>input answer</
textarea
></
label
></
li
>
</
ul
>
<
div
data-role
=
"modalview"
id
=
"submitDialog"
style
=
"width: 40%; height: 13em;"
>
<
div
data-role
=
"header"
class
=
"navbarStyle"
>
<
div
data-role
=
"navbar"
><
h3
>info</
h3
></
div
>
</
div
>
<
div
style
=
"margin:.5em auto; text-align: center;font-size: 1.6em;"
id
=
"subcontent"
>submit ok</
div
>
<
div
style
=
"margin:0 auto; text-align: center;font-size: 1.3em; padding-top:0.5em;"
>
<
a
data-click
=
"closeSubmitDialog"
type
=
"button"
data-role
=
"button"
style
=
"width:8em;background-color:#06b375;color:#ffffff;"
>Enter</
a
>
</
div
>
</
div
>
function
openSubmitDailog(msg){
if
(MYAPP.dialogOPEN==
false
){
MYAPP.dialogOPEN=
true
;
var
modalView=$(
"#submitDialog"
).data(
"kendoMobileModalView"
);
modalView.open();
if
(msg)
$(
"#subcontent"
).html(msg);
}
}
function
closeSubmitDialog(){
//setTimeout(function(){
var
modalView=$(
"#submitDialog"
).data(
"kendoMobileModalView"
);
modalView.close();
MYAPP.dialogOPEN=
false
;
if
(MYAPP.status==8){
init();
}
else
if
(MYAPP.status==4){
MYAPP.app.navigate(
"#loginpage"
);
}
//return;
//},100);
}
$(
"#userGrid"
).data(
"kendoGrid"
).setDataSource(
new
kendo.data.DataSource({
//data: userList,
transport: {
read: {
url: MyAxitea_Config.baseURL +
"Services/UserHandler.ashx/GetUserListByCurrentUser"
,
type:
"POST"
},
update: {
url: MyAxitea_Config.baseURL +
"Services/UserHandler.ashx/UpdateUserAuthById"
,
dataType:
"json"
,
type:
"POST"
/*,
data: function (options) {
return {
id: options.IdUtente,
abilitato: options.Abilitato
}
}*/
}
},
schema: {
model: {
id:
"IdUtente"
,
fields: {
Nome: { type:
"string"
, editable:
false
},
Cognome: { type:
"string"
, editable:
false
},
Alias: { type:
"string"
, editable:
false
},
IdPrivilegio: { type:
"int"
, editable:
false
},
Email: { type:
"string"
, editable:
false
},
Abilitato: { type:
"boolean"
},
DataDisattivazione: { type:
"date"
, editable:
false
},
}
}
},
pageSize: 10,
sort: { field:
"IdPrivilegio"
, dir:
"asc"
}
}));
Thanks,
Jason
Hi, I'm trying to implement Scheduler in a MVC4 Razor project...
I follow the sample in your project, but i can't make appointment show.
Post some code:
public
ActionResult Gantt()
{
ViewBag.Message =
"GANTT"
;
return
View(ganttService.GetGantt());
}
public
virtual
JsonResult Read([DataSourceRequest] DataSourceRequest request)
{
return
Json(ganttService.GetGantt());
}
public
class
GanttViewModel : ISchedulerEvent
{
public
string
Description
{
get
;
set
;
}
public
DateTime End
{
get
;
set
;
}
public
bool
IsAllDay
{
get
;
set
;
}
public
string
RecurrenceException
{
get
;
set
;
}
public
string
RecurrenceRule
{
get
;
set
;
}
public
DateTime Start
{
get
;
set
;
}
public
string
Title
{
get
;
set
;
}
}
public
virtual
IQueryable<GanttViewModel> GetGantt()
{
List<GanttViewModel> retValue =
new
List<GanttViewModel>();
GanttViewModel md1 =
new
GanttViewModel { Title =
"TIT1"
, Description =
"DES1"
, Start = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc), End = DateTime.SpecifyKind(DateTime.Now.AddHours(3), DateTimeKind.Utc) };
retValue.Add(md1);
return
(retValue.AsQueryable());
}
@(Html.Kendo().Scheduler<
FinitenessEvo.Models.GanttViewModel
>()
.Name("scheduler")
.Date(DateTime.Today)
.StartTime(DateTime.Today)
.Height(600)
.Timezone("Etc/UTC")
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
})
.DataSource(o => o.Model(m => { m.Id(f => f.Description); }).Read("Read","Home"))
)
1.
<
div
data-role
=
"tabstrip"
>
2.
<
a
href
=
"#home"
>Home</
a
>
3.
<
a
href
=
"#details"
>Details</
a
>
4.
</
div
>
01.
<
body
>
02.
<
div
data-role
=
"view"
>
03.
<
div
data-role
=
"tabstrip"
>
04.
<
a
href
=
"#home"
>Home</
a
>
05.
<
a
href
=
"#details"
>Details</
a
>
06.
</
div
>
07.
</
div
>
08.
09.
<!-- snip -->
10.
11.
<
script
>
12.
window.kendoMobileApplication = new kendo.mobile.Application();
13.
</
script
>
14.
</
body
>