breeze - How do I bind the column with the property? -
i'm trying connect slickgrid , breeze.js, got problem.
breeze generates js model you, , object properties has , set methods like:
var p1 = myobj.property1(); var p2 = myobj.property2(); myobj.property1("test"); but in slickgrid columns model, how bind column property?
columns : [ { id: "id", name: "id", field: "property1" //this way see every row on page text "function..." }, { id: "prop2", name: "prop2", field: "property2" } ]
try using breeze "backingstore" adapter instead of default "ko" (knockout) adapter.
this requires single line of breeze configuration near top of file
breeze.config.initializeadapterinstance("modellibrary", "backingstore", true); the backingstore adapter creates es5 props model instead of "knockout" properties. guessing these easier slickgrid bind to.
Comments
Post a Comment