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

Accessing RadCube Items

1 Answer 66 Views
Cube
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 28 Apr 2009, 05:13 PM
Hi I was hoping someone could explain as to how to access elements on each face of the Cube

I know RadCube.Items[0] will return the grid. but how do I access for example textboxes on that grid?

Do I need to use a visualtreehelper or something like that? is there no easy access way?

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 30 Apr 2009, 05:15 PM

Hello Johan,

If the RadCube is part of a UserControl (Page), you can assign them names (with x:Name="SomeName") and VS will generate fields for you that toy will be able to access from the code-behind.

If it is part of a template and you have access to the grid, you can use

TextBox myTextBox = grid.FindName("TextBoxName") as TextBox;

All the best,

Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Cube
Asked by
Johan
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or