2017-08-30 71 views
0

問題: 我想把兩個radgrid並排放在一起,我不能通過使用分離器來做到這一點,任何想法?C#Asp.net Telerik如何並排放入RadGrid?

我的代碼:

<telerik:RadSplitter ID="Splitter1" runat="server" Width="1007px"> 
    <telerik:RadPane ID="RadPane1" runat="server"> 
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="true"> 
    </telerik:RadGrid> 
     <telerik:RadPane ID="RadPane2" runat="server"> 
      <telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="true" DataSourceID="SqlDataSource2"> 
      </telerik:RadGrid> 
     </telerik:RadPane> 
    </telerik:RadPane> 
</telerik:RadSplitter> 

How i want the radgrids to be

+0

甚至嘗試過:http://demos.telerik.com/aspnet-ajax/splitter/examples/splitterorientation/defaultcs.aspx –

+0

因此,'Orientation =「Vertical」'doesn'在這裏工作?可能有些CSS設置可能會被使用。 –

+0

Nope沒有幫助把radsplitter垂直或只是移動窗格周圍。 –

回答

0

的設計表明,該設計是錯誤的,當它實際上我原來的代碼工作。 感謝您的幫助:)

+0

那麼問題是什麼?哪個答案是正確的? –

0

因爲你把RadPane2裏面RadPan1。你必須改變這樣的:

<telerik:RadSplitter ID="Splitter1" runat="server" Width="1007px"> 
<telerik:RadPane ID="RadPane1" runat="server"> 
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" 
AutoGenerateColumns="true"> 
</telerik:RadGrid> 
</telerik:RadPane> 
<telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward"> 
</telerik:RadSplitBar> 
<telerik:RadPane ID="RadPane2" runat="server"> 
<telerik:RadGrid ID="RadGrid2" runat="server" AutoGenerateColumns="true" 
DataSourceID="SqlDataSource2"> 
</telerik:RadGrid> 
</telerik:RadPane> 
</telerik:RadSplitter>