More in this section

Forums / Developing with Sitefinity / Button Click inside tab

Button Click inside tab

2 posts, 0 answered
  1. Sharon
    Sharon avatar
    17 posts
    Registered:
    06 Feb 2009
    12 Aug 2009
    Link to this post
    Hello,

    I am using Telerik Radtabstrip. I would like to add an imagebutton in one of the tab. I am able to place an Imagebutton in the tab as desired but the buttonclick event is not firing. Please do the needful.

    Sincerely,
    Sharon
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    12 Aug 2009
    Link to this post
    Hello Sharon,

    Bellow is the code I defined that add image in the Tab item.
    Currently you cannot add additional button inside the <Tab> tags.(if that is what you are referring as imagebutton)
     
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Subs.aspx.cs" Inherits="Subs" %> 
     
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml"
    <head runat="server"
        <title></title
    </head> 
    <body> 
        <form id="form1" runat="server"
        <asp:ScriptManager ID="sman" runat="server"></asp:ScriptManager> 
        <div> 
           <telerik:RadTabStrip ID="tabStrip" runat="server" OnTabClick="TabClick"
           <Tabs> 
            <telerik:RadTab ImageUrl="Images/32_button_green.png">             
            </telerik:RadTab> 
           </Tabs> 
           </telerik:RadTabStrip> 
        </div> 
        </form> 
    </body> 
    </html> 

    and this is in the code behind:

    using System; 
    using Telerik.Web.UI; 
     
     
    public partial class Subs : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
        { 
             
        } 
     
        protected void TabClick(object sender, RadTabStripEventArgs e) 
        { 
            Response.Write("Tab is clicked"); 
        } 


    Best wishes,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
2 posts, 0 answered