|
Rank: Advanced Member Groups: Member
Joined: 3/31/2009 Posts: 52
|
I placed a grid in a page. The following are some setting of the grid
Grid1.FullRowMode = false Grid1.RunningMode = callback Grid1.Grid1_CellSelected = Grid1_CellSelected
When I select a cell, I do the following thing in the Grid1_CellSelected function.
eo_Callback('cbp', 'View');
However, it always generate a client script error.
this.aalx is null
How to fix this error?
|
|
Rank: Advanced Member Groups: Member
Joined: 3/31/2009 Posts: 52
|
I can give you our web-site URL, so that you could test it. Would you mind to give me your email address?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, This is normal. It occurs because eo_Callback unloaded the Grid, once your eo_Callback returns, the code continues to run into the Grid but the Grid has already been unloaded. To avoid this problem, use a setTimeout call to delay eo_Callback:
Code: JavaScript
setTimeout(function()
{
eo_Callback('cbp', 'View');
}, 100);
This way the Grid code will finish first and then it will run eo_Callback. Thanks!
|
|