RadStrip con DataSoucrh

5 posts, 0 answers
  1. Roderick
    Roderick avatar
    10 posts
    Member since:
    Aug 2008

    Posted 20 May 2009 Link to this post

    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?


  2. Roderick
    Roderick avatar
    10 posts
    Member since:
    Aug 2008

    Posted 21 May 2009 Link to this post

    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.
  3. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 25 May 2009 Link to this post

    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.
  4. Roderick
    Roderick avatar
    10 posts
    Member since:
    Aug 2008

    Posted 04 Jun 2009 Link to this post

    how to use this, you could give an example please.
  5. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 11 Jun 2009 Link to this post

    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.
Back to Top