This is a migrated thread and some comments may be shown as answers.
Rotator not showing any data
0 Answers 5 Views
This is a migrated thread and some comments may be shown as answers.
Mahadevan
Top achievements
Rank 1
Mahadevan asked on 27 Jan 2017, 08:49 PM

Hi,

I am new to this rad rotator object and I came across the following old code. The issue at hand is that when I run the page, nothing shows up in the rotator control and it is blank. I performed some debugging and I do see that there are some invisible objects but I am not able to see anything. I have connected the rotator control to a sql data source and there is data in the table but nothing is getting presented in the page. I would appreciate your help in fixing this issue.

Thanks

<telerik:RadDock ID="RadDock12" runat="server" Text="Blog" Collapsed="False"
Title="Breaking Security"  Width="25%" Height="170">
 
                <ContentTemplate>                                                 
 
                    <telerik:RadRotator ID="RadRotator2" runat="server" Width="100%" Height="100%"  ScrollDuration="10000" ScrollDirection="Down"
                        FrameDuration="6000" ItemHeight="170px" ItemWidth="100%" DataSourceID="Sql_Security" >
                        <ItemTemplate>
                            <table style="width: 100%; height: 140px; display:block; border:solid; margin-top:100px;" onclick="<%# DataBinder.Eval(Container.DataItem, "Info_Link")%>">
                                <tr>
                                    <td style="vertical-align: middle; padding-right: 10px;">
                                        <%# DataBinder.Eval(Container.DataItem, "Alert_Title")%>
                                    </td>
                                    <td style="font-size: 11px; vertical-align: middle">
                                        <%# DataBinder.Eval(Container.DataItem, "Alert_Details")%>
                                    </td>
                                    <td style="vertical-align: middle;">
                                    <a href="<%# DataBinder.Eval(Container.DataItem, "Info_Link") %>" target="_blank">details</a>
                                        <%--<asp:Image ID="CustomerImage" runat="server" ImageAlign="Left" ImageUrl='<%# String.Format("~/Img/Northwind/Customers/Thumbs/{0}.jpg", DataBinder.Eval(Container.DataItem, "Alert_Title_Image")) %>' />--%>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:RadRotator>
                    <asp:SqlDataSource ID="Sql_Security" runat="server" ConnectionString="<%$ ConnectionStrings:OLD_Reporting_Prod_DB %>"
                        SelectCommand="SELECT TOP 1000 [Alert_Source]
                                                ,[Alert_Title]
                                                ,[Alert_Title_Image]
                                                ,[Alert_Arrow]
                                                ,[Alert_Arrow_Image]
                                                ,[Alert_Number]
                                                ,[Alert_Number_Image]
                                                ,[Alert_Details]
                                                ,[Date_Inserted]
                                                ,[Info_Link]
                                            FROM [Reporting].[dbo].[Security_Alert_Feed]
                                            WHERE LEN(Alert_Details)>= 15 AND Info_Link != ''">
                    </asp:SqlDataSource>
                
                </ContentTemplate>
 
            </telerik:RadDock>

No answers yet. Maybe you can help?

Asked by
Mahadevan
Top achievements
Rank 1
Share this question
or