简体   繁体   中英

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...

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM