#1020: AjaxGrid can't display any rows if one row has None
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  anonymous   
     Type:  defect                |      Status:  new         
 Priority:  normal                |   Milestone:  0.9         
Component:  Widgets               |     Version:  0.9a6       
 Severity:  normal                |    Keywords:  AjaxGrid Bug
----------------------------------+-----------------------------------------
 something like this:

 grid = AjaxGrid(refresh_url="/search")

 @expose(format="json")
 def search(self):
     return dict(headers = ["1"], rows=[[None],["2"]])

 the AjaxGrid will not display anything if there is a None in any row.

 the bug may be in TurboGears-0.9a6-
 py2.4.egg\turbogears\static\js\widgets.js


 PS. because i know very little about javascript, i just change simplejson
 translate None to "".

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1020>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to