2014-09-08 3 views
0

프로젝트에서 jtable 참조가 아래에 추가되었지만 편집 팝업 및 삭제 팝업이 매우 이상하게 작동합니다. 나는 물건을 고치는 방법에 대한 많은 자습서를 수색하고 진행하고 있지만, Jtable에 대한 새로운 경험이 있기 때문에 Jtabel의 편집 팝업 디자인을 수정하는 데 어려움을 겪고 있습니다. 어느 누구도 나를 어떻게 도와 주실 수 있습니까?asp.net mvc에서 Jtable의 편집 팝업 CSS 속성을 변경하는 방법

내보기 :

![<!doctype html> 
<html lang="en"> 
<head> 
    @{ 
     @model abcFinal.Models.AdminCatgMgmt 
     ViewBag.Title = "Process Manager :: Admin Category Manager"; 
    } 
    <meta charset="utf-8"> 
    <title>Process Manager :: Admin Category Manager</title> 
    <link href="~/Content/jquery-ui.css" rel="stylesheet" /> 
    <script src="~/Content/js/jquery-1.10.2.js"></script> 
    <script src="~/Content/js/jquery-ui.js"></script> 
    <link href="~/Scripts/jtable/themes/lightcolor/blue/jtable.css" rel="stylesheet" /> 
    <script src="~/Scripts/jtable/jquery.jtable.js"></script> 
    <link href="~/Content/style.css" rel="stylesheet" /> 
    <!-- Include one of jTable styles. --> 
<link href="/jtable/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css" /> 

<!-- Include jTable script file. --> 
<script src="/jtable/jquery.jtable.min.js" type="text/javascript"></script> 

    @*<script src="~/scripts/adminorders/adminorders.js"></script>*@ 
    @*<script src="~/Scripts/jtable/localization/jquery.jtable.tr.js"></script>*@ 
    @*<script src="~/Content/AdminCategories/masinCategory.js"></script>*@ 

</head> 
<body> 

    <br /> 
    <h1>Process Manager :: Admin Category Manager</h1> 
    <br /> 
    <div id="tabs" class =".mytab"> 
     <ul> 
      <li><a href="#tabs-1">Main Category</a></li> 
      <li><a href="#tabs-2">Sub Category</a></li> 
      <li><a href="#tabs-3">Country</a></li> 
      <li><a href="#tabs-4">State</a></li> 
      <li><a href="#tabs-5">City</a></li> 
      <li><a href="#tabs-6">Shipping</a></li> 
      <li><a href="#tabs-7">Extra Services</a></li> 
      <li><a href="#tabs-8">S-Category</a></li> 
     </ul> 
     <div id="tabs-1"> 
      <div id="mainCategoryTableContainer" style ="width:770px;margin-left:70px;margin-top:30px"> 
      </div> 
     </div> 
     <div id="tabs-2"> 
      <div id="subCategoryTableContainer" style ="width:770px;margin-left:70px;margin-top:30px"> 
      </div> 
     </div> 
     <div id="tabs-3"> 
      <div id="countryTableContainer" style ="width:770px;margin-left:70px;margin-top:30px"> 
      </div> 
     </div> 
     <div id="tabs-4"> 
      <div id="stateTableContainer" style ="width:800px;margin-left:70px;margin-top:30px"> 
      </div> 
     </div> 
     <div id="tabs-5"> 
      <div id="cityTableContainer" style ="width:800px;margin-left:70px;margin-top:30px"> 
      </div> 
     </div> 
     <div id="tabs-6"> 

     </div> 
     <div id="tabs-7"> 

     </div> 
     <div id="tabs-8"> 

     </div> 
    </div> 

    <script type="text/javascript"> 
     $(function() { 

      $("#tabs").tabs(
      { 
       collapsible: true 

      }); 

      //$(".my_tab").bind("click", handle_tab_click) 

      $('#mainCategoryTableContainer').jtable({ 
       title: 'Main Category list', 
       paging: true, 
       pageSize: 10, 
       sorting: true, 
       defaultSorting: 'subcatname ASC', 
       actions: { 
        listAction: '@Url.Action("getMainCategory")', 
        deleteAction: '@Url.Action("DeleteMainCategory")', 
        updateAction: '@Url.Action("EditMainCategory")', 
        createAction: '@Url.Action("AddMainCategory")' 

       }, 
       fields: { 
        catid: { 
         title: 'Main Category Id', 
         width: '10%', 
         create: false, 
         edit: false, 
         key: true, 
         list: true 
        }, 
        catname: { 
         title: 'Category Name', 
         width: '20%', 
         //edit: false, 
         //key: true, 

        }, 
        noofsubcat: { 
         title: 'No. of Sub Category', 
         width: '10%', 
         create: false, 
         edit: false, 
        }, 
        catdate: { 
         title: 'Sub Category Date', 
         width: '20%', 
         edit: false, 
         create: false, 
        } 
       } 
      }); 
      $('#mainCategoryTableContainer').jtable('load'); 
}); 
    </script> 
</body> 
</html>][1] 

답변

0

당신이 "매우 이상하게 행동"정의 할 수 있습니까?

그냥 다른 뭔가를 찾고이 질문에 건너 온, 그리고 빠른 눈에 내가 할 것이 우선 둘 JTable의 하나의 인스턴스 만 포함됩니다 :

<script src="~/Scripts/jtable/jquery.jtable.js"></script> 

... 및 을. ..

축소 된 버전 임에도 불구하고 2 개의 파일 만 포함하면 2 중 인스턴스 생성의 가능성이 생깁니다.

관련 문제