Durga Shankar Reddy
Durga Shankar Reddy

Reputation: 1

EXT JS Grid SelModel checkbox issue

How to set the Grid Selmodel Chekbox gets selected based on the Text field Value. For Example:I have a grid of values like one,two,three and while page loading user will provide the value as Two in the textfield then the grid automatically gets selected the CheckBox of Two value.

Thanks in Advance...

Upvotes: 0

Views: 457

Answers (1)

ddragos
ddragos

Reputation: 81

I suppose you have a store containing the values from the grid so you could search for the record containing your value from the text field and after that, use the grid's selection model to select it: grid.getSelectionModel().select(record).

I created a fiddle to demonstrate what I just said: https://fiddle.sencha.com/#fiddle/1gvv

I hope this helps

Upvotes: 2

Related Questions