How can I add an HTML content to Tab control via Client API?

2 posts, 0 answers
  1. Igor Savin
    Igor Savin avatar
    1 posts
    Member since:
    Dec 2004

    Posted 24 Jan 2014 Link to this post

    Hi,

    I've added some tabs to my instance of RadTabStrip and now I need to populate particular tab with HTML which I've got before via JQuery. How can I attach this HTML to the particular tab?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jan 2014 Link to this post

    Hi,

    Please have a look into the sample code snippet to add HTML content to RadTabStrip from Client side.

    ASPX:
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
        <Tabs>
            <telerik:RadTab Text="Tab1" PageViewID="RadPageView1">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
        <telerik:RadPageView ID="RadPageView1" runat="server">
        </telerik:RadPageView>
    </telerik:RadMultiPage>

    JavaScript:
    <script type="text/javascript">
        function pageLoad() {
            var Mulitpage = $find("<%=RadMultiPage1.ClientID %>");
            Mulitpage.findPageViewByID("RadPageView1")._element.innerHTML = "<span >Demo</span>";
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top