Bind <cfgridcolumn> to cfinput "datefield"?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Bind <cfgridcolumn> to cfinput "datefield"?

    Hi everyone,

    Does anyone know how to bind a <cfinput type="datefield"> to a <cfgridcolumn>?

    This is the way I'm currently trying to do it, and it doesn't seem to bind
    correctly:

    <cfform bla bla bla>

    <cfgrid name="artistGrid" query="UserInfoQuery">
    <cfgridcolumn name="MyDate" display="yes" mask="MM/DD/YYYY" >
    </cfgrid>

    <cfinput type="datefield" mask="MM/DD/YYYY" name="MyDate"
    bind="{artistGrid.dataProvider[artistGrid.selectedIndex]['MyDate']}"
    onChange="artistGrid.dataProvider.editField(artist Grid.selectedIndex,
    'MyDate', MyDate.datefield);">

    </cfform>


    If I change the type to "text", and change MyDate.datefield to MyDate.text,
    everything seems to work just fine.

    Any ideas?

    Thanks a bunch in advance,

    Ian Adams
    Los Angeles, CA

    lizard626 Guest

  2. Similar Questions and Discussions

    1. how i use <cfinput type="file" ...> in cfformtype="flash
      hi, I want to use the <cfinput type="file" ...> in cfform type="flash . But How ? Regards Prashant
    2. DateField - Can u make the field default to "undefined"
      Hello, I am finding that if I put a DateField on a page, and the user does not select a date, when I get the date from the control using the...
    3. cfinput required="yes" and inline javascript conflict
      Has anyone experienced a situation where inline Javascript is causing Cold Fusion's native error reporting to fail. I have a script that tests 2...
    4. Odd behavior with cfinput value="#somevar#" under MX 6.1
      I'm noticing that when I specify a dynamic value for a cfinput form element (ie: modify product form), -- that if the value contains a character...
    5. CFINPUT type="radio" w/ "value" requires "label"
      On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'...
  3. #2

    Default Re: Bind <cfgridcolumn> to cfinput "datefield"?

    Whoops, this should be in the Rich Forms area.

    Sorry!
    lizard626 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