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_Related Related Topics sp_TopicIcon
Last row not showing with default jsonreader
30/12/2010
19:01
Avatar
Sumit
New Member
Members
Forum Posts: 1
Member Since:
30/12/2010
sp_UserOfflineSmall Offline

I am trying to load a jqgrid with json data retrieved from a url.

The rows all load in firefox, but in IE the last row doesnt show.

If there are 18 records, the grid says that it is displaying 17 of 18, but it only shows one 1 page.

Any ideas?

My jqgrid setup is.

    jQuery('#list').jqGrid({
    url:'/taxkb/tabularJQGridRows.ge?decorator=ajax&sectionId=797',
    datatype: 'json',
    height : 400,
    loadError: function(xhr,status,error){alert(status+" "+error);},
    shrinkToFit:true,
    colNames:['-','-'],
    colModel : [
        {name:'cell1', width:300, sortable:false, align:'center'},
        {name:'cell2', width:300, sortable:false, align:'center'}
        ],

    pager: '#pager',
    rowNum:50,
    rowList:[50,100,200],
    sortorder: 'asc',
    viewrecords: true,
    jsonReader : {
        root: "rows",
        page: "page",
        total: "total",
        records: "records",
        repeatitems: true,
        cell: "cell",
        id: "id",
        userdata: "userdata",
        subgrid: {root:"rows", repeatitems: true, cell:"cell" }
    },
    caption: 'Tabular',
    hiddengrid: false
  });

My json data shows all records. 

{"rows":[{"id":"761","cell":["Name of the tax ",
        "Value-added tax (VAT) "]},{"id":"762","cell":["Local name ",
        "Foros prostithemenis aksias (FPA)"]},{"id":"763","cell":[
        "Date introduced","1-Jan-87"]},{"id":"764","cell":[
        "European Union (EU) member state","Yes "]},{"id":"765","cell":[
        "Administered by ","Ministry of Finance (http://www.gsis.gov.gr)"]},{
      "id":"766","cell":["VAT rates","-"]},{"id":"767","cell":[
        "\u0026nbsp;Standard ","19%"]},{"id":"768","cell":[
        "\u0026nbsp;Reduced","4.5%/9%"]},{"id":"769","cell":[
        "\u0026nbsp;Other ","Exempt and exempt with credit "]},{"id":"770",
      "cell":["VAT number format"," EL 1 2 3 4 5 6 7 8 9 "]},{"id":"771",
      "cell":["VAT return periods","-"]},{"id":"772","cell":[
        "\u0026nbsp;Monthly","Category C (turnover exceeding 1,500,000)"]},{
      "id":"773","cell":["\u0026nbsp;Quarterly ",
        "Category A (turnover below 150,000 and Category B (turnover between 150,001 and 1,500,000) "]},
    {"id":"774","cell":["\u0026nbsp;Annual","All businesses"]},{"id":"775",
      "cell":["Thresholds","-"]},{"id":"776","cell":[
        "\u0026nbsp;Registration","None"]},{"id":"777","cell":[
        "\u0026nbsp;Distance selling","35,000"]},{"id":"778","cell":[
        "Recovery of VAT by nonestablished businesses"," Yes"]}],"records":
  18,"class":{},"actionErrors":[],"sectionId":797,"rowsPerPage":0,
  "actionMessages":[],"locale":"en_US","total":1,"errors":{},"actionStatus":{
    "resultCode":"success","hasNextAction":false,"hasActionMessage":false,
    "hasActionError":false,"hasFieldError":false,"isError":false},"page":0}

Any ideas? I am certain its something stupid since I cant find anyone else with same issue.

Thanks

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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