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

Splitter collapse click event bubbling

1 Answer 68 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jeanne
Top achievements
Rank 1
Jeanne asked on 22 Aug 2013, 07:58 PM
I have a radSplitter dividing my page into two areas. Sometimes when I click on the splitter button to collapse the left pane it appears that the click event is allowed to bubble to the content in the right pane. The right pane contains a content placeholder which contains a iframed page. That page has a table that responds to click events, and it is responding to the bubbled click event, causing unexpected results.

Is there a way I can prevent the click event on the splitter collapse button from bubbling?

1 Answer, 1 is accepted

Sort by
0
Jeanne
Top achievements
Rank 1
answered on 23 Aug 2013, 04:12 PM
I was finally able to reproduce the problem in a simpler page, and track down the cause. The framed page is from a very old web site. In order to try to get maximum compatibility, I was setting the document mode of the master page to IE7 standards:

Response.AddHeader("X-UA-Compatible", "IE=7")


In this state, it appears the mouse button up event is sent to the framed page (because once the left pane is collapsed, the mouse cursor is now over the framed page), and the framed page seems to interpret that as a mouse click event and responds to it.

When I took out the above AddHeader statement, the problem disappeared.

Hopefully leaving the document mode at IE9 standards instead won't cause any rendering problems in the framed page and I can consider this problem solved.
Tags
Splitter
Asked by
Jeanne
Top achievements
Rank 1
Answers by
Jeanne
Top achievements
Rank 1
Share this question
or