<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
<mx:Script>
    <![CDATA[
    public var scanCenterArray:Array;
        private function manipulateScanCenters(event):void
        {

        }
        private function headerCheckBoxClicked(event):void
        {

        }
    ]]>
</mx:Script>
<mx:Canvas id="scanCenterGridCanvas">
        <mx:DataGrid dataProvider="{scanCenterArray}" textAlign="center"
id="dgScanCenters" itemClick="manipulateScanCenters(event)">
      <mx:columns>
       <mx:DataGridColumn  width="20" dataField="IsSelected" headerText=""
sortable="false">
         <!--<mx:headerRenderer>
          <mx:Component>
           <mx:VBox>
            <mx:CheckBox>
             <mx:click>
              <![CDATA[
               parentDocument.headerCheckBoxClicked(event);
              ]]>
             </mx:click>
            </mx:CheckBox>
           </mx:VBox>
          </mx:Component>
         </mx:headerRenderer>-->
         <mx:itemRenderer>
          <mx:Component>
                       <mx:CheckBox>
                        <mx:click>
                         <![CDATA[
                          parentDocument.changeIsSelectedStatus(data.Id,
this.selected);
                         ]]>
                        </mx:click>
                       </mx:CheckBox>
                </mx:Component>
         </mx:itemRenderer>
        </mx:DataGridColumn>
        <mx:DataGridColumn headerText="Id" dataField="Id" visible="false" />
        <mx:DataGridColumn headerText="Name" dataField="Name"/>
        <mx:DataGridColumn headerText="Street" dataField="Street"/>
        <mx:DataGridColumn headerText="State" dataField="State"/>
        <mx:DataGridColumn headerText="ZIP" dataField="ZIP"/>
        <mx:DataGridColumn headerText="Email" dataField="Email"/>
        <mx:DataGridColumn headerText="Phone" dataField="Phone"/>
        <mx:DataGridColumn headerText="Fax" dataField="Fax"/>
        <mx:DataGridColumn headerText="Edit" dataField="Id">
         <mx:itemRenderer>
        <mx:Component>
         <mx:LinkButton label="Edit"/>
        </mx:Component>
       </mx:itemRenderer>
        </mx:DataGridColumn>
        <mx:DataGridColumn headerText="Delete" >
         <mx:itemRenderer>
        <mx:Component>
         <mx:LinkButton label="Delete" />
        </mx:Component>
       </mx:itemRenderer>
        </mx:DataGridColumn>
     </mx:columns>
    </mx:DataGrid>
      <mx:CheckBox x="{dgScanCenters.x}" y="{dgScanCenters.y}"
paddingTop="2" paddingLeft="2" click="headerCheckBoxClicked(event)"/>
       </mx:Canvas>
     <!-- <mx:CheckBox x="{dgScanCenters.x}" y="{dgScanCenters.y}"
paddingTop="2" paddingLeft="2" click="headerCheckBoxClicked(event)"/>
       </mx:Canvas>-->

</mx:Application>




Veeru
ITON Technologies


On Sun, Jan 17, 2010 at 1:15 PM, ravi kanth <[email protected]> wrote:

> Jitendra,
>
> i have copied complete code give by you in <mx:Applicatio> tag. But it is
> showing error: " The element Type '*mx:Application' must be terminated by
> the matching end tag '</mx:Application>'* "
>
>
>
> On Fri, Jan 15, 2010 at 10:07 AM, Jitendra Jain <
> [email protected]> wrote:
>
>> Can yu please paste the whole code?
>>
>>
>> On Thu, Jan 14, 2010 at 8:19 PM, ravi kanth <[email protected]> wrote:
>>
>>> Hi Jitendra,
>>>
>>> the below code is not working.
>>> I copied this code in mxml application, it is throwing error : " The
>>> element Type '*mx:Application' must be terminated by the matching end
>>> tag '</mx:Application'* ". I checked and properly i end the
>>> </mx:Application> tag.
>>>
>>> Can you please help me .
>>>
>>> Thanks,
>>> Ravi
>>>
>>>
>>> On Wed, Jan 13, 2010 at 1:13 PM, Jitendra Jain <
>>> [email protected]> wrote:
>>>
>>>> Look at this
>>>>
>>>>
>>>> <mx:Canvas id="scanCenterGridCanvas">
>>>>         <mx:DataGrid dataProvider="{scanCenterArray}" textAlign="center"
>>>> id="dgScanCenters" itemClick="manipulateScanCenters(event)">
>>>>       <mx:columns>
>>>>        <mx:DataGridColumn  width="20" dataField="IsSelected"
>>>> headerText="" sortable="false">
>>>>          <!--<mx:headerRenderer>
>>>>           <mx:Component>
>>>>            <mx:VBox>
>>>>             <mx:CheckBox>
>>>>              <mx:click>
>>>>               <![CDATA[
>>>>                parentDocument.headerCheckBoxClicked(event);
>>>>               ]]>
>>>>              </mx:click>
>>>>             </mx:CheckBox>
>>>>            </mx:VBox>
>>>>           </mx:Component>
>>>>          </mx:headerRenderer>-->
>>>>          <mx:itemRenderer>
>>>>           <mx:Component>
>>>>                        <mx:CheckBox>
>>>>                         <mx:click>
>>>>                          <![CDATA[
>>>>                           parentDocument.changeIsSelectedStatus(data.Id,
>>>> this.selected);
>>>>                          ]]>
>>>>                         </mx:click>
>>>>                        </mx:CheckBox>
>>>>                 </mx:Component>
>>>>          </mx:itemRenderer>
>>>>         </mx:DataGridColumn>
>>>>         <mx:DataGridColumn headerText="Id" dataField="Id"
>>>> visible="false" />
>>>>         <mx:DataGridColumn headerText="Name" dataField="Name"/>
>>>>         <mx:DataGridColumn headerText="Street" dataField="Street"/>
>>>>         <mx:DataGridColumn headerText="State" dataField="State"/>
>>>>         <mx:DataGridColumn headerText="ZIP" dataField="ZIP"/>
>>>>         <mx:DataGridColumn headerText="Email" dataField="Email"/>
>>>>         <mx:DataGridColumn headerText="Phone" dataField="Phone"/>
>>>>         <mx:DataGridColumn headerText="Fax" dataField="Fax"/>
>>>>         <mx:DataGridColumn headerText="Edit" dataField="Id">
>>>>          <mx:itemRenderer>
>>>>         <mx:Component>
>>>>          <mx:LinkButton label="Edit"/>
>>>>         </mx:Component>
>>>>        </mx:itemRenderer>
>>>>         </mx:DataGridColumn>
>>>>         <mx:DataGridColumn headerText="Delete" >
>>>>          <mx:itemRenderer>
>>>>         <mx:Component>
>>>>          <mx:LinkButton label="Delete" />
>>>>         </mx:Component>
>>>>        </mx:itemRenderer>
>>>>         </mx:DataGridColumn>
>>>>      </mx:columns>
>>>>     </mx:DataGrid>
>>>>       <mx:CheckBox x="{dgScanCenters.x}" y="{dgScanCenters.y}"
>>>> paddingTop="2" paddingLeft="2" click="headerCheckBoxClicked(event)"/>
>>>>        </mx:Canvas>
>>>>       <mx:CheckBox x="{dgScanCenters.x}" y="{dgScanCenters.y}"
>>>> paddingTop="2" paddingLeft="2" click="headerCheckBoxClicked(event)"/>
>>>>        </mx:Canvas>
>>>> On Wed, Jan 13, 2010 at 3:07 AM, ravi kanth <[email protected]> wrote:
>>>>
>>>>> HiAll,
>>>>>
>>>>> how  multi selecting checkBox work s in AdvancedDataGrid.
>>>>> If i select the checkBox in Advanced datagrid header checkBox, all the
>>>>> result column checkboxes has to be selected.
>>>>>
>>>>> Please send me any sample code.see my attached jpeg for reference
>>>>>
>>>>> Thanks,
>>>>> Ravi
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Flex India Community" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<flex_india%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Flex India Community" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<flex_india%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Flex India Community" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<flex_india%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/flex_india?hl=en.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

Reply via email to