Hi,
I need scroll content from a repeater, like this example: http://demos.telerik.com/aspnet-ajax/slider/examples/customscrollbar/defaultcs.aspx, but instead of static text in a div, bind from a datasource.
Below my code block.
Anyone have any ideas?
Thanks a lot.
I need scroll content from a repeater, like this example: http://demos.telerik.com/aspnet-ajax/slider/examples/customscrollbar/defaultcs.aspx, but instead of static text in a div, bind from a datasource.
Below my code block.
Anyone have any ideas?
Thanks a lot.
<
div
id
=
"boxNews"
>
<
asp:ObjectDataSource
runat
=
"server"
ID
=
"odsNews"
TypeName
=
"Entities.News"
SelectMethod
=
"ListNews"
>
<
SelectParameters
>
<
asp:Parameter
Type
=
"String"
Name
=
"pTitle"
DefaultValue
=
""
ConvertEmptyStringToNull
=
"true"
/>
<
asp:Parameter
Type
=
"DateTime"
Name
=
"pDate"
DefaultValue
=
""
ConvertEmptyStringToNull
=
"true"
/>
<
asp:Parameter
Type
=
"Int32"
Name
=
"pUnitID"
DefaultValue
=
"0"
/>
<
asp:Parameter
Type
=
"Int32"
Name
=
"pLimit"
DefaultValue
=
"1"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
div
id
=
"textoNews"
class
=
"scroll"
>
<
asp:Repeater
runat
=
"server"
ID
=
"rptNews"
DataSourceID
=
"odsNews"
>
<
ItemTemplate
>
<
a
href='Noticias/Noticias.aspx?idNoticia=<%#Eval("ID") %>'>
<%#string.Format("{0:dd}", Eval("Date"))%>.<%#string.Format("{0:MMM}", Eval("Date")).Substring(0, 3)%>.<%#string.Format("{0:yyyy}", Eval("Date"))%><
br
/><%#Eval("Title")%><
br
/><
p
id
=
"itemNews"
>
<
span
style
=
"font-weight: normal"
>
<%# Eval("Description").ToString().Length > 50 ? Eval("Description").ToString().Substring(0, 50) + "..." : Eval("Description").ToString()%></
span
></
p
>
<
br
/>
</
a
>
</
ItemTemplate
>
</
asp:Repeater
>
</
div
>
</
div
>
<
telerik:RadSlider
ID
=
"RadSlider1"
runat
=
"server"
Height
=
"222px"
Length
=
"22"
Orientation
=
"Vertical"
Width
=
"200px"
>
</
telerik:RadSlider
>