Welcome Guest Search | Active Topics | Sign In | Register

Toolbar disable and enable items Options
Frank
Posted: Sunday, February 6, 2011 5:45:33 AM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
I want some of the items of the toolbar (example: "Open") to be dynamically enabled/disabled depending on what row of the grid is selected.

So I place my code in the FocusedRowChanged event:

toolbar1.Items["Open"].Disabled = some_condition;

When the page loads, the first row of the grid (the one focused) has a condition to DISABLE the "Open" item; which it does properly.
The issue is when I select a row for which the "Open" item should be enabled, it doesn't work and the item remains disabled.
The weirdest thing is that if I debug and look at the value of the Disabled property, it is correctly set to "false" but the toolbar still shows a disabled item.

Please advise,

Thanks and regards,

Frank M.
eo_support
Posted: Monday, February 7, 2011 7:14:17 AM
Rank: Administration
Groups: Administration

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

Can you post a sample page to demonstrate the problem?

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.