Export to GitHub

struts2-jquery - issue #739

Support for the Frozen Column Feature provided by jqGrid since version 4.3.0


Posted on Jan 3, 2012 by Swift Lion

Support for the Frozen Column Feature provided by jqGrid since version 4.3.0

Comment #1

Posted on Jan 3, 2012 by Swift Lion

http://code.google.com/p/struts2-jquery/source/detail?r=1582

The Frozen Column can be enabled simple by setting the frozen attribute in the Grid Column Tag to true. Note it works only for the first Columns, you can't froze any columns ad the end of your Grid.

Sample from Showcase:

<sjg:grid
    id="gridedittable"
    caption="Customers Examples (Editable)"
    dataType="json"
    href="%{remoteurl}"
    pager="true"
    navigator="true"
    navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
    navigatorAddOptions="{height:280,reloadAfterSubmit:true}"
    navigatorEditOptions="{height:280,reloadAfterSubmit:false}"
    navigatorEdit="false"
    navigatorView="false"
    navigatorDelete="true"
    navigatorDeleteOptions="{height:280,reloadAfterSubmit:true}"
    navigatorExtraButtons="{
        seperator: { 
            title : 'seperator'  
        }, 
        hide : { 
            title : 'Show/Hide', 
            icon: 'ui-icon-wrench', 
            topic: 'showcolumns'
        },
        alert : { 
            title : 'Alert', 
            onclick: function(){ alert('Grid Button clicked!') }
        }
    }"
    gridModel="gridModel"
    rowList="10,15,20"
    rowNum="15"
    editurl="%{editurl}"
    editinline="true"
    onSelectRowTopics="rowselect"
    onEditInlineSuccessTopics="oneditsuccess"
    viewrecords="true"
    width="700"
    shrinkToFit="false"
>
    <sjg:gridColumn name="id" frozen="true" index="id" title="ID" width="60" formatter="integer" editable="false" sortable="false" search="true" searchoptions="{sopt:['eq','ne','lt','gt']}"/>
    <sjg:gridColumn name="name" frozen="true" index="name" title="Name" width="250" editable="true" edittype="text" sortable="true" search="false"/>
    <sjg:gridColumn name="lastName" index="lastName" title="Last Name" sortable="false"/>
    <sjg:gridColumn name="firstName" index="firstName" title="First Name" sortable="false"/>
    <sjg:gridColumn name="addressLine1" index="addressLine1" title="Adress" sortable="false"/>
    <sjg:gridColumn name="country" index="country" title="Country" editable="true" edittype="select" editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}" sortable="false" search="false"/>
    <sjg:gridColumn name="city" index="city" title="City" editable="true" edittype="text" sortable="false" search="false"/>
    <sjg:gridColumn name="creditLimit" index="creditLimit" title="Credit Limit" align="right" formatter="currency" editable="true" edittype="text" sortable="false" search="false"/>
</sjg:grid>

Comment #2

Posted on Mar 13, 2012 by Swift Lion

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Enhancement Priority-Medium Component-Grid-Plugin Milestone-3.3.0