| [Grid] ??2011-12-27 14:46:24by ?? <a:grid id="grid" bindTarget="sys_prompt_result_ds" height="400" marginHeight="200" marginWidth="50" navBar="true" width="800"> <a:toolBar> <a:button type="add"/> <a:button type="delete"/> <a:button type="save"/> </a:toolBar> <a:columns> <a:column name="prompt_code" editorFunction="promptCodeEditFunction" sortable="true" width="350"/> <a:column name="language_display" editorFunction="languageEditFunction" width="100"/> <a:column name="description" editor="sys_prompt_result_grid_tf" width="300"/> </a:columns> <a:editors> <a:textField id="sys_prompt_result_grid_tf"/> <a:textField id="sys_prompt_result_grid_upper_tf" typeCase="upper"/> <a:comboBox id="sys_prompt_result_grid_comboBox"/> </a:editors> </a:grid>
function promptCodeEditFunction(record, name) { if (record.get('prompt_id')) { return ''; } else { return 'sys_prompt_result_grid_upper_tf'; } } editors:编辑器。其子节点的类型指定编辑器的类型,id为该编辑器的id Demo Attachments |
Comments
0 Responses to the article暂时没有评论。