This is a migrated thread and some comments may be shown as answers.
RadStrip con DataSoucrh
4 Answers 34 Views
This is a migrated thread and some comments may be shown as answers.
Roderick
Top achievements
Rank 1
Roderick asked on 20 May 2009, 07:22 PM
RadStrip con SqlDataSource

Hola Equipo de Telerik,
tengo una tabla con los campos Id, UserId, TituloPagina, url, activo. Y dentro de un  SqlDataSource tengo un select normal para que me traiga los datos relaciono el RadStrip con el SqlDataSource y me trae los tabs que para mi usuario son tres, cuando procedo a navegar por los tabs y doy un clic en cualquiera de ellos me lleva al url que quiero. Excelente! pero el problema esta en que me abre una ventana nueva y dentro de un  PageView
como puedo hacer para que me aparezca dentro de la misma pagina?

aqui esta el codigo en .aspx
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
    <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">  
        <tr> 
            <td valign="top">  
              
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" DataFieldID="IdUrl" DataNavigateUrlField="url" 
                    DataSourceID="SqlUrl" DataTextField="TituloPagina" MultiPageID="RadMultiPage1" Height="100%">  
                    <DataBindings> 
                        <telerik:RadTabBinding PageViewID="RadPageView1" SelectedIndexField="0" TextField="TituloPagina" Depth="1" /> 
                    </DataBindings> 
                </telerik:RadTabStrip> 
                                 
                <asp:SqlDataSource ID="SqlUrl" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="SELECT TituloPagina, url, activo, IdUrl FROM TabsUrls WHERE (UserId = @UserId)" ProviderName="System.Data.SqlClient">  
                    <SelectParameters> 
                        <asp:ControlParameter ControlID="lblUsuario" Name="UserId" 
                            PropertyName="Text" Type="String" /> 
                    </SelectParameters> 
                </asp:SqlDataSource> 
      
    <asp:Label  
        ID="lblUsuario" runat="server" Visible="False"></asp:Label></td>  
        </tr> 
    </table> 
</asp:Content> 

saludos

medio traducido a ingles jeje :)

Hi Telerik Team,
I have a table with fields Id, UserId, TituloPagina, url, active. And within a SqlDataSource I select a normal to bring me to relate the data with the SqlDataSource and RadStrip brings me the tabs for my user are three, as appropriate to navigate the tabs and I click on any of them leads me the url I want. Excellent! but the problem is that I open a new window within a PageView
How can I do to appear within the same page?


4 Answers, 1 is accepted

Sort by
0
Roderick
Top achievements
Rank 1
answered on 21 May 2009, 09:56 PM
If anyone knows another way to show the url to the tab by clicking here me say this through an iframe


<div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" DataFieldID="IdUrl" DataNavigateUrlField="url" 
            DataTextField="TituloPagina" DataValueField="UserId" DataSourceID="SqlUrl" MultiPageID="RadMultiPage1" AutoPostBack="True" MaxDataBindDepth="3" SelectedIndex="0" Width="100%">  
            <DataBindings> 
                <telerik:RadTabBinding SelectedIndexField="url" TargetField="url" SelectedIndex="0" Target="targetFrame" TextField="TituloPagina" ToolTipField="TituloPagina" Value="url" /> 
            </DataBindings> 
        </telerik:RadTabStrip> 
    <iframe name="targetFrame" style="width: 100%; height: 550px" frameborder="0" marginheight="0" marginwidth="0"></iframe>    
      
    </div> 

Saludos.
0
Paul
Telerik team
answered on 25 May 2009, 01:28 PM
Hi Roderick,

You can use RadSplitter control instead of iframes. The tabstrip will be placed inside one RadPane, and the pages (set for each tab via the NavigateUrl property) will open inside another RadPane.

All the best,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Roderick
Top achievements
Rank 1
answered on 04 Jun 2009, 03:59 PM
how to use this, you could give an example please.
0
Paul
Telerik team
answered on 11 Jun 2009, 11:56 AM
Hi Roderick,

Please refer to our Splitter / External Content example for details on the matter.

Greetings,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Asked by
Roderick
Top achievements
Rank 1
Answers by
Roderick
Top achievements
Rank 1
Paul
Telerik team
Share this question
or