views:

34

answers:

1

Hi, i m using the "Flexigrid" to create the Jquery Grid (http://www.flexigrid.info/).

i m using it with the C#. from web site i have downloaded the XML file and using it in Jquery code.

My code is:

<script type="text/javascript">


        //var lastsel3; 
        jQuery(document).ready( function() {
        jQuery("#test").jqGrid( {
            url :'data.xml',
            datatype :'xml',
            colNames : [ 'Name', 'User Name', 'Department', 'Role', 'Status', 'Action' ],
            colModel : 
            [ 
                {name:'name',index:'name', editable:true,   sorttype:"text", sortable:true, align:"center" },
                {name:'username',index:'username' , sorttype:"text",  editable:true,sortable:true, align:"center" },
                {name:'department',index:'department',    editable:true,align:"center"},
                {name:'role',index:'role', editable:true , align:"center" ,sortable:true},
                {name:'status',index:'status',  align:"center",editable:true },
                {name:'action',index:'action', align:"center",  ditable:true },

            ], 

            pager :jQuery('#prowed1'),
            rowNum :10,
            rowList : [ 10, 20, 30 ],
            //width:'700',
            height:'200',
            viewrecords :true,
            loadonce: true,
            imgpath :'images',
            caption :'Users',
            editurl:'user.xml'

        });
        });
        </script>

but it not showing the data to the grid.

Please Help.. Thanks.

A: 

Problem has been solved..

http://osdir.com/ml/flexigrid/2010-03/msg00037.html

Shivi