【发布时间】:2011-02-19 23:19:17
【问题描述】:
你们知道当我点击添加按钮时如何防止打开表单吗?
也许使用 beforeShowForm?
function(formid)
{
if(jQuery('#gridap').getGridParam('selrow'))
{
idgridap=jQuery('#gridap').getGridParam('selrow');
jQuery('#FK_numerocontrato_ap',formid).val(idgridap).attr('readonly','readonly');
}
else
{
// I want to prevent the openning of the add form here and maybe show an alert using the "alertcap"
}
}
CHECAROW;
$grid->setNavEvent('add','beforeShowForm',$checarowid);
顺便说一句,有办法调用jqgrid的alertmod并添加自定义消息吗?
tks!
【问题讨论】:
标签: jquery jqgrid jqgrid-php