我能够在表单中显示 cfgrid 选定行中的数据存储。当选择一行时,表单字段的内容会根据选择而变化。
我想做的是从所选行中获取单个元素,并使用它来动态更改表单字段标题的名称。特定数据被放置在字段集中。
下面是一个示例:
所选行标题的详细信息<---基于 cfgrid 行选择的动态。
表单数据
表单数据
form.data
对于表单数据,有一个与 grid.selectedrow.column 名称的绑定,如 {gridname.columnname}
但是,我无法使用文本表单字段,因为它与字段集的 div 混淆。
有什么建议吗?
I am able to display the data store from a cfgrid selected row in a form. When a row is selected, the contents of the form fields change based upon the selection.
What I would like to do is take a single element from the selected row and use it to dynamically change the name of the header of the form fields. The specific data is being placed in a fieldset.
Here is an example:
Details for Title of the selected row <---Dynamic based upon cfgrid row selection.
form.data
form.data
form.data
With form data there is a bind to the grid.selectedrow.column name as {gridname.columnname}
However, I can't use a text form field because it messes with the div for the fieldset.
Any suggestions?
发布评论
评论(1)
我希望,您指的是字段集的图例值。
为您的 cfgrid 和 rowclick 事件挂钩在该事件处理程序中更改您的图例innerHTML
请检查
http://www.danvega.org/blog /index.cfm/2008/3/20/CFGrid-Event-Listeners
I hope, You mean legend value of a fieldset.
Hook a rowclick event for your cfgrid & in that eventhandler change your legends innerHTML
Please check
http://www.danvega.org/blog/index.cfm/2008/3/20/CFGrid-Event-Listeners