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

Access control in pane from other pane

3 Answers 106 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 02 Jun 2008, 12:44 PM
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.

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 03 Jun 2008, 02:59 PM
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
0
Mark
Top achievements
Rank 1
answered on 04 Jun 2008, 02:14 PM
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.
0
Svetlina Anati
Telerik team
answered on 05 Jun 2008, 01:44 PM
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
Tags
Splitter
Asked by
Mark
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Mark
Top achievements
Rank 1
Share this question
or