This is a migrated thread and some comments may be shown as answers.
Change RadTab ImageUrl value on client side click?
6 Answers 59 Views
This is a migrated thread and some comments may be shown as answers.
Arroyocode
Top achievements
Rank 1
Arroyocode asked on 28 Jan 2010, 07:22 PM
Hey all,

I'm curious how to change a RadTab's ImageUrl value to use another image on client click for a particular tab? The ImageUrl property is already set by default on render, just want to update it to another icon on client click?

I was unable to locate anything in the forums that addresses this issue specifically much to my surprise.

Thanks for the help!

6 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 29 Jan 2010, 06:32 AM
Hello,

You can set the ImageUrl using the set_imageUrl() method fro client side.

JavaScript;
 
    <script type="text/javascript"
        function selectTab() { 
            var tabStrip = $find("<%= RadTabStrip1.ClientID %>"); 
            var tab = tabStrip.findTabByText('Product'); 
            tab.set_imageUrl('../Images/Img1.gif'); 
        } 
    </script> 

-Shinu.
0
Arroyocode
Top achievements
Rank 1
answered on 29 Jan 2010, 05:11 PM
Awesome! Thanks for the help Shinu. Got everything working great now. Much appreciated.
0
Olivier
Top achievements
Rank 2
answered on 10 Mar 2014, 01:17 PM
Hello Shinu,

It's Exist set_selectedImageUrl in javascript function ?

tab.set_hoveredImageUrl     = "../images/icones/24x24/error.png";
tab.set_selectedImageUrl    = "../images/icones/24x24/error.png";
tab.set_imageUrl            = "../images/icones/24x24/address_book.png";

Like your link :
http://www.telerik.com/help/aspnet-ajax/tabstrip-client-side-radtab.html

thanks
Olivier
0
Olivier
Top achievements
Rank 2
answered on 10 Mar 2014, 04:05 PM
i correct my Code

tab.set_hoveredImageUrl("../images/icones/24x24/error.png");
tab.set_selectedImageUrl("../images/icones/24x24/error.png");
tab.set_imageUrl("../images/icones/24x24/address_book.png");

It missed the function set_selectedImageUrl in api document, but it's works !
0
Olugbenga
Top achievements
Rank 1
answered on 27 Apr 2016, 10:47 AM

Hello,

After setting the imageUrl,in another instance I would like to remove the image again. How can I remove imageUrl from radTab after applying it once.

I have tried tab.set_imageUrl(null); and tab.set_imageUrl('');  and it didn't work.

0
Ivan Danchev
Telerik team
answered on 29 Apr 2016, 02:41 PM
Hello Olugbenga,

We logged this as a bug and we will fix it in one of our next releases. You can track its status on our Feedback Portal.

I updated your Telerik points as a token of gratitude for reporting the bug.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Asked by
Arroyocode
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Arroyocode
Top achievements
Rank 1
Olivier
Top achievements
Rank 2
Olugbenga
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or