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

Javascript error when usin ServerSide ItemClick

1 Answer 70 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 07 Aug 2008, 05:19 PM
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?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 08 Aug 2008, 08:54 AM
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.
Tags
Rotator
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
Svetlina Anati
Telerik team
Share this question
or