This is a migrated thread and some comments may be shown as answers.

Setting command items visbility

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dom
Top achievements
Rank 1
Dom asked on 05 Oct 2011, 09:11 PM
I'm trying to manually hide/display some buttons on command item template of a detail table but I've been unsuccessful. I thought changing visibility in OnItemCommand would do it, since I know at that time which detail table to change and which command is executed but it's not working. I've found some posts that suggest hiding items during OnItemCreated event but then I don't know for which detail table... Any ideas?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 07 Oct 2011, 01:52 PM
Hello Dom,

You could set the Name property of the GridTableViews in your hierarchy to differentiate between them and then check the value in ItemCreated of e.Item.OwnerTableView.Name to see which detail table the command item belongs to.

Kind regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Dom
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or