Accessing RadCube Items

2 posts, 0 answers
  1. Johan
    Johan avatar
    1 posts
    Member since:
    Apr 2009

    Posted 28 Apr 2009 Link to this post

    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?
  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 30 Apr 2009 Link to this post

    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,

    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.
Back to Top