2013-08-19 85 views
3

我有3個Telerik的翼片向上:Telerik的標籤欄控件表示其他標籤

<telerik:RadTabStrip ID="tabStrip" runat="server" MultiPageID="multiPage" SelectedIndex="0" ClickSelectedTab="true" OnTabClick="tabStrip_TabClick"> 
     <Tabs> 
      <telerik:RadTab runat="server" Text="Pending Invoices" PageViewID="pendingInvoicesPageView"> 
      </telerik:RadTab> 
      <telerik:RadTab runat="server" Text="Paid Invoices" PageViewID="paidInvoicesPageView"> 
      </telerik:RadTab> 
      <telerik:RadTab runat="server" Text="My Payment Account" PageViewID="myPaymentAccountPageView"> 
      </telerik:RadTab>     
     </Tabs> 
    </telerik:RadTabStrip> 

用3頁視圖:

<telerik:RadMultiPage ID="multiPage" runat="server" 
    <telerik:RadPageView ID="PageView1" runat="server"> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="PageView2" runat="server"> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="PageView3" runat="server"> 
    </telerik:RadPageView> 
</telerik:RadMultiPage> 

現在,PageView1的內容被示出在PageView2和PageView3向上在我添加下面的代碼後:

<telerik:RadAjaxManager ID="radAjaxManager" runat="server"> 
    <AjaxSettings> 
     <telerik:AjaxSetting AjaxControlID="tabStrip"> 
      <UpdatedControls> 
       <telerik:AjaxUpdatedControl ControlID="tabStrip" /> 
       <telerik:AjaxUpdatedControl ControlID="multiPage" /> 
      </UpdatedControls> 
     </telerik:AjaxSetting> 
     <telerik:AjaxSetting AjaxControlID="multiPage"> 
      <UpdatedControls> 
       <telerik:AjaxUpdatedControl ControlID="tabStrip" /> 
       <telerik:AjaxUpdatedControl ControlID="multiPage" /> 
      </UpdatedControls> 
     </telerik:AjaxSetting>    
    </AjaxSettings> 
</telerik:RadAjaxManager> 

請給我一個建議,我迷失在這個telerik控制。 TIA!

下面是一些RadPageView的內容:

<wac:WebDialogControl Id="WebDialogControl1" Runat="server" Label="" LabelVAlign="top"> 

     <asp:DataGrid Id="paidInvoiceGrid" Runat="server" > 

      <Columns> 
       <asp:BoundColumn DataField="Id" Visible="False" /> 
       <asp:BoundColumn DataField="PaymentDate" HeaderText="Date" /> 
       <asp:ButtonColumn DataTextField="InvoiceId" HeaderText="Invoice #" /> 
       <asp:BoundColumn DataField="Name" HeaderText="Services For" /> 
       <asp:BoundColumn DataField="PaymentAmount" HeaderText="Amount" /> 
       <asp:BoundColumn DataField="PaidInFullDescription" HeaderText="Payment(s)" /> 
      </Columns> 

     </asp:DataGrid> 

    </wac:WebDialogControl>     

+0

你能告訴我一些PageView1,2和3的內容嗎?你是如何約束這些內容的? – zey

+0

下面是RadPageView,asp:DataGrid,asp:Panel,UserControls,表格中的一些控件。 – akosidabs

+0

我在問題 – akosidabs

回答

2
<telerik:RadMultiPage ID="multiPage" runat="server"> 
    <telerik:RadPageView ID="PageView1" runat="server"> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="PageView2" runat="server"> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="PageView3" runat="server"> 
    </telerik:RadPageView> 
</telerik:RadMultiPage> 

應該是:

<telerik:RadMultiPage ID="multiPage" runat="server"> 
    <telerik:RadPageView ID="pendingInvoicesPageView" runat="server"> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="paidInvoicesPageView" runat="server"> 
    </telerik:RadPageView> 
    <telerik:RadPageView ID="myPaymentAccountPageView" runat="server"> 
    </telerik:RadPageView> 
</telerik:RadMultiPage> 

你應該指向正確的RadMultiPage在RadTabStr ip控制,你正在做的正確。但是,RadMultiPage內的PageViews的PageViewID應該指向RadTabStrip的PageViewID。