Hello people..
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
FROM app.art
ORDER BY artName
</cfquery>
<cfform name="frm">
<cfgrid name="testGrid"
query="q"
height="250"
appendkey="yes"
width="100%"
selectmode="browse"
enabled="yes"
visible="yes"
format="html"
striperows="yes"
selectonload="false">
</cfgrid>
</cfform>
just about as basic as you get.. I tested in CF8 works, then in CF10 error: "height/width attribute cannot be a percentage value."
rupesh_kumar wrote:
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.
--
Adam
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.
North America
Europe, Middle East and Africa
Asia Pacific