2012-02-27 5 views
1

[추가] 버튼을 클릭하면 formAddNewRow 양식이 열리지 만이 양식의 widht를 높이려면 어떻게해야합니까? 여기Jquery는 "formAddNewRow"양식의 크기를 조정합니다.

내가

$(document).ready(function() { 

     var r; 
     var oTable = $('#Lookup').dataTable({ 
      "sPaginationType": "full_numbers", 
      "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]], 
      "iDisplayLength": 25 

     } 
).makeEditable({ 
    oAddNewRowFormOptions: { title: 'Add user', width: 800 }, 
      "aoColumns": [ 
          { 
           cssclass: 'required' 

          }, 
          { tooltip: 'Click to edit', 
           cssclass: 'required' 

          }, 
          { tooltip: 'Click to edit', 
           cssclass: 'required' 

          } 

          ], 

      fnShowError: function (message, action) { 
       switch (action) { 
        case "update": 
         jAlert(message, "Update failed"); 
         break; 
        case "add": 
         jAlert(message, "Update failed"); 
         break; 

       } 
      } 

     }); 

    }); 

을 뭘하려하지만 Addnewform이 동일하게 유지, 형태의 폭이 증가되지 않는 이유는 무엇입니까? 어떤 제안. 당신은 올바른 방향으로 나를 가리켜 주시겠습니까

답변

0

나는 또한 같은 문제가 있었지만, 몇 가지 검색을 한 후에 대답을 찾았습니다 : document.ready 함수에 이것을 두십시오 : (단지 너비를 동일하게 변경하고 싶다면 콘텐츠를 자동으로 변경)

$("#formAddNewRow").dialog({width:'650px'}) 
관련 문제