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
Problem with Navigator. Not working
23/06/2010
13:57
Avatar
Haku
Member
Members
Forum Posts: 3
Member Since:
23/06/2010
sp_UserOfflineSmall Offline

Hello all.

It´s my first grid and i don´t have lucky with it jeje. The problem is the navigator don´t show in my page. I dont know if the problem is with js or css.

My code is the following:

--html--

 <table id="list"></table>
  <div id="gridpager"></div> 

--JS--

<script type="text/javascript">
jQuery(document).ready(function(){
    jQuery("#list").jqGrid({
    url:'http://192.168.1.31/clientes/c.....l&#39;,
    datatype: "xml",
    colNames:['Codigo_Cliente','Nombre', 'Nombre_Comercial', 'CIF','Direccion'],
    colModel :[
      {name:'Codigo_Cliente', index:'Codigo_Cliente', width:80, align:'left'},
      {name:'Nombre', index:'Nombre', width:250},
      {name:'Nombre_Comercial', index:'Nombre_Comercial', width:250},
      {name:'CIF', index:'CIF', width:80, align:'left'},
      {name:'Direccion', index:'Direccion', width:260},
    ],
    height:300,
    pager: '#gridpager',
    rowNum:100,
    rowList:[100,200,300],
    sortname: 'Codigo_Cliente',
    sortorder: 'desc',
    viewrecords: true,
    caption: 'Clientes'
    });
});

jQuery("#list").jqGrid('navGrid','#gridpager',{});
jQuery("#list").filterToolbar();
    
</script>

But the navigator tab don´t show in my page. With firebuf element inspector this is the final html code:

<td align="left" id="gridpager_left"></td>

But it is all. There is nothing below this.

Anybody Could you help me?

Thanks in advance.

Best Regards.

23/06/2010
16:03
Avatar
Haku
Member
Members
Forum Posts: 3
Member Since:
23/06/2010
sp_UserOfflineSmall Offline

Sorry. It is working propertly now.

The problem was this:

--Error--

 height:300,
    pager: '#gridpager',
    rowNum:100,
    rowList:[100,200,300],
    sortname: 'Codigo_Cliente',
    sortorder: 'desc',
    viewrecords: true,
    caption: 'Clientes'
    });
}); jQuery("#list").jqGrid('navGrid','#gridpager',{});

--Good--

 height:300,
    pager: '#gridpager',
    rowNum:100,
    rowList:[100,200,300],
    sortname: 'Codigo_Cliente',
    sortorder: 'desc',
    viewrecords: true,
    caption: 'Clientes'
    });

jQuery("#list").jqGrid('navGrid','#gridpager',{});
});

Thank you to all and sorry again.

Regards.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
48 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