Yes, you are right, I created a new project and used the same code, it
worked fine.
So how could I resolve the issue with my existing project?

Thanks


On Sat, Oct 18, 2008 at 7:10 PM, Venkat Viswanathan
<[EMAIL PROTECTED]>wrote:

> Just try putting the code (that you pasted in this thread) in a new Flex
> project and see what you get. In my case, the mxml had only the snippet that
> u had provided. And probably thats the reason why it worked for me. Maybe
> you have some other code in your project that is creating the problem.
>
> Regards,
> Venkat
> www.venkatv.com
>
> On Sat, Oct 18, 2008 at 8:57 AM, flex kwt <[EMAIL PROTECTED]> wrote:
>
>> Very strange.
>> I am using Flex 3.
>>
>> What could be the reason for this?
>>
>> On Sat, Oct 18, 2008 at 1:09 AM, Venkat Viswanathan <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi,
>>>
>>> Surprising.. It is okay for me... See the attached screenshot.
>>>
>>> BTW, are you using Flex 2 or 3?
>>>
>>> Regards,
>>> Venkat
>>> www.venkatv.com
>>>
>>> On Thu, Oct 16, 2008 at 10:37 AM, flex kwt <[EMAIL PROTECTED]> wrote:
>>>
>>>> Hi, Sorry for the delay in the showing the code, Pasted below is one
>>>> sample code I used for testing. Except for the first and the last column, I
>>>> cannot see alternate colors.Attached is the screen shot for the same.
>>>>
>>>> Thanks
>>>>
>>>> ****************Code********************************** <?xml
>>>> version="1.0"?> <mx:Application xmlns:mx="
>>>> http://www.adobe.com/2006/mxml"; width="800"> <mx:Script> <![CDATA[
>>>> import mx.controls.Alert; import mx.events.ListEvent; import
>>>> mx.collections.ArrayCollection; [Bindable] private var
>>>> employees:ArrayCollection = new ArrayCollection([{"name":"Christina
>>>> Coenraets","phone":"555-219-2270","email":"[EMAIL 
>>>> PROTECTED]","active":"true"},{"name":"Joanne
>>>> Wall","phone":"555-219-2012","email":"[EMAIL 
>>>> PROTECTED]","active":"true"},{"name":"Maurice
>>>> Smith","phone":"555-219-2012","email":"[EMAIL 
>>>> PROTECTED]","active":"false"},{"name":"Mary
>>>> Jones","phone":"555-219-2000","email":"[EMAIL 
>>>> PROTECTED]","active":"true"}]);
>>>> ]]> </mx:Script> <mx:DataGrid id="dg" width="500" height="200" rowCount="5"
>>>> dataProvider="{employees}" > <mx:columns> <mx:DataGridColumn
>>>> dataField="name" headerText="Name"/> <mx:DataGridColumn dataField="phone"
>>>> headerText="Phone"/> <mx:DataGridColumn dataField="email"
>>>> headerText="Email"/> <mx:DataGridColumn headerText=""> <mx:itemRenderer>
>>>> <mx:Component> <mx:Button label="Select" /> </mx:Component>
>>>> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid>
>>>> </mx:Application>
>>>> **********************************Code********************************
>>>>
>>>>
>>>> On Sat, Oct 11, 2008 at 12:52 AM, Venkat Viswanathan <
>>>> [EMAIL PROTECTED]> wrote:
>>>>
>>>>> No... i wanted to see the actionscript code that you are using to add
>>>>> new columns...
>>>>>
>>>>> Regards,
>>>>> Venkat
>>>>> www.venkatv.com
>>>>>
>>>>>
>>>>> On Thu, Oct 9, 2008 at 7:36 PM, flex kwt <[EMAIL PROTECTED]> wrote:
>>>>>
>>>>>> This is part of the code where I am using datagrid
>>>>>> <HBox width="100%" height="100%">
>>>>>>  <mx:DataGrid id="dg" dataProvider="{Test}" width="100%" height="50%"
>>>>>>  >
>>>>>>      <mx:columns>
>>>>>>      <mx:DataGridColumn  width="100" headerText="Date"   
>>>>>> dataField="ValueDate"
>>>>>>   fontSize="9"  />
>>>>>>   <mx:DataGridColumn  width="100" headerText="Time" dataField="ValueTime"
>>>>>>   fontSize="9"  />
>>>>>>   <mx:DataGridColumn  width="80" headerText="Status" 
>>>>>> dataField="ValueStatus"
>>>>>>
>>>>>>   fontSize="9">
>>>>>>
>>>>>> Cannot figure why this is happening.
>>>>>>
>>>>>>
>>>>>> On Thu, Oct 9, 2008 at 9:41 PM, [EMAIL PROTECTED] <
>>>>>> [EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>>>
>>>>>>> Looks like you are having item renderer for these columns, If yes,
>>>>>>> then make sure that there is no background color for the item
>>>>>>> renderer.
>>>>>>> For resolving the problem, you can first try just to add columns
>>>>>>> dynamically and once you know that there is no problem, then assign
>>>>>>> the data/item renderers
>>>>>>>
>>>>>>> HTH,
>>>>>>> Sambhav
>>>>>>>
>>>>>>> On Oct 8, 9:33 pm, "Venkat Viswanathan" <[EMAIL PROTECTED]>
>>>>>>> wrote:
>>>>>>> > Hi,
>>>>>>> >
>>>>>>> > It should not happen... I tried doing it and the alternating colors
>>>>>>> are
>>>>>>> > appearing for me when I am adding new columns.
>>>>>>> >
>>>>>>> > Can you paste your code that you are using to add new columns?
>>>>>>> >
>>>>>>> > And how are you specifying alternating colors? Through MXML or CSS?
>>>>>>> >
>>>>>>> > Regards,
>>>>>>> > Venkat
>>>>>>> >
>>>>>>> > On Wed, Oct 8, 2008 at 2:30 PM, flex kwt <[EMAIL PROTECTED]>
>>>>>>> wrote:
>>>>>>> > > Hello,
>>>>>>> > > In my datagrid when I a new column, the datacoloumn alternate
>>>>>>> color doesn't
>>>>>>> > > show up for the new datacolumns.
>>>>>>> >
>>>>>>> > > What could be the reason for this?
>>>>>>> >
>>>>>>> > > Attached is the screenshot.
>>>>>>> >
>>>>>>> > > Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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