PDA

View Full Version : BufferedRenderer plugin



jamil.isayyed
4 Aug 2014, 3:27 AM
Hello Folks,

i have a general question about buffered renderer plugin "Ext.grid.plugin.BufferedRenderer ptype: bufferedrenderer".

so how this plugin is working, lets say i have configured the plugin with the following parameters:


plugins: {
ptype: 'bufferedrenderer',

trailingBufferZone: 20, // Keep 20 rows rendered in the table behind scroll

leadingBufferZone: 50 // Keep 50 rows rendered in the table ahead of scroll
},



so 20 records will be included and rendered in the html document and the other records will be added when the user scroll down and it will be appended to the html document?

Thanks in advance,
Jamil ISayyed

scottmartin
4 Aug 2014, 10:52 AM
Here are a few articles to explain how this is working:
http://www.sencha.com/blog/first-look-at-ext-js-4-2-grid/
http://vimeo.com/59611158 (covers store and plugin setup)

To answer you question, trailing keeps those records behind the scroll, leading is records ahead of scroll.