Display Image on Selected radtabstrip

3 posts, 0 answers
  1. Anshul
    Anshul avatar
    8 posts
    Member since:
    Mar 2013

    Posted 24 Feb 2014 Link to this post

    Hello Team,

    In my project i have implement the show image on selected page after page load.
    i tried from javascript, but it don't help me because when the page load image automatically hide.

    My  code is that on tabclick 
     <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="VISTA" AutoPostBack="true"
                                    OnTabClick="RadTabStrip1_TabClick" EnableEmbeddedSkins="false" OnClientTabSelected="OnClientTabSelected1">

     protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
            Session["TabIdValue"] = RadTabStrip1.SelectedTab.Value;
            RadTabStrip1.SelectedTab.ImageUrl = "images/arrow-on.png";
           // PopulateTreeView(RadTabStrip1.SelectedTab.Value);
            string sConn = AppSettings.GetItem("ConnectionString");

            string TabId = RadTabStrip1.SelectedTab.Text;
            DataTable dt = new DataTable("BNet_NavigationMaster_TB");
            DataSet ds = new DataSet();
            SqlDataAdapter da = new SqlDataAdapter("select * from BNet_NavigationMaster_TB ", sConn);

            for (int i = 0; i < dt.Rows.Count; i++)
                if (TabId == dt.Rows[i]["text"].ToString())
                    Response.Redirect(ConfigurationManager.AppSettings["PagePath"] + dt.Rows[i]["filepath"].ToString());
  2. Alok
    Alok avatar
    3 posts
    Member since:
    Feb 2014

    Posted 24 Feb 2014 Link to this post

    I have a same problem.. please help
  3. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Feb 2014 in reply to Alok Link to this post


    Please have a look into the sample code snippet which works fine at my end.

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" OnTabClick="RadTabStrip1_TabClick"
            <telerik:RadTab Text="Tab1">
            <telerik:RadTab Text="Tab2">

    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        RadTabStrip1.SelectedTab.ImageUrl = "~/Images/BlackPlus.png";

    Let me know if you have any concern.
Back to Top