Professional Web Applications Themes

Reorder Grid Rows - Coldfusion - Advanced Techniques

I have a cfgrid (applet) that I would like users to be able to reorder the rows in. Not sort alphabetically, but just move rows up or down as needed. I was thinking a javascript function would work well for this - user clicks on a column in the row to move up or down, and then clicks a button that calls a javascript function to move the row up or down. Problem is I cannot seem to find a way to reference the grid array (gridname.rowstatus.action, gridname.colname, etc) in the javascript function to swap rows around. Does anyone know ...

Sponsored Links
  1. #1

    Default Reorder Grid Rows

    I have a cfgrid (applet) that I would like users to be able to reorder the rows
    in. Not sort alphabetically, but just move rows up or down as needed.

    I was thinking a javascript function would work well for this - user clicks on
    a column in the row to move up or down, and then clicks a button that calls a
    javascript function to move the row up or down.

    Problem is I cannot seem to find a way to reference the grid array
    (gridname.rowstatus.action, gridname.colname, etc) in the javascript function
    to swap rows around. Does anyone know what the javascript syntax would look
    like for referring to a CF array? Or maybe a better way to handle this?

    Thanks.

    Sponsored Links
    JMD1 Guest

  2. #2

    Default Re: Reorder Grid Rows

    You may want to use the new grid in CF 7's CFform. You should be able to use
    ActionScript to do this. Try the macromedia.coldfusion.rich_forms newsgroup
    for more help.

    -brian

    "JMD1" <wisc.edu> wrote in message
    news:dladns$9kh$macromedia.com... 
    rows 
    clicks on 
    calls a 
    function 
    look 


    Brian Guest

  3. #3

    Default Re: Reorder Grid Rows

    Thanks for the suggestion - I should have mentioned that I was already using
    the cfgrid tag in CFMX v7.0. I am using the applet form of the grid because it
    seems that the Flash forms do not support drop-down lists in a grid, and I need
    to use drop down lists. Does ActionScript run in non-Flash forms?

    The cfgrid is such a handy tool, especially when displaying details from a
    one-many realtionship. I hope MM builds more features (support for drop-down
    lists in Flash, and rearranging rows, and ???)

    JMD1 Guest

  4. #4

    Default Re: Reorder Grid Rows

    might see what philippe (cfpim) has on this: http://cfpim.blogspot.com/ i think the cell renderer articles.

    PaulH Guest

Similar Threads

  1. Replies: 3
    Last Post: June 6th, 10:56 AM
  2. Call out or fly by tool tip for grid rows
    By farbodr in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 13th, 03:38 PM
  3. DataGrid Reorder Rows
    By packetdrop in forum Macromedia Flex General Discussion
    Replies: 3
    Last Post: September 7th, 01:10 PM
  4. Deselect rows in a grid
    By Amit Kohli in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: July 9th, 05:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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