I am using the demo radrotator xml live for this project to show rss news.
One of the items in the rss feed is <link> which I am not showing but I would like to use it with the _temClick to open the full article in a radWindow.
This is my actual code:
I tried with an hiddenfiled to get the value of <link> at row 22 but I cannot get that value in code behind. Then I understood I should use the _itemClick to get the value '<%= System.Web.HttpUtility.HtmlEncode(XPath("link").ToString()%>' but I am really battling to get it.
Please help. How ten I get the value of the rss item <link> of the clicked radRotator item in Radrotatr_itemClicked?
One of the items in the rss feed is <link> which I am not showing but I would like to use it with the _temClick to open the full article in a radWindow.
This is my actual code:
01.
<
telerik:RadRotator
ID
=
"RadRotator1"
RotatorType
=
"AutomaticAdvance"
ScrollDirection
=
"Up"
02.
ScrollDuration
=
"4000"
runat
=
"server"
Width
=
"714"
03.
ItemWidth
=
"695"
Height
=
"260px"
ItemHeight
=
"70"
FrameDuration
=
"1"
InitialItemIndex
=
"-1"
04.
CssClass
=
"rotator"
OnItemClick
=
"RadRotator1_ItemClick"
>
05.
<
ItemTemplate
>
06.
<
div
class
=
"itemTemplate"
style
=
"background-image: url('IMAGES3/<%# this.GetDayOfWeek(XPath("
pubDate").ToString()) %>.png');">
07.
<
div
class
=
"dateTime"
>
08.
<
div
class
=
"time"
>
09.
<%# (this.GetTimeOnly(XPath("pubDate").ToString())) %>
10.
</
div
>
11.
<
div
class
=
"date"
>
12.
<%# (this.GetDateOnly(XPath("pubDate").ToString()))%>
13.
</
div
>
14.
</
div
>
15.
<
div
class
=
"title"
>
16.
<
span
>
17.
<%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString())%>
18.
</
span
>
19.
</
div
>
20.
<
div
class
=
"buttonDiv"
>
21.
<
asp:Button
ID
=
"Button1"
class
=
"button"
runat
=
"server"
Text
=
"View"
OnClientClick
=
"OnClick"
/>
22.
<
asp:HiddenField
id
=
"rssLink"
runat
=
"server"
value='<%= System.Web.HttpUtility.HtmlEncode(XPath("link").ToString()%>' />
23.
24.
</
div
>
25.
<
div
class
=
"description"
>
26.
<
span
>
27.
<%# System.Web.HttpUtility.HtmlEncode(XPath("description").ToString())%>
28.
</
span
>
29.
</
div
>
30.
</
div
>
31.
</
ItemTemplate
>
32.
</
telerik:RadRotator
>
Please help. How ten I get the value of the rss item <link> of the clicked radRotator item in Radrotatr_itemClicked?