3

我有 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 控制中。蒂亚!

以下是 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>                 

4

1 回答 1

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 的 PageViewIDs 应该指向 RadTabStrip 的 PageViewIDs。

于 2013-08-19T17:14:52.263 回答