telerik tabstrip控件显示在其他选项卡中

时间:2013-08-19 09:35:53

标签: c# asp.net telerik

我有3个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>                 

1 个答案:

答案 0 :(得分: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> 

您应该指向您正确执行的RadTabStrip控件中的右侧RadMultiPage。但是,RadMultiPage内的PageViews的PageViewID应该指向RadTabStrip的PageViewID。