How to bind spinner using value and text pair?

Hello,
i want to bind spinner with dynamic values which i am getting from database using webapi. so how can i bind spinner using value and text pair as it happens in web apps.
exmaple:

0 John
1 Marry
2 Tim
4 Robert
10 Peter

Sign In or Register to comment.