Good Morning,
this is the code for the table model i use:
var tableModel = {
options : {
width: '700px',
title: 'Deine Tickets',
toolbar : {
elements: [MyTableGrid.SAVE_BTN],
onSave: function() {
var modifiedRows = tableGrid1.getModifiedRows();
temp = '';
for (var i = 0; i < modifiedRows.length; i++) {
for (var p in modifiedRows[i]) {
temp += p + '=' + modifiedRows[i][p] + '&';
}
}
new Ajax.Request('./save.php?'+temp, {
onComplete: function(transport){
tableGrid1.clear();
tableGrid1.refresh();
}
});
},
onAdd: function() {
//alert('on add handler');
},
onDelete: function() {
//alert('on delete handler');
}
},
rowClass : function(rowIdx) {
var className = '';
if (rowIdx % 2 == 0) {
className = 'hightlight';
}
return className;
}
},
columnModel : [
{
id : 'id',
title : 'Id',
width : 30,
editable: false,
},
{
id : 'status',
title : 'Ticketart',
width : 90,
editable: true
},
{
id : 'ticketnr',
title : 'Ticketnummer',
width : 100,
editable: true
},
{
id : 'kdnr',
title : 'Kundennummer',
width : 95,
editable: true
},
{
id : 'ticketart',
title : 'Status',
width : 90,
editable: true
},
{
id : 'rueckruf',
title : 'Rückrufe',
width : 90,
editable: true
},
{
id : 'kurzbeschreibung',
title : 'Beschreibung',
width : 170,
editable: true
}
],
url: 'list.php'
};
On Aug 25, 9:36 pm, Christoph Krause <
ckay2...@googlemail.com> wrote:
> Basically I used your table model from the newest php example and just added
> some columns, but I can send you the code tomorrow when I'm back at work.
>
> Bye,
> Christoph
>
> On Wed, Aug 25, 2010 at 8:54 PM, Pablo Aravena <
paraven...@gmail.com> wrote:
> > Could you send me the table model you are using for creating the table grid
>
> > Thanks
>
> > On Wed, Aug 25, 2010 at 2:17 PM, Christoph Krause <
ckay2...@googlemail.com
> >> > >
mytablegrid...@googlegroups.com<
mytablegrid%2Bunsu...@googlegroups.com>
> >>
mytablegrid...@googlegroups.com<
mytablegrid%2Bunsu...@googlegroups.com>
> >
mytablegrid...@googlegroups.com<
mytablegrid%2Bunsu...@googlegroups.com>