Access control in pane from other pane

4 posts, 0 answers
  1. Mark
    Mark avatar
    4 posts
    Member since:
    May 2008

    Posted 02 Jun 2008 Link to this post

    Hi,

    I've got a splitter control with two panes (leftPane & rightPane with a split bar in the middle).  I'm wondering if it's possible to:
    a) Access a button on the left pane from the codebehind on the main page the splitter is on.
    b) Access a button on the left pane from the code for the content of the rightPane.

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Jun 2008 Link to this post

    Hello Mark,

    As I understand it you have a RadSplitter control with two RadPanes. In each RadPane a different page which contains buttons is loaded and you want to access the buttons.

    If I am right, you should use javascript means in order to access different pages. You can find information about referencing content page in a splitter pane from the parent page and vice versa here.

    As to different manners of executing script from server side I recommend to examine this KB article.

    In case my assumptions about your scenario are not correct, please provide more information about it.

    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Mark
    Mark avatar
    4 posts
    Member since:
    May 2008

    Posted 04 Jun 2008 Link to this post

    Thanks, I'll check on building something with those.  My specific situation is that I have a RadMenu on the primary content page which has a RadSplitter on it with two RadPane objects.  Inside one of those RadPane objects is a RadTreeView.  What I'm wanting to accomplish is when a specific item in that menu is clicked have the treeview display checkboxes beside all items and when another item in the menu is clicked hide/disable those checkboxes so they aren't visible.
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 05 Jun 2008 Link to this post

    Hello Mark,

    I assume that wrapping the checkboxes in some element (e.g. DIV) and then hiding and showing it by using javascript will do the trick. As to calling the hide/show function from parent/child I believe the provided KB article will be useful.

    In case you need further assistance, please let me know or in order to be able to help you more quickly - open a new support ticket and send me a sample fully running project.

    Best wishes,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top