Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-04-2009, 05:33 PM   #1
paraglidersd
Registered User
 
Join Date: Jan 2009
Posts: 18
Default datagrid and [null] display

question on a null cell in a datagrid. If the data provider provides an element/column (cell) with no content (for a datagrid), I get a "[null]" displayed in that cell. How do you handle it so that it displays nothing instead of the '[null]'?
paraglidersd is offline   Reply With Quote
Old 02-04-2009, 07:08 PM   #2
paraglidersd
Registered User
 
Join Date: Jan 2009
Posts: 18
Default oops, I mean

I apologize. I meant that the cell displays "[object Object]". any ideas?
paraglidersd is offline   Reply With Quote
Old 02-04-2009, 09:51 PM   #3
drkstr
Flexpert
 
drkstr's Avatar
 
Join Date: Sep 2006
Location: Seattle, WA: USA
Posts: 1,587
Default

Strange, I don't remember that being the default behavior. What if you assign an empty string to the property in question instead of null? Otherwise you can add programmatic checks with an itemRenderer. It seems like that shouldn't be necessary though.


Best Regards,
~Aaron
drkstr is offline   Reply With Quote
Old 02-04-2009, 10:14 PM   #4
fx.barrett
Paintball Freak
 
fx.barrett's Avatar
 
Join Date: Jul 2008
Location: Romania, TM
Posts: 467
Send a message via MSN to fx.barrett Send a message via Skype™ to fx.barrett
Default

Nopes, it shouldn't display null except if the provider you are assignig somehow send that null value as actual "null". Take a lookt at this example: http://blog.wisebisoft.com/2009/02/0...vice-and-flex/
__________________
FLASHFORUM.RO - You must speak Romanian in order to join.
BLOG.WISEBISOFT.COM - Share and Experiment.
fx.barrett is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:55 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.