2013-05-15 48 views
0

即時通訊將使用AspxSplitter在JavaScript中設置內容url,當我按下按鈕時,它會自動更改分隔符中的內容。但我面臨的問題是,我在javascript中設置contentUrl後,它不會刷新分離器中的內容。在這裏感謝AspxSplitter在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

通過分離器設置的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>