PDA

View Full Version : I cant paging, show image in gid, help me please !!!!



Unlucky
13 Dec 2011, 1:02 AM
my code:




Ext.Loader.setConfig({
enabled: true
});
Ext.Loader.setPath('Ext.ux', 'libExtJS/js/ux');
Ext.require([
'Ext.form.*',
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*',
'Ext.panel.*',
'Ext.toolbar.Paging',
'Ext.tip.QuickTipManager',
'Ext.ux.CheckColumn'
]);


var store = Ext.create('Ext.data.Store',{
idProperty: 'eventid',
// remoteSort: true,
pageSize: 10,
// viewConfig: {
// forceFit: true
// },
// sorters: [{
// property: 'ename',
// direction: 'DESC'
// }],
fields: [
'eventid',
'image',
'ename',
{
name:'startregdate',
type: 'date',
dateFormat:'c'

},
{
name:'endregdate',
type: 'date',
dateFormat:'c'
},
{
name:'startdate',
type: 'date',
dateFormat:'c'
}
,
{
name:'enddate',
type: 'date',
dateFormat:'c'
}
,
{
name: 'minpart',
type: 'int'
},
'prize',
'description',
{
name: 'status',
type:'bool'
},


{
name:'postdate',
type: 'date',
dateFormat:'c'
}
],
proxy: {
type: 'ajax',
url: 'showAllEvent',
reader: {
type: 'json',
root: 'Events',
totalProperty: 'totalCount'
}
}
});


Ext.onReady(function() {
Ext.QuickTips.init();
function event_img(val){
return '<img width="120" height="90" src=../Resource/'+val+'>';
}
var grid = Ext.create('Ext.grid.Panel',{
xtype: 'form',
title: 'List Event',
columnLines: true,
loadMask:true,
width: 800,
height: 500,
store: store,
tbar: [
{
itemId: 'editEvent',
text: 'Edit Event',
iconCls: 'icon_update',
handler : function() {


},
disabled: true
},

{
itemId: 'blockEvent',
text: 'Block Event',
iconCls: 'icon_block',
handler: function() {

},
disabled: true
}],
listeners: {
'selectionchange': function(view, records) {
grid.down('#blockEvent').setDisabled(!records.length);
grid.down('#editEvent').setDisabled(!records.length);
}
},
columns: [{
id: 'eid',
header: "ID",
width: 30,
dataIndex: 'eventid',
align: 'center'
},
{
header: "Active?",
width: 45,
dataIndex: 'status',
xtype: 'checkcolumn',
align: 'center'
},
{
header: "Image",
width: 110,
dataIndex: 'image',
// renderer: event_img,
align: 'center'
},
{
id: 'ename',
header: "Event Name",
width: 80,
dataIndex: 'ename',
align: 'center'
},
{
header: "Start Registration",
width: 100,
dataIndex: 'startregdate',
renderer : Ext.util.Format.dateRenderer('m-d-Y'),
align: 'center'
},
{
header: "End Registration",
width: 100,
dataIndex: 'endregdate',
renderer : Ext.util.Format.dateRenderer('m-d-Y'),
align: 'center'
},
{
header: "Start Date",
width: 90,
dataIndex: 'startdate',
renderer : Ext.util.Format.dateRenderer('m-d-Y'),
align: 'center'
}
,{
header: "End Date",
width: 90,
dataIndex: 'enddate',
renderer: Ext.util.Format.dateRenderer('m-d-Y'),
align: 'center'
},
{
header: "Min Participants",
width: 100,
dataIndex: 'minpart',
align: 'center'
},
{
header: "Prize",
width: 60,
dataIndex: 'prize',
align: 'center'
},
{
header: "Description",
width: 90,
dataIndex: 'description',
align: 'center'
},
{
header: "Post Date",
width: 100,
dataIndex: 'postdate',
renderer: Ext.util.Format.dateRenderer('m-d-Y'),
align: 'center'
}],
bbar: Ext.create('Ext.PagingToolbar', {
pageSize: 10,
store: store,
displayInfo: true,
displayMsg: 'Displaying events {0} - {1} of {2}',
emptyMsg: "No record to display"
})


});
grid.render ('event-list');
store.load({
params:{
start:0,
limit:10
}
});
});


its paging but, it show all record in database, not limit my pagesize, and its not show image in ff 8.x, but it show on ie 9, chrome.
you can see follow link : http://i.imgur.com/AHWHr.png

please tell me what's bug in my code.
thanks for help. i need somuch.

tobiu
13 Dec 2011, 2:56 AM
for displaying the image, you should wrap the src string in quotes ("").

the server will get the params start & limit, you need your backend to send back only the wanted range of data.

Unlucky
13 Dec 2011, 5:05 AM
thanks for help tobiu, i changed but it's not display in ff 8.x and i have :
store.load({ params:{
start:0,
limit:10
}
});
why cant limit 10 rows ?

tobiu
13 Dec 2011, 5:39 AM
what does your backend send back?

Unlucky
13 Dec 2011, 7:23 AM
my servlet :


protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
Context context = new InitialContext();
Object obj = context.lookup("BluePumpkinSSBLocalJNDI");
BluePumpkinSSBLocal local = (BluePumpkinSSBLocal) obj;
ArrayList<Event> listEvent = (ArrayList) local.showAllEvent();
StringBuilder sb = new StringBuilder();
sb.append("{totalCount:" + listEvent.size() + ",Events:[");
for (int i = 0; i < listEvent.size(); i++) {
sb.append("{");
sb.append("eventid:" + listEvent.get(i).getEventID());
sb.append(",image:" + "\'" + listEvent.get(i).getPicture() + "\'");
sb.append(",ename:" + "\'" + listEvent.get(i).getEventName() + "\'");
sb.append(",startregdate:" + "\'" + listEvent.get(i).getBeginRegisterDate() + "\'");
sb.append(",endregdate:" + "\'" + listEvent.get(i).getEndRegisterDate() + "\'");
sb.append(",startdate:" + "\'" + listEvent.get(i).getStartDate() + "\'");
sb.append(",enddate:" + "\'" + listEvent.get(i).getEndDate() + "\'");
sb.append(",minpart:" + "\'" + listEvent.get(i).getMinParticipants() + "\'");
sb.append(",prize:" + "\'" + listEvent.get(i).getPrize() + "\'");
sb.append(",description:" + "\'" + listEvent.get(i).getDescription() + "\'");
sb.append(",status:" + "\'" + listEvent.get(i).getStatus() + "\'");
sb.append(",postdate:" + "\'" + listEvent.get(i).getPostDate() + "\'");
sb.append("},");
}
String json = sb.substring(0, sb.length() - 1);
json += "]}";
out.println(json);
out.close();
} catch (Exception e) {
e.printStackTrace();
}
}



and my SQL : select * from Event

help me please. i need so much, thanks for help me again.

tobiu
13 Dec 2011, 7:25 AM
the servlet is useless for debugging, we need to see the output.

Unlucky
13 Dec 2011, 7:34 AM
my servlet out put a array json:
its response:



{totalCount:24,Events:[{eventid:1,image:'Koala.jpg',ename:'scfdddddddddddddddddddddddddddd',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-10 00:00:00.0',enddate:'2011-12-10 00:00:00.0',minpart:'5',prize:'null',description:'​dddddddddddddddddddddddd',status:'true',postdate:'2011-12-09 00:00:00.0'},{eventid:2,image:'Lighthouse.jpg',ename:'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-10 00:00:00.0',enddate:'2011-12-10 00:00:00.0',minpart:'8',prize:'null',description:'​aaaaaaaaaaaaddddddddddddddddddddddddddddd',status:'true',postdate:'2011-12-03 00:00:00.0'},{eventid:3,image:'Chrysanthemum.jpg',ename:'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssss',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-10 00:00:00.0',enddate:'2011-12-10 00:00:00.0',minpart:'12',prize:'null',description:'​aaaaaaaaaaaaddddddddddddddddddddddddddddd',status:'false',postdate:'2011-12-03 00:00:00.0'},{eventid:4,image:'Koala.jpg',ename:'sssssssssssssss',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-10 00:00:00.0',enddate:'2011-12-10 00:00:00.0',minpart:'5',prize:'ssssssssssssssssssssss',description:'​ssssssssssssssssssss',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:5,image:'Koala.jpg',ename:'aaaaaaaaaaaaaaaaaasdddddddddddd',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-15 00:00:00.0',startdate:'2011-12-16 00:00:00.0',enddate:'2011-12-17 00:00:00.0',minpart:'9',prize:'ssssssssssssssssssssss',description:'​ssssssssssssssssssssssss',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:6,image:'Koala.jpg',ename:'aaaaaaaaaaaaaaaaaasddddddddddddzzzzzzzzzzzzzzzzzzz',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-15 00:00:00.0',startdate:'2011-12-16 00:00:00.0',enddate:'2011-12-17 00:00:00.0',minpart:'9',prize:'ssssssssssssssssssssss',description:'​ssssssssssssssssssssssss',status:'false',postdate:'2011-12-10 00:00:00.0'},{eventid:7,image:'Jellyfish.jpg',ename:'asssssssssssssssssssssssssssssssssssssssssssssssssssssss',startregdate:'2011-12-17 00:00:00.0',endregdate:'2011-12-17 00:00:00.0',startdate:'2011-12-24 00:00:00.0',enddate:'2011-12-23 00:00:00.0',minpart:'6',prize:'ssssssssssssssssssssss',description:'​ssssssssssssssssssssssssssssssssssss',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:8,image:'Koala.jpg',ename:'aaaaaaaaaaaaaaaaaassssssssssssssss',startregdate:'2011-12-23 00:00:00.0',endregdate:'2011-12-24 00:00:00.0',startdate:'2011-12-23 00:00:00.0',enddate:'2011-12-30 00:00:00.0',minpart:'8',prize:'aaaaaaaaaaaaaaaaaaaaaa',description:'​aaaaaaaaaaaaaaaaaaaaaaaaaa',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:9,image:'Koala.jpg',ename:'aaaaaaaaaaaaaaaaaaaaqwe33333333333',startregdate:'2011-12-11 00:00:00.0',endregdate:'2011-12-12 00:00:00.0',startdate:'2011-12-14 00:00:00.0',enddate:'2011-12-23 00:00:00.0',minpart:'1',prize:'aaaaaaaaaaaaaaaa',description:'​asddddddddddddddd',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:10,image:'Lighthouse.jpg',ename:'34234234234sdfsdfsdfsdf',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2012-01-20 00:00:00.0',enddate:'2011-12-10 00:00:00.0',minpart:'1',prize:'asssssssssssssss',description:'​aaaaaaaaaaaaaaaaaaaaaa',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:11,image:'Koala.jpg',ename:'aaaaaaaaaaaaaaaaadddddddcccc',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-10 00:00:00.0',enddate:'2011-12-10 00:00:00.0',minpart:'1',prize:'asssssssssssss',description:'​sssssssssssss',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:12,image:'Chrysanthemum.jpg',ename:'111111111111111111111wwwwwwwwwwwww',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-16 00:00:00.0',enddate:'2011-12-22 00:00:00.0',minpart:'5',prize:'1111111111111111',description:'​11111111111111111111',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:13,image:'Lighthouse.jpg',ename:'111111111111111111111wwwwwwwwwwwww',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-16 00:00:00.0',enddate:'2011-12-22 00:00:00.0',minpart:'5',prize:'1111111111111111',description:'​11111111111111111111',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:14,image:'Lighthouse.jpg',ename:'sadsdsdsdsd',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-16 00:00:00.0',startdate:'2011-12-16 00:00:00.0',enddate:'2011-12-16 00:00:00.0',minpart:'1',prize:'ssssssssssss',description:'​sssssssssssssssssssss',status:'true',postdate:'2011-12-10 00:00:00.0'},{eventid:15,image:'Tulips.jpg',ename:'ssssssssssssssssssssdddddddddddddd',startregdate:'2011-12-10 00:00:00.0',endregdate:'2011-12-10 00:00:00.0',startdate:'2011-12-11 00:00:00.0',enddate:'2011-12-16 00:00:00.0',minpart:'1',prize:'sssssssssssssss',description:'​sssssssssssssssssssssss',status:'true',postdate:'2011-12-09 00:00:00.0'},{eventid:16,image:'Jellyfish.jpg',ename:'qwwwwwwwwwwwwwwwwwwwwsdsss',startregdate:'2011-12-12 00:00:00.0',endregdate:'2011-12-12 00:00:00.0',startdate:'2011-12-13 00:00:00.0',enddate:'2011-12-14 00:00:00.0',minpart:'4',prize:'aaaaaaaaaaaaaaa',description:'​aaaaaaaaaaaaaaaaaaaa',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:17,image:'Koala.jpg',ename:'asdasdcvbnvnghjfs',startregdate:'2011-12-14 00:00:00.0',endregdate:'2011-12-15 00:00:00.0',startdate:'2011-12-16 00:00:00.0',enddate:'2011-12-17 00:00:00.0',minpart:'6',prize:'sssssssssssssssssss',description:'​sssssssssssssssssss',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:18,image:'Desert.jpg',ename:'testststsst',startregdate:'2011-12-12 00:00:00.0',endregdate:'2011-12-12 00:00:00.0',startdate:'2011-12-12 00:00:00.0',enddate:'2011-12-13 00:00:00.0',minpart:'1',prize:'ssssssssss',description:'​ssssssssssssss',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:19,image:'Koala.jpg',ename:'sssssssssssssssssssssdddddddddddddd',startregdate:'2011-12-12 00:00:00.0',endregdate:'2011-12-13 00:00:00.0',startdate:'2011-12-14 00:00:00.0',enddate:'2011-12-15 00:00:00.0',minpart:'6',prize:'sssssssssssssssss',description:'​sssssssssssssssssssssssssssss',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:20,image:'Lighthouse.jpg',ename:'aaaaaaaaaaaaa',startregdate:'2011-12-12 00:00:00.0',endregdate:'2011-12-13 00:00:00.0',startdate:'2011-12-14 00:00:00.0',enddate:'2011-12-15 00:00:00.0',minpart:'7',prize:'sssssssssssssssssssssss',description:'​sssssssssssssssssssssssssss',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:21,image:'Hydrangeas.jpg',ename:'aaaaaaaaaaadsf34434',startregdate:'2011-12-12 00:00:00.0',endregdate:'2011-12-13 00:00:00.0',startdate:'2011-12-14 00:00:00.0',enddate:'2011-12-15 00:00:00.0',minpart:'11',prize:'ssssssddddddddddddddd',description:'​dddddddddddddddddddd',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:22,image:'Hydrangeas.jpg',ename:'Test Thu Coi Sao',startregdate:'2011-12-12 00:00:00.0',endregdate:'2011-12-13 00:00:00.0',startdate:'2011-12-14 00:00:00.0',enddate:'2011-12-15 00:00:00.0',minpart:'1',prize:'12222222222222222222',description:'​sdsdsd',status:'true',postdate:'2011-12-11 00:00:00.0'},{eventid:23,image:'Koala.jpg',ename:'insetr insert',startregdate:'2011-12-13 00:00:00.0',endregdate:'2011-12-14 00:00:00.0',startdate:'2011-12-15 00:00:00.0',enddate:'2011-12-16 00:00:00.0',minpart:'9',prize:'di choi di choi',description:'​xong roi ',status:'true',postdate:'2011-12-12 00:00:00.0'},{eventid:24,image:'Koala.jpg',ename:'test choi thoi',startregdate:'2011-12-13 00:00:00.0',endregdate:'2011-12-14 00:00:00.0',startdate:'2011-12-15 00:00:00.0',enddate:'2011-12-16 00:00:00.0',minpart:'22',prize:'test test tets',description:'test test test​',status:'true',postdate:'2011-12-13 00:00:00.0'}]}

tobiu
13 Dec 2011, 8:34 AM
2 points:

1) http://jsonlint.com/

will output that your response is no valid json since the properties are not wrapped as strings ("").

2) you are sending back 24 entries instead of 10.

Unlucky
13 Dec 2011, 8:55 AM
thanks you so much again, but i have a question: if my array not json, why my gird can display data???
if i check it on website: http://jsonviewer.stack.hu/ , it's true.
you can see follow link : http://i.imgur.com/gpD86.png.
can you help me again, please.

Unlucky
13 Dec 2011, 9:31 AM
im convert it with format:



{"totalCount":"10","Events":[{"eventid":"1","image":"Koala.jpg","ename":"scfdddddddddddddddddddddddddddd","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-10 00:00:00.0","enddate":"2011-12-10 00:00:00.0","minpart":"5","prize":"null","description":"​dddddddddddddddddddddddd","status":"true","postdate":"2011-12-09 00:00:00.0"},{"eventid":"2","image":"Lighthouse.jpg","ename":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-10 00:00:00.0","enddate":"2011-12-10 00:00:00.0","minpart":"8","prize":"null","description":"​aaaaaaaaaaaaddddddddddddddddddddddddddddd","status":"true","postdate":"2011-12-03 00:00:00.0"},{"eventid":"3","image":"Chrysanthemum.jpg","ename":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassssssssssssssss","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-10 00:00:00.0","enddate":"2011-12-10 00:00:00.0","minpart":"12","prize":"null","description":"​aaaaaaaaaaaaddddddddddddddddddddddddddddd","status":"false","postdate":"2011-12-03 00:00:00.0"},{"eventid":"4","image":"Koala.jpg","ename":"sssssssssssssss","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-10 00:00:00.0","enddate":"2011-12-10 00:00:00.0","minpart":"5","prize":"ssssssssssssssssssssss","description":"​ssssssssssssssssssss","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"5","image":"Koala.jpg","ename":"aaaaaaaaaaaaaaaaaasdddddddddddd","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-15 00:00:00.0","startdate":"2011-12-16 00:00:00.0","enddate":"2011-12-17 00:00:00.0","minpart":"9","prize":"ssssssssssssssssssssss","description":"​ssssssssssssssssssssssss","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"6","image":"Koala.jpg","ename":"aaaaaaaaaaaaaaaaaasddddddddddddzzzzzzzzzzzzzzzzzzz","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-15 00:00:00.0","startdate":"2011-12-16 00:00:00.0","enddate":"2011-12-17 00:00:00.0","minpart":"9","prize":"ssssssssssssssssssssss","description":"​ssssssssssssssssssssssss","status":"false","postdate":"2011-12-10 00:00:00.0"},{"eventid":"7","image":"Jellyfish.jpg","ename":"asssssssssssssssssssssssssssssssssssssssssssssssssssssss","startregdate":"2011-12-17 00:00:00.0","endregdate":"2011-12-17 00:00:00.0","startdate":"2011-12-24 00:00:00.0","enddate":"2011-12-23 00:00:00.0","minpart":"6","prize":"ssssssssssssssssssssss","description":"​ssssssssssssssssssssssssssssssssssss","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"8","image":"Koala.jpg","ename":"aaaaaaaaaaaaaaaaaassssssssssssssss","startregdate":"2011-12-23 00:00:00.0","endregdate":"2011-12-24 00:00:00.0","startdate":"2011-12-23 00:00:00.0","enddate":"2011-12-30 00:00:00.0","minpart":"8","prize":"aaaaaaaaaaaaaaaaaaaaaa","description":"​aaaaaaaaaaaaaaaaaaaaaaaaaa","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"9","image":"Koala.jpg","ename":"aaaaaaaaaaaaaaaaaaaaqwe33333333333","startregdate":"2011-12-11 00:00:00.0","endregdate":"2011-12-12 00:00:00.0","startdate":"2011-12-14 00:00:00.0","enddate":"2011-12-23 00:00:00.0","minpart":"1","prize":"aaaaaaaaaaaaaaaa","description":"​asddddddddddddddd","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"10","image":"Lighthouse.jpg","ename":"34234234234sdfsdfsdfsdf","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2012-01-20 00:00:00.0","enddate":"2011-12-10 00:00:00.0","minpart":"1","prize":"asssssssssssssss","description":"​aaaaaaaaaaaaaaaaaaaaaa","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"11","image":"Koala.jpg","ename":"aaaaaaaaaaaaaaaaadddddddcccc","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-10 00:00:00.0","enddate":"2011-12-10 00:00:00.0","minpart":"1","prize":"asssssssssssss","description":"​sssssssssssss","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"12","image":"Chrysanthemum.jpg","ename":"111111111111111111111wwwwwwwwwwwww","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-16 00:00:00.0","enddate":"2011-12-22 00:00:00.0","minpart":"5","prize":"1111111111111111","description":"​11111111111111111111","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"13","image":"Lighthouse.jpg","ename":"111111111111111111111wwwwwwwwwwwww","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-16 00:00:00.0","enddate":"2011-12-22 00:00:00.0","minpart":"5","prize":"1111111111111111","description":"​11111111111111111111","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"14","image":"Lighthouse.jpg","ename":"sadsdsdsdsd","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-16 00:00:00.0","startdate":"2011-12-16 00:00:00.0","enddate":"2011-12-16 00:00:00.0","minpart":"1","prize":"ssssssssssss","description":"​sssssssssssssssssssss","status":"true","postdate":"2011-12-10 00:00:00.0"},{"eventid":"15","image":"Tulips.jpg","ename":"ssssssssssssssssssssdddddddddddddd","startregdate":"2011-12-10 00:00:00.0","endregdate":"2011-12-10 00:00:00.0","startdate":"2011-12-11 00:00:00.0","enddate":"2011-12-16 00:00:00.0","minpart":"1","prize":"sssssssssssssss","description":"​sssssssssssssssssssssss","status":"true","postdate":"2011-12-09 00:00:00.0"},{"eventid":"16","image":"Jellyfish.jpg","ename":"qwwwwwwwwwwwwwwwwwwwwsdsss","startregdate":"2011-12-12 00:00:00.0","endregdate":"2011-12-12 00:00:00.0","startdate":"2011-12-13 00:00:00.0","enddate":"2011-12-14 00:00:00.0","minpart":"4","prize":"aaaaaaaaaaaaaaa","description":"​aaaaaaaaaaaaaaaaaaaa","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"17","image":"Koala.jpg","ename":"asdasdcvbnvnghjfs","startregdate":"2011-12-14 00:00:00.0","endregdate":"2011-12-15 00:00:00.0","startdate":"2011-12-16 00:00:00.0","enddate":"2011-12-17 00:00:00.0","minpart":"6","prize":"sssssssssssssssssss","description":"​sssssssssssssssssss","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"18","image":"Desert.jpg","ename":"testststsst","startregdate":"2011-12-12 00:00:00.0","endregdate":"2011-12-12 00:00:00.0","startdate":"2011-12-12 00:00:00.0","enddate":"2011-12-13 00:00:00.0","minpart":"1","prize":"ssssssssss","description":"​ssssssssssssss","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"19","image":"Koala.jpg","ename":"sssssssssssssssssssssdddddddddddddd","startregdate":"2011-12-12 00:00:00.0","endregdate":"2011-12-13 00:00:00.0","startdate":"2011-12-14 00:00:00.0","enddate":"2011-12-15 00:00:00.0","minpart":"6","prize":"sssssssssssssssss","description":"​sssssssssssssssssssssssssssss","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"20","image":"Lighthouse.jpg","ename":"aaaaaaaaaaaaa","startregdate":"2011-12-12 00:00:00.0","endregdate":"2011-12-13 00:00:00.0","startdate":"2011-12-14 00:00:00.0","enddate":"2011-12-15 00:00:00.0","minpart":"7","prize":"sssssssssssssssssssssss","description":"​sssssssssssssssssssssssssss","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"21","image":"Hydrangeas.jpg","ename":"aaaaaaaaaaadsf34434","startregdate":"2011-12-12 00:00:00.0","endregdate":"2011-12-13 00:00:00.0","startdate":"2011-12-14 00:00:00.0","enddate":"2011-12-15 00:00:00.0","minpart":"11","prize":"ssssssddddddddddddddd","description":"​dddddddddddddddddddd","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"22","image":"Hydrangeas.jpg","ename":"Test Thu Coi Sao","startregdate":"2011-12-12 00:00:00.0","endregdate":"2011-12-13 00:00:00.0","startdate":"2011-12-14 00:00:00.0","enddate":"2011-12-15 00:00:00.0","minpart":"1","prize":"12222222222222222222","description":"​sdsdsd","status":"true","postdate":"2011-12-11 00:00:00.0"},{"eventid":"23","image":"Koala.jpg","ename":"insetr insert","startregdate":"2011-12-13 00:00:00.0","endregdate":"2011-12-14 00:00:00.0","startdate":"2011-12-15 00:00:00.0","enddate":"2011-12-16 00:00:00.0","minpart":"9","prize":"di choi di choi","description":"​xong roi ","status":"true","postdate":"2011-12-12 00:00:00.0"},{"eventid":"24","image":"Koala.jpg","ename":"test choi thoi","startregdate":"2011-12-13 00:00:00.0","endregdate":"2011-12-14 00:00:00.0","startdate":"2011-12-15 00:00:00.0","enddate":"2011-12-16 00:00:00.0","minpart":"22","prize":"test test tets","description":"test test test​","status":"true","postdate":"2011-12-13 00:00:00.0"},{"eventid":"25","image":"Koala.jpg","ename":"test event","startregdate":"2011-12-14 00:00:00.0","endregdate":"2011-12-14 00:00:00.0","startdate":"2011-12-15 00:00:00.0","enddate":"2011-12-16 00:00:00.0","minpart":"5","prize":"di choi thoi","description":"ko co gi ca<br>","status":"true","postdate":"2011-12-13 00:00:00.0"}]}
but its not limit 10 rows on grid too, i cant understand, i very, very need support, any one help me please, please ....

Unlucky
14 Dec 2011, 2:42 AM
any one help me please :(( :((