pictor
16 Feb 2011, 11:55 AM
I am trying to figure out how to apply an Ext.ux.Rating object in each cell of a grid column. I have a renderer for my cell obviously, but I am missing something in the steps I need.
Ext.ux.Rating acts on html already in existence, converting radio buttons into stars (effectively), but the renderer doesn't actually provide any html until it finishes running. What I need in essence is a renderer to draw the html, and then a followup renderer to create the Ext.ux.Rating and apply it into the space created by the html already rendered.
I made some ground by create a div with the id of rating_source with my "template" html, and then harvesting that over and over parsing it into my grid...but it feels very clunky (and I still have some issues of id and name values to make them distinct on each row to work out).
I feel I am going about this wrong though.
It's also not rendering as stars, but I am assuming I just have a flaw in mapping my css there...and I anticipate working that out.
Any advice greatly appreciate.
Ext.ux.Rating acts on html already in existence, converting radio buttons into stars (effectively), but the renderer doesn't actually provide any html until it finishes running. What I need in essence is a renderer to draw the html, and then a followup renderer to create the Ext.ux.Rating and apply it into the space created by the html already rendered.
I made some ground by create a div with the id of rating_source with my "template" html, and then harvesting that over and over parsing it into my grid...but it feels very clunky (and I still have some issues of id and name values to make them distinct on each row to work out).
I feel I am going about this wrong though.
It's also not rendering as stars, but I am assuming I just have a flaw in mapping my css there...and I anticipate working that out.
Any advice greatly appreciate.