GridView Override adding ’showAll’ button and ‘columnViews’ filter sets.

March 3rd, 2008 Jay Garcia

I got the idea for this when I was working with IBM’s net cool  Omnibus.  The users are allowed a set of ‘views’ to automatically show a set of columns.

Synopsis:

This override gives you the ability to have preset ‘filters’ called ‘columnViews’. Also, I added a ’showAll’ button above the columns checkboxes. I have not tested this with anything other than the generic gridPanel.

Example: http://tdg-i.com/js/examples/ext/dataGrid/colview/

View in action: Here (screencast)


Example on how to use this override:

The actual override code

Posted in Completed Projects, EXT Examples, EXTJS | No Comments »

Displaying Code in Wordpress with EXT and GESHI

March 2nd, 2008 Jay Garcia

With about an hour’s worth of effort, I added the ability to display code using Ext and GESHI. My goal was not to have to hack wordpress to accept javascript, and take full use of Ext’s updater function. Instead of embedding the code in wordpress, I simply put a custom xhtml tag like below. Ext DomQuery finds the tags, and uses them to append panels to display the code. Geshi simply formats it on the server side. I found this to be much faster than any javascript syntax highlighter. I’m going to look into filling the toolbar with download and copy to clipboard functions (using flash).

Example Html:
< tdgicode source=”sourceTo/js.js” paneltitle=”Test 1 Title” />

Example Javascript:

Posted in EXT Examples | No Comments »