This is a migrated thread and some comments may be shown as answers.

Set Panel Item Image alt server side

2 Answers 48 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 23 Jun 2009, 11:37 AM
Hi Everyone,

Is there a way to set the panelitem Image alt attribute and add a onClick java script function to the image server side?

I have a PanelItem which displays a "Refresh" icon to the right of the Panel text, when a user moves the mouse over the image I would like it to display "Refresh" instead of the PanelItem text and when they click on the image I would like to call a java script function.

Can I somehow set these properties server side? Is there a way to get a reference to the IMG element of a panelitem server side?

Many thanks
Antony

2 Answers, 1 is accepted

Sort by
0
Antony
Top achievements
Rank 1
answered on 24 Jun 2009, 09:21 AM
This has been submitted as Support Ticket 222134.

0
Paul
Telerik team
answered on 24 Jun 2009, 12:13 PM
Hello Antony,

You can easily achieve your goal by using a template for the root RadPanelItems. For details on the matter please take a look at this online example.

Sincerely yours,
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.
Tags
PanelBar
Asked by
Antony
Top achievements
Rank 1
Answers by
Antony
Top achievements
Rank 1
Paul
Telerik team
Share this question
or