Hi,
I have created a RadMenu in a RadGridTemplate column so that each row will have a RadMenu. I need to view/hide that RadMenu items acording to the permission.
What i did is I try to find the RadMenuItem in Grid_ItemDataBound event of the grid.
First I use "FindItemByText" method. It works well.
I have created a RadMenu in a RadGridTemplate column so that each row will have a RadMenu. I need to view/hide that RadMenu items acording to the permission.
What i did is I try to find the RadMenuItem in Grid_ItemDataBound event of the grid.
First I use "FindItemByText" method. It works well.
var radMenuMission = item.FindControl(RadMenuName)
as
RadMenu;
if
(radMenuMission !=
null
) {
var radMenuItem = radMenuMission.FindItemByText(
"Delete"
);
But the problem is Text property is changed according to localized resources.
in that way Finding the RadMenuItem by Text is failed.
I need to use "FindItemByValue" method. I set "Value" attribute of the RadMenuItem still i cant Find the menu Item.
When I see the html code of the browser the Value property is missing.
Can anybody help for this ?
Thank you,
Dinesh
in that way Finding the RadMenuItem by Text is failed.
I need to use "FindItemByValue" method. I set "Value" attribute of the RadMenuItem still i cant Find the menu Item.
When I see the html code of the browser the Value property is missing.
Can anybody help for this ?
Thank you,
Dinesh