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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Can you post a sample page to demonstrate the problem?
Thanks
|