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

[Solved] Problem with ajaxRequest while using 2 splitters on 1 page

0 Answers 70 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.
Enrico
Top achievements
Rank 1
Enrico asked on 06 Jul 2012, 08:29 AM
Hi,

currently I'm building a page, where I use jquery-ui popup dialogs to enter some information. They are defined by divs in the main page. For now I have two such popups, each with a splitter, holding a treeview on the left pane and detail informations on the right pane.

The code, I use to refresh the detail informations, where Controller/Action returns a PartialView:

$("#popup1_splitter").data("tSplitter").ajaxRequest(".t-pane:last", "/Controller/Action", { value: $('#popup1_tree').data('tTreeView').getItemValue(e.item) });

All works well as long as I only use one splitter. As soon as I put the second dialog on the main page, using following call for the details

$("#popup2_splitter").data("tSplitter").ajaxRequest(".t-pane:last", "/Controller/Action2", { value: $('#popup2_tree').data('tTreeView') 
.getItemValue(e.item) });

BOTH details views are now rendered in the right pane of the second splitter. Is this a bug, with a possible workaround or am I just missing a point here?

Greetings

Enrico

Edit: Found a workaround by myself. Adding splitters name to "t.-pane-last" seems to work:

$("#popup1_splitter").data("tSplitter").ajaxRequest("#popup_splitter1 .t-pane:last", "/Controller/Action", { value: $('#popup1_tree').data('tTreeView').getItemValue(e.item) });

Furthermore there is already an open issue for that: http://www.telerik.com/support/pits.aspx#/details/Issue=7275 
Tags
Splitter
Asked by
Enrico
Top achievements
Rank 1
Share this question
or