The example code for enabling Knockout support in the ejGrid control is as follows:
In this example, the view model property currentpage with an observable value is associated with the currentPage property of the ejGrid control’s pageSettings and the value property of the ejNumericTextbox control, which offers two-way binding.
Since we have given an observable value to the view model property currentpage, the binding will update the element values (the numeric text box value and the grid pager) whenever the value changes. When the user updates the value in the ejNumericTextbox control, the view-model property updates the grid’s current page. Likewise, when the user changes the page in the ejGrid control, the view-model property updates the value in the numeric text box.