Javascript error when usin ServerSide ItemClick

2 posts, 0 answers
  1. Pierre
    Pierre avatar
    218 posts
    Member since:
    Apr 2007

    Posted 07 Aug 2008 Link to this post

    I Change my old RadRotator by the new one and add the server site function ItemClick.

    When I click on a radRotator item I receive this error:

    Sys.ArgumentNullException: Value cannot bu null. Parameter: element

                                                  <telerik:RadRotator ID="RadRotatorNews" runat="server" FramesToShow="1" RotatorType="AutomaticAdvance" ScrollDirection="Up" 
                                                        FrameDuration="8000" height="76px" width="300px">  
                                                        <ItemTemplate> 
                                                            <table class="News_Detail">  
                                                                <tr> 
                                                                    <td style="width:85px">&nbsp</td> 
                                                                    <td align="left" class="News_Text">  
                                                                        <%#DataBinder.Eval(Container.DataItem, "Date")%> 
                                                                        <asp:Label ID="lblID" CssClass="News_TextCache" Visible="true" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ID")%>'></asp:Label>                                                                  
                                                                    </td> 
                                                                </tr> 
                                                                <tr> 
                                                                    <td style="width:85px">&nbsp</td> 
                                                                    <td align="left" class="News_Text">  
                                                                        <%#DataBinder.Eval(Container.DataItem, "Titre")%> 
                                                                    </td>                                                              
                                                                </tr> 
                                                                <tr> 
                                                                    <td style="width:85px">&nbsp</td> 
                                                                    <td align="right"class="News_Text"> 
                                                                        <asp:HyperLink ID="HyperLinkPlus" runat="server"><asp:Label ID="lblPlus" runat="server" Text="Plus.."></asp:Label></asp:HyperLink> 
                                                                    </td>                                                              
                                                                </tr> 
                                                            </table>                                                         
                                                        </ItemTemplate> 
                                                    </telerik:RadRotator> 

    any suggestion?
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 08 Aug 2008 Link to this post

    Hi Pierre,

    I suggest to examine this online demo which shows how to use the server-side Item_Click event. In case this does not help to find the problem, please provide more information about your code and the error. It will be best if you open a new support ticket and send us a sample, fully working reproduction demo.

    Greetings,
    Svetlina
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top