Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2136

how do i bind two json models on a control

$
0
0

Hi all,

 

i basically have a table inside which i've 5 columns of input fields. and a button(Add) on click of which, a new row gets added.

now i've set a json model on this table so I can add a row to the table on click of the Add button. good so far. now,I want to set a model on the input field so i can bind the data for the valuesuggests that are coming from the backend. when I do this the items are not getting bound to the control(as you can see in the below attached file). i assume, its conflicting because of the two different models that are set on the control(assuming, if a model is set on the table it is as well set on all the controls inside this table). how do I overcome this problem? also, am getting this error "A shared template must be marked with templateShareable:true in the binding info" when I bind the model to the table. has it got anything to do with the problem that am facing?

 

 

1.png


Viewing all articles
Browse latest Browse all 2136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>