1) Why do you think the cancel button would wipe all the entries?
http://screencast.com/t/MJ6AJU2Kf
2) Is there ANY way to do a drag\drop reorder with kendo? You know how the left of the items would have draghandles and the user could re-order items as needed and the model (MVVM) would reflect the new order?
Am I missing something? Should be like the demo?
Steve
http://screencast.com/t/MJ6AJU2Kf
2) Is there ANY way to do a drag\drop reorder with kendo? You know how the left of the items would have draghandles and the user could re-order items as needed and the model (MVVM) would reflect the new order?
<
div
data-role
=
"listview"
data-template
=
"list-template"
data-edit-template
=
"edit-template"
data-bind
=
"source: controls"
>
</
div
>
<
script
id
=
"list-template"
type
=
"text/x-kendo-template"
>
<
div
>
# if(data.ControlType === "TextBox") { #
<
h3
>#:Label#</
h3
>
<
input
type
=
"text"
data-bind
=
"value: PropertyName"
class
=
'k-textbox'
disabled
=
"disabled"
/>
# } else if(data.ControlType === "DateTime"){ #
<
h3
>#:Label#</
h3
>
<
input
type
=
"text"
data-bind
=
"value: PropertyName"
data-role
=
"datetimepicker"
disabled
=
"disabled"
/>
# } else if(data.ControlType === "CheckBox"){ #
<
label
>
<
span
data-type
=
"CheckBox"
>
<
input
type
=
"checkbox"
disabled
=
"disabled"
>
</
span
>
#:Label#
</
label
>
# } #
<
a
class
=
"k-button k-button-icontext k-edit-button"
href
=
"\\#"
><
span
class
=
"k-icon k-edit"
></
span
></
a
>
<
a
class
=
"k-button k-button-icontext k-delete-button"
href
=
"\\#"
><
span
class
=
"k-icon k-delete"
></
span
></
a
>
</
div
>
</
script
>
<
script
id
=
"edit-template"
type
=
"text/x-kendo-template"
>
<
div
>
<
input
type
=
"text"
data-bind
=
"value: Label"
class
=
'k-textbox'
style
=
"width: 100px"
required
=
"required"
/>
<
br
/>
<
input
type
=
"text"
data-bind
=
"value: PropertyName"
class
=
'k-textbox'
required
=
"required"
/>
<
select
data-bind
=
"source: controlTypes, value: ControlType"
data-role
=
"dropdownlist"
></
select
>
<
br
/>
<
div
class
=
"edit-buttons"
>
<
a
class
=
"k-button k-button-icontext k-update-button"
href
=
"\\#"
><
span
class
=
"k-icon k-update"
></
span
>Update</
a
>
<
a
class
=
"k-button k-button-icontext k-cancel-button"
href
=
"\\#"
><
span
class
=
"k-icon k-cancel"
></
span
>Cancel</
a
>
</
div
>
</
div
>
</
script
>
Am I missing something? Should be like the demo?
Steve