on 07-21-2016 8:50 AM
Hi all,
I try to bind model to the control —item. And the property 'selected' bind to model which is undefined by default. Whether the property will be added if I select this item? I try it and found it can't be created. So the way is to catch the select event and call setProperty of model to add it? Thanks for any suggestion.
Thanks,
Mengchi
Hi Mengchi,
You mean something like this? Plunker
Checked is a property added in the model. And once you check the combobox placed in each item, you see the value gets changed to true / false.
Working Snippet:
Regards,
Sai.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mengchi,
Yes, we have to create key value pair, if you're able to fetch from back-end then this code is not required.
If you don't want to create at model definition, then an alternative would be something like this: Plunker
Regards,
Sai.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.