Hi,
I have a radgrid with detail table and i would like to disable certain rows but keep the expand button enabled.
In the grid prerender event i have this code :
But this doesn't enable the expandbutton, so i think setting the item to disabled will always force the expand button to be disabled as well.
I could set the font settings so the row would look disabled but then i wouldn't be able to check if it is enabled in client-side code, i need to do that to determine if a contextmenu may be shown or not.
Is there some other way i can achieve this?
I have a radgrid with detail table and i would like to disable certain rows but keep the expand button enabled.
In the grid prerender event i have this code :
| foreach (GridDataItem item in (sender as RadGrid).Items) |
| { |
| if (DisableRow(item)) |
| { |
| item.Enabled = false; |
| item["ExpandColumn"].Enabled = true; |
| (item["ExpandColumn"].Controls[0] as Button).Enabled = true; |
| } |
| } |
But this doesn't enable the expandbutton, so i think setting the item to disabled will always force the expand button to be disabled as well.
I could set the font settings so the row would look disabled but then i wouldn't be able to check if it is enabled in client-side code, i need to do that to determine if a contextmenu may be shown or not.
Is there some other way i can achieve this?