Govindscript / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

Problem with searchItems #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Hello friends, excuse me my english level, Im from Colombia and am using the 
flexigrid with jQuery and Json, the problem is that when I want look for a 
item, flexigrid reload, but doesnot show el item that I want this is my code:

colModel : [
        {display: 'Cedula del empleado',name : 'ced',width : 200,sortable : true,align: 'center'},
        {display: 'Nombres del empleado',name : 'name',width : 230,sortable : true,align: 'left'},
        {display: 'Apellidos del empleado',name : 'apellido',width : 200,sortable : true,align: 'left'},
        {display: 'Email',name : 'email',width : 177,sortable : true,align: 'left'},
        {display: 'Fecha ingreso',name : 'fecha',width : 150,sortable : true,align: 'right'},
        {display: 'Tipo de usuario',name : 'dep',width : 150,sortable : true,align: 'right'}
        ]

 searchitems : [
        {display: 'Cedula del empleado',name : 'ced'},
        {display: 'Nombre del empleado',name : 'name'},
        {display: 'Tipo de usuario',name : 'dep'},
        ],

The true is that i dont know why doesnt show the row with the consulted item 

- I wanna to know the rason of my bug

Flexigrid for jQuery -  v1.1 - On Windows XP SP3

Thanks to the comunity excuseme my english, my email is 
arturoagudelo18@gmail.com

Original issue reported on code.google.com by arturoagudelo18@gmail.com on 13 Oct 2011 at 3:32

GoogleCodeExporter commented 9 years ago
Hey,

I had a samiliar problem today. It wouldn't the searchbox and the columns 
didn't sort either. I found out IE doesn't like a ',' after the last 
searchitem. I don't know what browser you are using, but it could be the samen 
problem.

Like this one: {display: 'Tipo de usuario',name : 'dep'},

Try removing the last comma and run it again.

Original comment by donninge...@gmail.com on 17 Oct 2011 at 10:07

GoogleCodeExporter commented 9 years ago
Thanks for your help, my browser is Chrome v.15 and Mozilla V. 7, on Internet 
Explorer 8 the grid Doesnt show any item, I did that you say me and the problem 
continues, too I dont know why the columns dont sort doing of this way:

sortname: "apellido",
sortorder: "desc"

Thanks for you time and knowledge

Original comment by arturoagudelo18@gmail.com on 17 Oct 2011 at 11:00

GoogleCodeExporter commented 9 years ago
I could solve the problem, i didnt know that the data were returned by the 
server side and from there do the sql sentences. Thanks to the comunity

Original comment by arturoagudelo18@gmail.com on 21 Oct 2011 at 2:27