PDA

View Full Version : [CLOSED] Dynamic Gridpanel Javascript MVC



RCM
Aug 22, 2012, 11:02 PM
Hi Guys,

I am trying to upgrade some javascript code for creating the gridpanel dynamically from code. Do you guys have a sample doing this using buffered scrolling. I have no choice but to create the gridpanel dynamically at runtime as I don't know the fields until then.

Daniil
Aug 23, 2012, 5:55 AM
Hi,

If you are able to create a required grid in markup, then you could look at the generated script in Page Sources.

For example (in Chrome):

1. Open this in a separate browser tab.
http://examples2.ext.net/Examples/GridPanel/Infinite_Scrolling/Buffered_Scrolling/

2. Press Ctrl + U.

3. Search for the Ext.onReady script (it can be in "extnet-init-js" script if ResourceManager's InitScriptMode="Linked")

4. Copy this script.

5. Paste into
http://jsbeautifier.org/
and press "Beautify".