input is null

5 views
Skip to first unread message

Christoph Krause

unread,
Aug 25, 2010, 12:16:01 PM8/25/10
to MyTableGrid
Hello all,

i get the error

input is null
.../tablegrid.js
Line 1237

after i save the table,execute a refresh() and then try to edit
another entry.
also clear() doesn't seem to do anything at all.

any ideas?

thx
Christoph

Pablo Aravena

unread,
Aug 25, 2010, 12:40:56 PM8/25/10
to mytab...@googlegroups.com
Hi Christoph

When you call the refresh method you retrieve the information again, using the original http request in an asynchronous way. What exactly you do when saving the rows? also what do you do after saving the data?

Thanks
Pablo




--
You received this message because you are subscribed to the Google Groups "MyTableGrid" group.
To post to this group, send email to mytab...@googlegroups.com.
To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mytablegrid?hl=en.


Christoph Krause

unread,
Aug 25, 2010, 2:17:40 PM8/25/10
to MyTableGrid
Hi Pablo,

I save the data with a prototype Ajax.Request.
OnComplete i call the Refresh.

That's all I do...

thx,
Christoph


On Aug 25, 6:40 pm, Pablo Aravena <paraven...@gmail.com> wrote:
> Hi Christoph
>
> When you call the refresh method you retrieve the information again, using
> the original http request in an asynchronous way. What exactly you do when
> saving the rows? also what do you do after saving the data?
>
> Thanks
> Pablo
>
> On Wed, Aug 25, 2010 at 12:16 PM, Christoph Krause
> <ckay2...@googlemail.com>wrote:
>
>
>
> > Hello all,
>
> > i get the error
>
> > input is null
> > .../tablegrid.js
> > Line 1237
>
> > after i save the table,execute a refresh() and then try to edit
> > another entry.
> > also clear() doesn't seem to do anything at all.
>
> > any ideas?
>
> > thx
> > Christoph
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "MyTableGrid" group.
> > To post to this group, send email to mytab...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mytablegrid...@googlegroups.com<mytablegrid%2Bunsubscribe@googlegr oups.com>
> > .

Pablo Aravena

unread,
Aug 25, 2010, 2:54:04 PM8/25/10
to mytab...@googlegroups.com
Could you send me the table model you are using for creating the table grid

Thanks

To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.

Christoph Krause

unread,
Aug 25, 2010, 3:36:10 PM8/25/10
to mytab...@googlegroups.com
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
Message has been deleted

Christoph Krause

unread,
Aug 26, 2010, 3:58:24 AM8/26/10
to MyTableGrid
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%2Bunsubscribe@googlegr oups.com>
> >> > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/mytablegrid?hl=en.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "MyTableGrid" group.
> >> To post to this group, send email to mytab...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> mytablegrid...@googlegroups.com<mytablegrid%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/mytablegrid?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "MyTableGrid" group.
> > To post to this group, send email to mytab...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mytablegrid...@googlegroups.com<mytablegrid%2Bunsu...@googlegroups.com>

Pablo Aravena

unread,
Aug 26, 2010, 9:32:43 AM8/26/10
to mytab...@googlegroups.com
Hi Christoph

I have added this instruction at line 202

self._blurCellElement(self.keys._nCurrentFocus);

I have attached the tablegrid.js file including the bug fix

Thanks

Have an excellent day friend

and don't forget to support my work :-D


To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.
tablegrid.js

Christoph Krause

unread,
Aug 26, 2010, 10:10:56 AM8/26/10
to MyTableGrid
Hi Pablo,

the fix works like a charm.
Thanks a lot for the great support.

I sure will use mytablegrid in future projects a lot.
Expect a beer donation from me sometime next week :)

thanx again,
Christoph

On Aug 26, 3:32 pm, Pablo Aravena <paraven...@gmail.com> wrote:
> Hi Christoph
>
> I have added this instruction at line 202
>
> self._blurCellElement(self.keys._nCurrentFocus);
>
> I have attached the tablegrid.js file including the bug fix
>
> Thanks
>
> Have an excellent day friend
>
> and don't forget to support my work :-D
>
> On Thu, Aug 26, 2010 at 3:58 AM, Christoph Krause
> <ckay2...@googlemail.com>wrote:
> > <mytablegrid%2Bunsu...@googlegroups.com<mytablegrid%252Buns...@googlegroups.com>
>
> > > >> <mytablegrid%2Bunsubscribe@googlegr oups.com>
> > > >> > > .
> > > >> > > For more options, visit this group at
> > > >> > >http://groups.google.com/group/mytablegrid?hl=en.
>
> > > >> --
> > > >> You received this message because you are subscribed to the Google
> > Groups
> > > >> "MyTableGrid" group.
> > > >> To post to this group, send email to mytab...@googlegroups.com.
> > > >> To unsubscribe from this group, send email to
> > > >> mytablegrid...@googlegroups.com<mytablegrid%2Bunsu...@googlegroups.com>
> > <mytablegrid%2Bunsu...@googlegroups.com<mytablegrid%252Buns...@googlegroups.com>
>
> > > >> .
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/mytablegrid?hl=en.
>
> > > >  --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "MyTableGrid" group.
> > > > To post to this group, send email to mytab...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > mytablegrid...@googlegroups.com<mytablegrid%2Bunsu...@googlegroups.com>
> > <mytablegrid%2Bunsu...@googlegroups.com<mytablegrid%252Buns...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/mytablegrid?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "MyTableGrid" group.
> > To post to this group, send email to mytab...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mytablegrid...@googlegroups.com<mytablegrid%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/mytablegrid?hl=en.
>
>
>
>  tablegrid.js
> 133KViewDownload

Pablo Aravena

unread,
Aug 26, 2010, 10:13:23 AM8/26/10
to mytab...@googlegroups.com
Excellent friend :-D



To unsubscribe from this group, send email to mytablegrid...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages