or
<li><a><img src="srb-images/resume-icon.png" class="fileOptionDefaultIcon"><h3>Create Document</h3></a></li>
I do not want the list item to have a auto detail icon. How would you disable this icon? ">"
<script id=
"urgentTemplate"
type=
"text/x-kendo-tmpl"
>
<tr ${ if dataItem[status] == urgent this.addClass(urgent)} </tr>
If templates cannot be made to work in this manner way, or if they don't travel with the row when
it is grouped, it would be helpful to have an event that fired after each group section was instantiated,
exposing the rows of the group, so one could iterate them, examine the dataItem of each,
and reapply a custom class to the row when applicable.
Sorry about this orange text. I'm not sure how to inject pseudo-code into my question without
messing up the styling.
<
div
id
=
"example"
class
=
"k-content"
>
<
div
id
=
"clientsDb"
>
<
div
id
=
"grid"
style
=
"height: 380px"
></
div
>
</
div
>
</
div
>
$(document).ready(
function
() {
$(
"#grid"
).kendoGrid({
dataSource: {
type:
"odata"
,
transport: {
},
schema: {
model: {
fields: {
OrderID: { type:
"number"
},
Freight: { type:
"number"
},
ShipName: { type:
"string"
},
OrderDate: { type:
"date"
},
ShipCity: { type:
"string"
}
}
}
},
pageSize: 10,
serverPaging:
true
,
serverFiltering:
true
,
serverSorting:
true
},
height: 250,
filterable:
true
,
scrollable:
true
,
sortable:
true
,
pageable:
true
,
columns: [{
field:
"OrderID"
,
filterable:
false
},
"Freight"
,
{
field:
"OrderDate"
,
title:
"Order Date"
,
width: 350,
format:
"{0:MM/dd/yyyy}"
}, {
field:
"ShipName"
,
title:
"Ship Name"
,
width: 250
}, {
field:
"ShipCity"
,
title:
"Ship City"
,
width: 300
}
]
});
});
{
"error"
:
"Please use POST request"
}
<
script
id
=
"fileGroupsItemTemplate"
type
=
"text/x-kendo-template"
>
<
table
>
<
tr
><
td
>
<
img
src
=
"#= data.Image#"
/>
</
td
><
td
style
=
"vertical-align: middle"
>
#= data.Name #
</
td
>
</
tr
>
</
table
>
#if(data.Docs.length > 0){#
<
ul
>
#for(var i=0; i <
data.Docs.length
; i++){#
<li>
<
a
>#=data.Docs[i].Name#
<
input
data-on-label
=
"Cl"
data-off-label
=
"Sk"
data-role
=
"switch"
#=data.Docs[i].NeedProcess ? "
checked
=
'checked'
" : ""# />
</
a
>
</
li
>
#}#
</
ul
>
#}#
</
script
>
$(
"#idExplorerReal"
).kendoWindow({
actions: [
"Expand"
,
"Custom"
,
"Close"
],
draggable:
true
,
height:
"500px"
,
width:
"300px"
,
minHeight: 500,
minWidth: 250,
modal:
true
,
visible:
true
,
resizable:
true
,
title:
"Explorer"
,
close: onCloseWin
});
var
kendoWindow = $(
"#idExplorerReal"
).data(
"kendoWindow"
);
var
vv = kendoWindow.wrapper.find(
".k-i-custom"
);
vv.click(
function
(e) {
alert(
"custom"
);
});
var
vv2 = kendoWindow.wrapper.find(
".k-i-expand"
);
vv2.click(
function
(e) {
alert(
"expand"
);
});