1 Reply Latest reply on Aug 2, 2007 2:24 AM by ilfaqm

    Numeric Stepper in DataGrid

      hi folks,

      i am using a data grid , in which i have a numeris stepper as item renderer.. on click of Book button,
      i need to access the value of numeric stepper .. but am ot getting the value...

      can any one suggest me how to acces the value of the numeric stepper in the data grid..?

      My code is as follows..

      <mx:Canvas width="100%" >
      <mx:Button x="673" y="10" label="Book" toolTip="Click here to continue booking"

      <mx:DataGrid id="dg" width="98%" styleName="GridColumnText" variableRowHeight="true"
      dataProvider="{product_details}" enabled="{!ds.commitRequired}" creationComplete="fill_prodDetails()"
      verticalScrollPolicy="{mx.core.ScrollPolicy.OFF}" rowCount="8" rowHeight="35" x="7" y="36">
      <mx:columns >
      <mx:DataGridColumn id ="rate" dataField="prdt_rate" headerText="Rate"
      headerStyleName="DynamicLabel" width="40" wordWrap="true" editable="false"/>

      <mx:DataGridColumn id ="room_desc" dataField="room_desc" headerText="Room Description"
      headerStyleName="DynamicLabel" wordWrap="true" editable="false" width="150" />

      <mx:DataGridColumn id="status" headerText="Available" labelFunction="status_label"
      headerStyleName="DynamicLabel" editable="false" width="50"/>

      <mx:DataGridColumn id="rate_desc" headerText="Rate Description" editable="false"
      dataField="rate_desc" headerStyleName="DynamicLabel" width="150"
      wordWrap="true" />

      <mx:DataGridColumn id="terms" headerText="T &amp; Cs" editable="false"
      headerStyleName="DynamicLabel" width="50" wordWrap="true"

      <mx:DataGridColumn id="qty" headerText="Quantity" editable="false"
      dataField="prdt_qty" headerStyleName="DynamicLabel" width="45"
      <mx:HBox width="25%" horizontalCenter="0" horizontalAlign="center"
      styleName="GridColumnText" paddingTop="5">
      <mx:NumericStepper id="quantity" maximum="1" />




      public function OnBook_click():void{
      var request:URLRequest = new URLRequest("/quick_search/bookingdetails.mxml");

      Please go thru my code and give me suggestions..
      Any help in this will be appreciated..

      thx in advance
        • 1. Re: Numeric Stepper in DataGrid
          Sorry, it isn't a response for "stepper ..." (I'm a biginner in adobe products)
          My problem is how to add a column-nmber in a datagrid under flex builder. Like in excel sheet, the column number mut be statiic : it dosen't change when the table is sorted on an arbitrary colomun. So we can détermine dyanmiqualy the ranks of individuals by columns

          Thank you
          Qafli, from France