0

I am trying to select a default value of my combobox. I have tried using value: 'Minor' But this didn't help as when I try to retrieve the value it gives me Minor. in my combobox display is Minor and value is 1.

I have also looked at other selections like forceSelection but those didn't help either. Please look at the top left cell (which has the value of minor) in this fiddle.

Any help would be appreciated.

3
  • 1
    Welcome to Stack Overflow! In the future, please include all relevant code in your post and don't just include a link to a code hosting site. Your post should stand alone from any other resource; consider what would happen if that site went down in the future! Commented May 24, 2018 at 16:52
  • @Tim Thanks. I'll keep that in mind next time. Sorry Commented May 24, 2018 at 17:06
  • Update the question with all code snippets please! Commented May 24, 2018 at 22:32

1 Answer 1

1

You set valueField to value but you are setting text as combo default value

Change value to '1'

value: '1'
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the quick response. But if I do that then the display would change from "Minor" to '1'. wouldn't it? I want display to be "Minor" and value be '1'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.