2010-04-12 3 views
1

У меня просто jqgrid определение, как это:jqGrid editForm проблема

jQuery("#C2").jqGrid({ 
       url: '/Customers.mvc/GetGridData/', 
       datatype: 'json', 
       autowidth: 'true', 
       mtype: 'GET', 
       colNames: ['Nazwa', 'Symbol', 'Status', 'Miasto', 'Ulica', 'Budynek', 'Mieszkanie', 'Koda pocztowy', 'Domena', ' '], 

       colModel: [ 
          { name: 'Name', index: 'Name', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'Symbol', index: 'Symbol', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'Status', index: 'Status', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'City', index: 'City', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'Street', index: 'Street', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'Building', index: 'Building', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'Flat', index: 'Flat', align: 'left', editable: 'true', edittype: 'text'}, 
          { name: 'PostalCode', index: 'PostalCode', align: 'left', editable: 'true', edittype: 'text' }, 
          { name: 'Domain', index: 'Domain', align: 'left', editable: 'true', edittype: 'text'}, 
          { name: 'ExtId', index: 'ExtId', align: 'left', editable: 'true', edittype: 'text'}, 
          ], 
       pager: jQuery('#C2_p'), 
       rowNum: 30, 
       rowList: [20, 30, 50], 
       sortname: 'Name', 
       sortorder: 'Asc', 
       viewrecords: 'true', 
       width: '80%', 
       height: '100%', 
       editurl: '/Customers.mvc/SaveCustomer/', 
       postData: { gridId: 'Customers' }, 
       caption: 'Klienci2' 
      }).navGrid('#C2_p', { edit: true, add: true, del: true, search: false, refresh: false }, 
      {},//Options for the Edit Dialog 
      {},//Options for the Add Dialog 
      {}//Options for D 

      ); 

     }); 

И когда я называю редактирование появляется без редактирования текста входов/добавить форму его. Я использую jquery 1.3.2 и jqgrid 3.6.4

Любая помощь будет оценена по достоинству.

ответ

1

Я нашел это :). меняю редактируемые: «истина» к редактируемые: истинный и теперь он работает ...