It seems the editors don't support a knockout dataSource yet. Is this correct?
I am asking because I dislike the row updating in Infragistics grid and want to make my own form using the knockout datasource and infragistics components.
Hi Erwin Drongelen,
Once 13.1 is out of the door, we have knockout support for all of the IgniteUI Editors, including igDatePicker.
So you have to be able to complete your task.
Thanks,
I have downloaded 13.1, but I have got the same problem. I don't see a datasource option in de api documentation (http://help.infragistics.com/jQuery/2013.1/ui.igeditor#options). When setting the data-bind to a knockout datasource it is reset as soon as I apply the infragistics editor code.
Is the feature there, but not documented yet? How should I solve this?
Thanks in advance!
Hi Erwin,
When using any of the editors you can bind single value on it not the whole dataSource.
Here is a sample, on basic using of almost all the editors with one view model, but bound to different observable values:
http://es.infragistics.com/products/jquery/sample/editors/bind-editors-with-knockoutjs
On the value property you need to set the observable value from your viewmodel.
Here is a topic related to the Editors Knockouit Support
http://help.infragistics.com/NetAdvantage/jQuery/2013.1/CLR4.0?page=Configuring%20Knockout%20Support%20(Editors).html
Hope that helps,
Thanks
Thank you for your reply!
I am still having problems though.
When I use knockout with a simple input box I can do this:
<div><label>ID:</label><input type="text" class="testinput" data-bind="value: data['books']()[1].ID" /></div>
This works, and gives the ID of the second book in my datasource. So when using igNumericEditor I guess it should work like this too:
<div><label>ID:</label><input type="text" class="testinput" data-bind="igNumericEditor: { value: data['books']()[1].ID }" /></div>
This doen't do anything: no error, no result or anything. Referencing the full viewmodel like this:
<div><label>ID:</label><input type="text" class="testinput" data-bind="igNumericEditor: { value: myNameSpace.viewModel.data['books']()[1].ID }" /></div>
doesn't work either. (no error)
It is possible to use a single value in the datasource I presume? Am I still doing something wrong?
On first sight everything looks ok to me into the code. It should work the way you are explaining. Can you sent me an example you can cut the ds to 2-3 records, just for the test.
That will be the fastest way to help you directly on your sample.
Sorry for wasting your time.
While working on a sample i noticed I forgot (actually did not know) I had to include a separate javascript file for the editor datasource.
Thanks again!
So Now everything works as you need it? Is this correct
Yes, it does :)
Thanks for the great service on this forum!