Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Navigator 'add' , 'edit' button seem working incorrectly
07/01/2010
10:10
Avatar
i-robot
Member
Members
Forum Posts: 4
Member Since:
07/01/2010
sp_UserOfflineSmall Offline

afte click add button on the navigator: the add dialog shows, but shows nothing.

the same thing happened when i click edit button.

Any idea?Confused

my code:

<html>
<head>
<!-- The jQuery UI theme that will be used by the grid -->  
<link rel="stylesheet" type="text/css" media="screen" href="/Test/styles/jqUI/redmond/jquery-ui-1.7.2.custom.css" />
<!-- The jQuery UI theme extension jqGrid needs -->   
<link rel="stylesheet" type="text/css" media="screen" href="/Test/styles/jqGrid/ui.jqgrid.css" />

<script type="text/javascript" src="/Test/scripts/jQuery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/Test/scripts/jqUI/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="/Test/scripts/jqGrid/i18n/grid.locale-en.js"></script>
<script type="text/javascript" src="/Test/scripts/jqGrid/jquery.jqGrid.min.js"></script>
<script>
    jQuery.jgrid.no_legacy_api = true;
    $(document).ready(function(){
     var lastsel;
     jQuery("#list2").jqGrid({
      url:'/Test/LoadData.do',
   datatype: "json",
      colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
      colModel:[
       {name:'id',index:'id', width:100},
       {name:'invdate',index:'invdate', width:90},
       {name:'name',index:'name', width:100},
       {name:'amount',index:'amount', width:80, align:"right"},
       {name:'tax',index:'tax', width:80, align:"right"},  
       {name:'total',index:'total', width:80,align:"right"},  
       {name:'note',index:'note', width:150, sortable:false}  
      ],
      rowNum:10,
      rowList:[10,20,30],
      pager: '#pager2',
      sortname: 'id',
      sortorder: "desc",
      viewrecords: true,
      jsonReader: {    
          root: "dataRows",  
          repeatitems : false    
      },

      //altRows:true,
      caption:"JSON Example"
      
  }).jqGrid('navGrid','#pager2',{edit:true,add:true,del:true});
    });
 
</script>
</head>
<body>
<table id="list2"></table>
<div id="pager2"></div>
<a href="javascript:alert(document.getElementById('list2').innerHTML);"/>ok</a>
</body>
</html>

07/01/2010
10:15
Avatar
i-robot
Member
Members
Forum Posts: 4
Member Since:
07/01/2010
sp_UserOfflineSmall Offline

miss  editable:true in model  {name:'id',index:'id', width:100, editable:true}

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
68 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information