我将使用AspxSplitter在javascript中设置内容网址,当我按下按钮时,它会自动更改拆分器中的内容。但我面临的问题是,我在javascript中设置了contentUrl,但它不会刷新分割器中的内容。感谢
function ActiveTabChanged(e) {
var index = e.item.name;
if (index == "menu2") {
var pane = ContactTab.GetPaneByName('pane1')
// ContactTab.GetPaneByName('pane1').SetContentUrl("Default.aspx");
pane.SetContentUrl("Default.aspx");
pane.RefreshContentUrl();
}
}
这是我的分割器设置
<dx:SplitterPane Name="pane1">
<ContentCollection>
<dx:SplitterContentControl>
</dx:SplitterContentControl>
</ContentCollection>
</dx:SplitterPane>
答案 0 :(得分:0)
通过在分割器中设置contentUrl来解决。感谢
<XF:XFSplitter ID="XFSplitter1" runat="server" Width="100%" FullscreenMode="true" ClientInstanceName="XFSplitter1">
<Panes>
<dx:SplitterPane ShowCollapseBackwardButton="True" name="pane1" ContentUrl="frmMasterEntry.aspx">
<ContentCollection>
<dx:SplitterContentControl ID="SplitterContentControl3" runat="server">
</dx:SplitterContentControl>
</ContentCollection>
</dx:SplitterPane>
</Panes>
</XF:XFSplitter>