Disallow column reordering of grid-columns in Ext JS

Just had the requirement to disallow the reordering of columns inside an Ext JS grid. Took me a while to find it. The configuration is simple. { xtype: ‘gridcolumn’, text: ‘Column 1’, draggable: false // this disables the reordering }{ xtype: ‘gridcolumn’, text: ‘Column 1’, draggable: false // this disables the reordering }

Localizing the row-editor buttons via overrides and Sencha Cmd

If you are using the RowEditing plugin in your grid you are used to the “Update” and “Cancel” buttons. But localization for “de” is missing. So I did them myself using the overrides-folder of my application. I create a file RowEditor within the subfolder grid inside the overrides-folder itself. I dropped this code (note: the […]

Clearing a grid without actually removing the data in Ext JS

The following code clears a grid (with its filters) from a view controller. Ext.define(’Foo.TehViewController’, { extend: ‘Ext.app.ViewController’, alias: ‘controller.tehViewController’,   clearData: function () { var me = this, view = me.getView();   view.getStore().clearFilter(true); view.getStore().removeAll(true); view.getView().refresh(); } });Ext.define(‘Foo.TehViewController’, { extend: ‘Ext.app.ViewController’, alias: ‘controller.tehViewController’, clearData: function () { var me = this, view = me.getView(); view.getStore().clearFilter(true); view.getStore().removeAll(true); […]

One possible reason for 0x81020014 when querying a list for items in SharePoint

If you get that “famous” error: One or more field types are not installed properly. Go to the list settings page to delete these fields.0x81020014 you are given absolutely no hint which field and whats wrong with your SPQuery.Query I’m always using SPBuildInFieldId with the FieldRef-statements for out-of-the-box fields so a typo was not the […]