Hi,
I'm using example http://www.igniteui.com/grid/bind-grid-with-ko ( see attached zip file) but seems like it is not working. I'm getting header but not data.
-Manish
Hello Manish,
When using height: 100%, the grid should be inside of a container with specified height.
If you want to span the grid table on the entire page you can use:
html, body { height: 100%;}
See attached example , I'm using ko component and it is not working. It works fine with template and not with template1 ( only difference is // between this two template)
Any explanation why this behaviour ?
Hello,
You need to specify a primaryKey. For some reason template is not involving the selection feature. Template1 is using and is being messed up, because there is no primaryKey defined.
I'll have to note you that you should add Updating(this feature also requires primaryKey) in order to update observables and to use knockout two-way data binding.
Why i need updating feature ? I don't want to give ability to add new row , just update record and provide textbox on top. Cell which I'm going to update would be observable.
Ok, great.
Sure I'll start new thread Thanks!
For better handling your questions, please start a new thread if the issue is not related to the original one.
I'll have to say that at this point you need to specify all fields to be observable:
element.ID = ko.observable(element.ID);element.ContactName = ko.observable(element.ContactName);element.City = ko.observable(element.City);element.Country = ko.observable(element.Country);
Please review the modified sample.
Stuck with another issue with KO grid. See attached example my first column is contact name but it is showing ID( it should be same as last column). It's happening when i make ID as observable.
Knockout extensions are using the Updating feature to update the grid data, when the change is done through the observables.
You can also disable add/delete row through the option enableAddRow and enableDeleteRow