Note that there are some explanatory texts on larger screens.

plurals
  1. POflex:how to make some sparkgrid columns editable
    text
    copied!<p>I want to make two spark grid columns editable on check box click event.I have written following code for that. but i dont have java function to implement this. so can anyone plz help me..?</p> <pre><code>&lt;s:DataGrid id="dataGrid" x="3" y="44" width="792" height="243" editable="true" fontSize="15" requestedRowCount="4" dataProvider="{getSalesReturnCgt.lastResult}"&gt; &lt;s:columns&gt; &lt;s:ArrayList&gt; &lt;s:GridColumn dataField="selectFlag" rendererIsEditable="true" headerText="SrNo" width="60" editable="false"&gt; &lt;s:itemRenderer&gt; &lt;fx:Component&gt; &lt;s:GridItemRenderer&gt; &lt;s:layout&gt; &lt;s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/&gt; &lt;/s:layout&gt; &lt;/fx:Script&gt; &lt;s:Label id="srno" text="{cgtsrobj.sr_no}" /&gt; &lt;s:CheckBox id="chkBox" click="chkBox_clickHandler(event)" /&gt; &lt;/s:GridItemRenderer&gt; &lt;/fx:Component&gt; &lt;/s:itemRenderer&gt; &lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="lot_Id" headerText="Item"&gt;&lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="lot_Description" headerText="Item Description"&gt;&lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="local_Price" headerText="Rate"&gt;&lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="discount" headerText="Discount"&gt;&lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="available_qty" headerText="Avail Qty"&gt;&lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="return_qty" headerText="Return Qty" id="txtReturn"&gt; &lt;s:itemEditor&gt; &lt;fx:Component&gt; &lt;s:TextInput restrict="0-9" width="20" visible="true" /&gt; &lt;/fx:Component&gt; &lt;/s:itemEditor&gt; &lt;/s:GridColumn&gt; &lt;s:GridColumn dataField="sales_qty" headerText="Sales Qty" &gt; &lt;s:itemEditor&gt; &lt;fx:Component&gt; &lt;s:TextInput restrict="0-9" width="20" visible="true" /&gt; &lt;/fx:Component&gt; &lt;/s:itemEditor&gt; &lt;/s:GridColumn&gt; &lt;s:GridColumn dataField=" " headerText="Amount"&gt;&lt;/s:GridColumn&gt; &lt;/s:ArrayList&gt; &lt;/s:columns&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload