PDA

View Full Version : how to get data of grid(not store)



bjout
23 Mar 2011, 10:28 PM
now I have a grid with store filled and it have rendered fine,some renderer has been configured to columns. In another word,the view of the grid's data is not the data of store exactly.The data may have been rendered.
how to a get the 'view data'(not the data in the store) of the grid?

I do not have any idea to handle it and I would like to seek for advice and help. Thank you very much.

mcadirci
23 Mar 2011, 11:20 PM
May be you could use:
yourGrid.colModel.lookup[yourColIndex].renderer([yourGrid.store.data.items[yourRowIndex].data.yourField)

bjout
24 Mar 2011, 1:43 AM
May be you could use:
yourGrid.colModel.lookup[yourColIndex].renderer([yourGrid.store.data.items[yourRowIndex].data.yourField)


thank you,mcadirci.It's works!