PDA

View Full Version : [CLOSED] Store Row Count In CodeBehind



ebeker
Nov 13, 2013, 5:57 PM
How can i get the row count for a store of a gridpanel in codebehind.

Baidaly
Nov 13, 2013, 9:08 PM
Hello!

You should send it from the client as ExtraParams. To get count you can use the following two methods:

http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.data.Store-method-getCount
http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.data.Store-method-getTotalCount

ebeker
Nov 14, 2013, 2:42 PM
Same thing for gridpanel row count in codebehind ?

Baidaly
Nov 14, 2013, 9:59 PM
Same thing for gridpanel row count in codebehind ?

Sorry, what do you mean? You need to get only row count on current page or total rows count in the Grid?