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

[Solved] Can not access splitter from client

2 Answers 103 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 25 Jul 2011, 12:22 PM

i cannot seem to access splitter, 

alert($("#LayoutSplitter")) will return 'object'
alert($("#LayoutSplitter").data("tSplitter")) will return 'undefined'

 

 

var splitter = $("#LayoutSplitter").data("tSplitter");

any ideas?

2 Answers, 1 is accepted

Sort by
0
Alan Mosley
Top achievements
Rank 1
answered on 25 Jul 2011, 02:41 PM
Solved, my problem was that the splitter was loading a view with duplicate scripts in it
0
Lasse
Top achievements
Rank 1
answered on 15 Jan 2012, 02:28 AM
I had the same issue, however mine was caused by one of the Panes loading content (using .LoadContentFrom("PartialViewName")) from a PartialView where I had not added "Layout = null" like this:

@{
    Layout = null;
}
 
This is a Partial View

Not adding the "Layout = null" will result in the PartialView loading _Layout.cshtml, messing up everything.

Just thought I might add this, in case someone else encounters this problem.
Tags
Splitter
Asked by
Alan Mosley
Top achievements
Rank 1
Answers by
Alan Mosley
Top achievements
Rank 1
Lasse
Top achievements
Rank 1
Share this question
or