I recently upgraded my CF8 dev environement to CF10 and have noticed a couple issues. One of which being percentages are no longer supported in HTML formatted CFGRID. According to the documentation, the width attribute can be: "In HTML format, can be in any valid CSS measurement unit, and a numeric-only value specifies pixels." However that does not seem to be the case. Is this an error in the documentation or a bug in CF?
I'm also not the only person to notice:
Does anyone have any thoughts on this?
Here you go..
<cfquery name="q" datasource="cfartgallery">
SELECT artID, artistID, artName
ORDER BY artName
just about as basic as you get.. I tested in CF8 works, then in CF10 error: "height/width attribute cannot be a percentage value."
Unfortunately, this limitation has been caused by extjs in CF 9. And now you have to specify absolute width and height for any extjs component extjs based CF Ajax component.
Sent from my HTC
What underlying ExtJS construct are you using, and how is it you could not preserve backwards compat on the CF end of things to take the same arguments in the CFML and massage them into what the ExtJS needs to deliver the same results.
Or are you telling me the ExtJS grid thingey used to take a %age-based width, and now absolutely cannot be made to do so? I find that rather far-fetched. Or a bit pathetic of ExtJS if it's true.
I concur.. however, I can't imagine that this is by design on either ExtJS or Adobe's part. It seems like a simple oversight... albeit one that has apparently been around since CF9.
Regardless, if anyone can suggest a reasonable workaround I would appreciate it. My current app makes heavy use of cfgrid in various places and while it's not a big deal to set static widths, it's kinda lame.
Actually EXTJS was completely re-architected in EXTJS 3.1 and this was a major break which EXTJS is aware of. They clearly say that height and width is mandatory to be specified and therefore you will need to specify these in cfgrid for it to work.
Adobe ColdFusion Team
Europe, Middle East and Africa