Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default cfgrid

    I use a ldap to populate my cfgrid. Therefore, I do not use any cfcolumns
    within the cfgrid. How would I adjust the widths of the columns to fit my data.

    Ex. User ID is jschmoe, First name is Joe, Last name is Schmoe, and E-mail
    addr. is [email]joe.schmoe@hotmail.com[/email]

    What happens is when I adjust the width of the cfgrid, everything says the
    same width, like the User ID column is the same width as the E-mail addr.
    column. So I have to make the grid wide enough so the E-mail addr. doesn't get
    cut off.

    How do you set the column widths equal to the data in the cfgrid?

    Heres my code:

    <cfgrid format="flash" name="data2" query="results" height="250"
    rowheaders="no" enabled="yes" griddataalign="left" autowidth="no">
    </cfgrid>

    Chikowski Guest

  2. Similar Questions and Discussions

    1. cfselect in cfgrid
      Does anyone know how to place a cfselect element in a cfgrid or if it is even possible? I need an editable grid. It would be ideal if one of the...
    2. cfGrid problems
      Hi all, I can't get the flash version of cfGrid to display when I assign it the onChange attribute. If I remove it, it works fine. I get a...
    3. Flash CFGRID
      I'm unable to update a table when using the <cfgridupdate> tag. My <cfgrid> is correctly populated with a query and I can change information on the...
    4. <CFGRID>
      I'm experiencing a strange behavior using cfgrid format="applet". If the selectmode="Edit" and I do specify a selectcolor, the field clicked on will...
    5. Help with CFGrid
      How can I get a hyperlinked file deleted from the server when the delete action occurs in the Grid, which the action is also followed through to the...
  3. #2

    Default CFGRID

    Can the column on the far left that shows the record number in an applet formatted cfgrid be removed or hidden by default?
    brettcristofer Guest

  4. #3

    Default Re: CFGRID

    Did you try setting the rowHeaders value?

    <cfgrid rowHeaders="no" ...

    eastinq Guest

  5. #4

    Default CFGrid

    I'm populating a cfgrid inside a ColdFusion flash form and am wondering if
    there is a way to change the color of the font on specific rows. My query
    grabs all the users for a web site and populates the grid. I wanted to change
    the font color for site administrators so it is easier to find them. Any
    thoughts? One of my grid columns is labeled 'access' and I'd like to base the
    alternate color off this info.

    Thanks

    LabDesigns Guest

  6. #5

    Default Re: CFGrid

    well one way is to trigger some actionscript to step thru the grid and change
    colors on a row-by-row basis:

    for (var i:Number=0; i < yourGrid.length;i++) {
    if (yourGrid.getItemAt(i).yourGridColumn == someRelevantValue)
    yourGrid.setPropertiesAt(i, {backgroundColor:0xF7FFB7});
    }

    PaulH Guest

  7. #6

    Default Re: CFGrid

    Thank you. I'll give this a try. Is there an onLoad event that can trigger this, or do I need to attach it to some sort of a button?
    LabDesigns Guest

  8. #7

    Default Re: CFGrid

    currently no onLoad in flash forms, have a look at how [url]www.asfusion.com/blog[/url] handles it. cheesy but works ;-)

    PaulH Guest

  9. #8

    Default Re: CFGrid

    As a note, CF 7 updater to 7.0.1 includes the onLoad functionality for cfforms. Great news!

    sdwebguy99 Guest

  10. #9

    Default cfgrid

    Does anyone know if you can group records in cfgrid?
    My grid is displaying values from a couple of tables that are joined in the query where a many to one relationship exists
    ie.

    PK col1 col2

    1 AA AB
    1 AA BB
    1 AA CD
    1 BB EE
    1 BB DE
    2 AA AD

    When a user selects a row from the grid I display all of the details in a tab page. Currently it just displays the Primary Key with the values from the column selected. I need it to display col1 and col2 grouped by the pk. If a user selects PK 1 I need to display all of the values in col1 and col2 for PK 1.
    Instead of gridname.seleteditem.columnname can you use the PK value to requery the db and pass the tab page all of the associated data?

    Thanks in advance for any help.



    From [url]http://www.developmentnow.com/g/66_2006_10_0_0_0/macromedia-coldfusion-flash-integration.ht[/url]

    Posted via DevelopmentNow.com Group
    [url]http://www.developmentnow.com[/url]
    kll57 Guest

  11. #10

    Default CFGRID

    Hi,
    1. In our project we are using CFGRID. But in Applet grid there is no option
    for multiple selection. So we decided to use Flash grid. But we are not sure
    how feasible it is. IS there any other way to achieve multiple selection in
    CFGRID? Please help me out... Its very urgent....

    2. In grid while selecting a row i need to fing the cell values selected.
    Depending on the selected cell values i need to enable/disable some buttons in
    the same form. I need to find the selected cell value before submitting the
    form.
    Can any one help me in doing this??? Very urgent......

    Note: We are using ColdFusion 7.0

    SindhuMurugappan Guest

  12. #11

    Default Re: CFGRID

    Hi,

    Use the "extJS" framework!.

    An example quite similar to your requirement can be found at, (please refer the third one).

    [url]http://extjs.com/playpen/ext-2.0/examples/grid/grid3.html[/url]

    HTH
    Daverms Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139