Expand|Select|Wrap|Line Numbers
- <cfgrid name="gridChartType"
- delete="true"
- deletebutton="Remove"
- insert="true"
- insertbutton="Add"
- width="714"
- height="500"
- format="flash"
- query="variables.qChartType"
- onValidate="checkValues"
- selectmode="edit">
- <cfgridcolumn name="id" display="false" />
- <cfgridcolumn header="Name" width="500" name="chart" />
- <cfgridcolumn header="Code" width="214" name="code" />
- </cfgrid>
However, it doesn't seem to be working. When I add/edit/delete anything in the cgrid, that function doesn't execute. What I need to validate is that the cfgridcolumn called code doesn't exceed 3 characters.
So, my questions are:
- Am I calling the JS function the right way?
- Is the way I'm including the JS file correct?
- Does anyone have a link to a working example/tutorial of cfgrip that includes validation "how to"?
Maybe my function isn't written correctly in the JS file (but that would be a Javascript issue and not a CF issue)
Thanks in advance!!