or
@(Html.Kendo().Grid(Of PEERS.ECFPropertyModel).Name("ECFProperty"). Columns(Sub(cols) cols.Bound(Function(it) it.PropertyID).ClientTemplate("<input type='checkbox' onClick='gridECFProperty_selectOnClick(this);' id='SelectProperty' value='#=PropertyID#'>#=PropertyID#</input>") cols.Bound(Function(it) it.PropertyName) cols.Bound(Function(it) it.CostSaving) cols.Bound(Function(it) it.ImplementationCost) cols.Bound(Function(it) it.TargetCompletionDate) cols.Bound(Function(it) it.ActualCompletionDate) End Sub ).Pageable().Scrollable().Sortable().Selectable().DataSource(Sub(d) d.Ajax().ServerOperation(True).Batch(True). Model(Sub(m) m.Id(Function(p) p.PropertyID)).PageSize(10). Read(Function(r) r.Action("ECFPropertyList", "ECFProperty", Request.RequestContext.RouteData.Values)). Update(Function(u) u.Action("SaveECFProperty1", "ECFProperty", Request.RequestContext.RouteData.Values)) ))<div> <input type="submit" id="submit" onclick="SaveECF();" value="Save ECF Property" /> </div>
function SaveECF() { $.ajax({ url: '@Url.Action("SaveECFProperty", "ECFProperty", Request.RequestContext.RouteData.Values)', type: 'POST', traditional: true, datatype: "json", data: { PropertyList: $("#ECFProperty").data("kendoGrid").dataSource.view().toJSON), currency:'USD' }, success: function () { window.alert('saved'); } }); }
<!DOCTYPE html>
<
html
>
<
head
>
<
title
>Test</
title
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<
meta
charset
=
"utf-8"
/>
<!-- ********** JS ********** -->
<
script
src
=
"js/cordova-2.0.0.js"
type
=
"text/javascript"
charset
=
"utf-8"
></
script
>
<
script
src
=
"js/jquery.min.js"
></
script
>
<
script
src
=
"js/kendo.mobile.min.js"
></
script
>
<!-- ********** CSS ********** -->
<
link
rel
=
"stylesheet"
href
=
"styles/kendo.mobile.all.min.css"
type
=
"text/css"
/>
</
head
>
<
body
>
<
div
data-role
=
"view"
id
=
"stateView"
data-init
=
"ViewInit"
>
<
div
id
=
"form"
>
<
header
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
</
div
>
</
header
>
<
ul
data-role
=
"listview"
data-style
=
"inset"
data-type
=
"group"
id
=
"stateListView"
></
ul
>
<
a
data-role
=
"button"
id
=
"btnValidateState"
>Validate</
a
><
br
/>
</
div
>
</
div
>
<
script
type
=
"text/x-kendo-template"
id
=
"stateTemplate"
>
<
li
><
h3
>${stateName}</
h3
></
li
>
<
li
><
p
>${stateDescription}</
p
></
li
>
<
li
>
<!-- not working! :( -->
<
ul
id
=
"select-period"
data-index
=
"0"
>
<
li
>Month</
li
>
<
li
>Quarter</
li
>
<
li
>Year</
li
>
</
ul
>
</
li
>
<
li
>
# if (transitionArray != null && transitionArray.length > 1) { #
Response
<
select
id
=
"dropdownChoice"
>
# for (var i=0; i <
transitionArray.length
; i++) { #
<option
id
=
"${transitionArray[i].transitionId}"
value
=
"${transitionArray[i].transitionExpression}"
>${transitionArray[i].transitionExpression}</
option
>
# } #
</
select
>
# } #
</
li
>
<
li
>
<
label
for
=
"txtComments"
>Comments</
label
><
br
/>
<
textarea
id
=
"txtComments"
rows
=
"4"
cols
=
"45"
name
=
"txtComments"
maxlength
=
"200"
class
=
"k-textbox"
/>
</
li
>
<
li
>
<!-- not working! :( -->
<
a
data-role
=
"button"
id
=
"btnValidateState2"
>Validate</
a
>
</
li
>
</
script
>
<
script
>
function ViewInit() {
$("#select-period").kendoMobileButtonGroup();
}
</
script
>
</
body
>
</
html
>