更改标签文本在jqgird中添加表单 [英] change label text Add Form in jqgird
本文介绍了更改标签文本在jqgird中添加表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更改当前为名称"的StudentOrEmployeeId
的标签文本.我的更改活动正在运行,但无法更改名称.可能我遗漏了一些东西
I am trying to change the label text of StudentOrEmployeeId
which is currently 'Name'. My change event is working but unable to change the name.May I am missing something
colNames: ['IssueType', 'Issued To','Name']
{ name: 'IssueType', index: 'IssueType', align: 'center', editable: true, edittype: 'select',
editoptions:
{
value: "0:Student;1:Teacher",
dataEvents: [{
type: 'change',
fn: function (e) {
if ($('#IssueType option:selected').val() == 0)
{
jQuery('tr#StudentOrEmployeeId > td.CaptionTD').html('Student Id')
}
else
{
jQuery('tr#StudentOrEmployeeId > td.CaptionTD').html('Employee');
}
}
}], }
},
{ name: 'StudentOrEmployeeId', 'index': 'StudentOrEmployeeId', editable: true, },
推荐答案
label
属性colModel
的rel ="nofollow"> formoptions 可用于指定添加/编辑"表单的标签.
label
property of formoptions of colModel
can be used to specify the label of Add/Edit form.
这篇关于更改标签文本在jqgird中添加表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文