knockout.js - Display tabular and editable data with koGrid or any other control -
these requirements:
- i want show tabular , editable data.
- some columns readonly , editable.
- the tabular "control" should allow me define or create template column embed example html editor
- i not need sort/filter/group etc. tabular "control"
- i want bind tabular "control" knockoutjs
- i using jquery
what tabular control/widget fits needs @ best?
do have use knockout grid or simple table enough or other suggestion?
if understand right, don't need grid control requirements in opinion.
see example made build in knockout features , html (with bootstrap cause i'm lazy):
http://jsfiddle.net/infantrash/epbeb/
you can make templates columns. simple example: column "freetext" editable, if in edit mode, display input field, otherwise text.
<script type="text/html" id="freetext-template"> <span data-bind="text: freetext, visible: $root.edit() == false"></span> <input data-bind="value: freetext, visible: $root.edit" /> </script> i don't see need use kogrid or other control such simple scenario. might wanna use when comes sorting, filtering, paging...
Comments
Post a Comment