or
01.
if (User.Identity.IsAuthenticated)
02.
{
03.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
04.
<
div
class
=
"post-view k-widget"
>
05.
<
div
class
=
"edit-buttons"
>
06.
<
a
class
=
"k-button k-button-icontext k-edit-button"
href
=
"\\#"
><
span
class
=
"k-icon k-edit"
></
span
></
a
>
07.
<
a
class
=
"k-button k-button-icontext k-delete-button"
href
=
"\\#"
><
span
class
=
"k-icon k-delete"
></
span
></
a
>
08.
</
div
>
09.
<
div
class
=
"post-header bg-azure"
>
10.
<
p
class
=
"post-title"
>#:Name# </
p
>
11.
<
p
class
=
"post-time"
>#:kendo.toString(CommentDate,'d')#</
p
>
12.
</
div
>
13.
<
div
class
=
"post-msg"
>
14.
#=Comment#
15.
</
div
>
16.
</
div
>
17.
</
script
>
18.
}
19.
else
20.
{
21.
<
p
>You must be logged in to contribute.</
p
>
22.
23.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
24.
<
div
class
=
"post-view k-widget"
>
25.
<
div
class
=
"edit-buttons"
>
26.
<
a
class
=
"k-button k-button-icontext k-edit-button disabled"
href
=
"\\#"
><
span
class
=
"k-icon k-edit"
></
span
></
a
>
27.
<
a
class
=
"k-button k-button-icontext k-delete-button disabled"
href
=
"\\#"
><
span
class
=
"k-icon k-delete"
></
span
></
a
>
28.
</
div
>
29.
<
div
class
=
"post-header bg-azure"
>
30.
<
p
class
=
"post-title"
>#:Name# </
p
>
31.
<
p
class
=
"post-time"
>#:kendo.toString(CommentDate,'d')#</
p
>
32.
</
div
>
33.
<
div
class
=
"post-msg"
>
34.
#=Comment#
35.
</
div
>
36.
</
div
>
37.
</
script
>
38.
}
39.
}
<
div
id
=
"organizer"
>
@(Html.Kendo().PanelBar()
.Name("panelBar")
.Animation(true)
.ExpandMode(PanelBarExpandMode.Single)
.Items(PanelBar =>
{
PanelBar.Add()
.Expanded(false)
.Content(@<
div
>
<
div
class
=
"col-md-5"
>
<
div
class
=
"panel-body"
>
<
div
id
=
"employeeInfo"
>
<
dl
class
=
"dl-horizontal"
>
<
dt
>Office:</
dt
>
<
dd
>Asheville, NC</
dd
>
<
dt
>Department:</
dt
>
<
dd
>FTG</
dd
>
<
dt
>Position:</
dt
>
<
dd
>Manager</
dd
>
<
dt
>Phone: </
dt
>
<
dd
>336-822-4442</
dd
>
<
dt
>Email: </
dt
>
<
dd
>victor.canipe@dhgllp.com</
dd
>
</
dl
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"myTable"
>
<
div
class
=
"table-responsive"
>
<
table
class
=
"table table-bordered table-condensed"
style
=
"margin-bottom:0px;"
>
<
tr
>
<
th
>Skills</
th
>
<
th
>Industries</
th
>
<
th
>Services</
th
>
</
tr
>
<
tr
>
<
td
>Language</
td
>
<
td
>Lorem Ipsum</
td
>
<
td
>Lorem Ipsum</
td
>
</
tr
>
<
tr
>
<
td
>Technology</
td
>
<
td
>JAVA</
td
>
<
td
>JAVA</
td
>
</
tr
>
<
tr
>
<
td
>Technology</
td
>
<
td
>Access</
td
>
<
td
>Access </
td
>
</
tr
>
</
table
>
</
div
>
</
div
>
<
div
class
=
"panel-footer"
>
<
div
class
=
"col-md-2 col-md-push-6"
>
<
a
id
=
"more"
><
i
class
=
"fa fa-info-circle"
></
i
>More</
a
>
</
div
>
</
div
>
</
div
>
);
})
)
</
div
>
public
ActionResult FilterMenuCustomization_Titles([Bind(Prefix=
"filter[filters][0][value]"
)]
string
filterValue)
{
var db =
new
SampleEntities();
var employeeTitles = db.Employees
.Select(e => e.Title)
.Where(t => t.StartsWith(filterValue))
.Distinct();
return
Json(employeeTitles, JsonRequestBehavior.AllowGet);
}
@(Html.Kendo().TreeView()
.Name("tvDocumentDirs")
.DataTextField("Name")
.DataSource(dataSource => dataSource
.Model(m => m.Id("Path").HasChildren("HasChildren"))
.Read("ReadDirectoryGetDirs", "Documents").Events(e=>e.RequestEnd("tvDocumentDirs_onRequestEnd").Error("tvDocumentDirs_onError"))
)
.Events(events => events
.Select("tvDocumentDirs_onSelect")
.Change("tvDocumentDirs_onChange")
)
)