略過巡覽連結。
略過巡覽連結      
  JQDialog對話視窗的按鈕是否可以隱藏? 觀看回應
在dataform的onloadsuccess 撰寫$("#JQDialog1").find(".infosysbutton-s").hide();

  如何在DataForm新增存檔後,DataGrid可自動Focus在新增出來的那筆Record呢? 觀看回應

DataForm編輯,新增一筆後(有自動編號),在DataGrid撈出新增那筆



-->
DataFormonApplied事件,寫JS即可。



function
autonum1(rows) {



var
CustomerID = "";



if
(rows) {



CustomerID
= rows[0].CustomerID; //
取出自動編號值



}



$("#dataGridView").datagrid('setWhere',
"CustomerID='" + CustomerID + "'");



}


  開啟時直接進入新增模式 觀看回應

openForm('#JQDialog2',
rowData, "inserted", 'dialog');



rowData是當前選擇的dataGridrow,新增傳null進去就可以。


  如何使多個dataform對應同一個dataGrid? 觀看回應

如果只是瀏覽的話,可以在dialogtabs,放多個dataForm。然後在某一個dataFormonloadSucess寫一個方法:



var opt = $('#JQDialog1').attr('infolight-options');



var opt1 = option.replace('#dataFormMaster',
'#dataFormMaster0');



$('#JQDialog1').attr('infolight-options', opt1);



openForm('#JQDialog1',$('#dataGridView').datagrid('getSelected')
, 'viewed', '');



$('#JQDialog1').attr('infolight-options', opt);


  欄位在編輯模式變唯讀時,可以不要觸發onblur嗎? 觀看回應

function
seqno_onblur() {



if
($("#dataFormMasterseq_no").attr('readonly')==true)  {



//return



alert('readonly');



};}