Welcome Guest Search | Active Topics | Sign In | Register

[Javascript - IE8] GridColumn.setVisible not working after reordering columns ? Options
Laurent
Posted: Thursday, September 3, 2009 8:00:14 PM
Rank: Newbie
Groups: Member

Joined: 9/11/2007
Posts: 8
Hi,

I have a grid on a page and a menu with menuitems which are the grid's column names. One can add/remove a grid column by checking/unchecking the column name in the menu.

When one clicks on a column name in the menu, the following javascript is executed (grid is global) :

function onColumnMenuClick(e, eventInfo)
{
var item = eventInfo.getItem();
if(item.getLevel() > 0)
{
item.setChecked(!item.getChecked());
grid.getColumn(item.getText()).setVisible(item.getChecked());
}
}

this works fine until the user reorders some columns. After reordering columns, the setVisible call has no effect.

Thanks.
Laurent.

eo_support
Posted: Thursday, September 3, 2009 8:30:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have confirmed this to be a bug. We will fix it and provide you an update build as soon as possible.

Thanks!
Laurent
Posted: Friday, September 4, 2009 4:42:23 AM
Rank: Newbie
Groups: Member

Joined: 9/11/2007
Posts: 8

Thank you for your replying so quickly.

I also noticed that when you have set a grid column invisible and you want to reorder columns, the separators that are highlighted to mark the possible new position of the reordered column are the old separators, the one before making the column invisible.

You can have it tested with a grid whose columns have different widths. Set one of the columns invisible and try to reorder another column.

Thanks,
Laurent.
eo_support
Posted: Friday, September 4, 2009 8:15:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Thank you very much for this additional information. We will verify it and hopefully can fix it along with the original problem.
eo_support
Posted: Friday, September 4, 2009 12:04:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that should fix both issues. Please see your private message for download location.

Thanks!
Mona
Posted: Friday, September 4, 2009 6:22:29 PM
Rank: Advanced Member
Groups: Member

Joined: 5/15/2009
Posts: 33
Could I get this new build that fixes the issue.

Thank you,
Mona
eo_support
Posted: Saturday, September 5, 2009 11:04:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Mona,

Please see your private message for download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.