.. _widget-resultextgrid-label: ======================== ResultExtGrid ======================== Widget that displays features attributes (fields) in a Ext.grid.GridPanel. One grid is created per defined resource (grid). The following widgets can use the ResultExtGrid widget (using the tag) : * :ref:`widget-queryonclick-label`. XML Sample ------------ Sample configuration, with only one resource (grid) defined .. code-block:: xml W_MyResultExtGrid false My resource R_MY_RESOURCE true rol_co_cla float 75 Sample configuration, with more than one resource (grid) defined .. code-block:: xml W_MyResultExtGrid false R_GMAP_PARK false GMap Parks NAME_E string 200 AREA float 150 PERIMETER float 150 YEAR_EST integer 50 R_GMAP_POPP false GMap Cities name string 200 reg_code integer 50 pop_range string 150 capital string 100 R_GMAP_PROV false GMap Provinces NAME string 150 NAME_E string 150 STATUS string 100 ISLAND_E string 150 drawWidget Sample ------------------- The widget can be drawn with the *drawWidget* function if is set to *false*. See :ref:`widget-basics-drawWidgets-label`, else it's automatically drawn in a Ext.Window. Mandatory Options ------------------- :inwindow: (Boolean) Defaults to *true*. Automatically draws the widget in a Ext.Window if set to *true*. Setting this to *false* means you must draw it manually in a Ext.Panel with the standard drawWidget method. Optional Options ------------------ :useResponseFields: (Boolean) Defaults to *false*. If set to true, the 'grids' option is ignored and all fields contained in the query response are shown instead. :grids: Contains nodes. At least one is mandatory when using this option. If this option and the 'useResponseFields' are not set, then no results are displayed. :grids/grid/resourcename: Name of the resource :grids/grid/displayname: Title that will appear at the top of the grid. Usually the same value as the layer title. :grids/grid/fields: Contains nodes. At least one is mandatory. :grids/grid/fields/field/id: Name of the field returned by the GetFeatureInfo request. :grids/grid/fields/field/label: Title of the column of the grid that will contain this field. :grids/grid/fields/field/type: Type of field. :grids/grid/fields/field/width: Width of the column of the grid. :grids/grid/delegatecontext: Must contains both *enabled* and *label* nodes if set. :grids/grid/delegatecontext/enabled: Boolean. If enabled, a DelegateContext button will appear at the top of the grid. :grids/grid/delegatecontext/label: Label on the DelegateContext button. Service Type -------------- wms Widget Action -------------- read