This is a migrated thread and some comments may be shown as answers.
Paging throw javascript error
2 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
Mark de Torres
Top achievements
Rank 1
Mark de Torres asked on 26 Jun 2012, 12:40 AM
Hi Guys,

My grid throwing a javascript error when you click to the next page from the navigation. The javascript error" Microsoft JScript runtime error: Object does not support property or method 'destroyTree'

<telerik:RadGrid ID="SearchResultsGrid" runat="server" Skin="Office2007" Width="100%"
                        AllowPaging="true" AllowCustomPaging="true" AllowSorting="true" AutoGenerateColumns="false"
                        EnableAJAXLoadingTemplate="true" GridLines="None" LoadingTemplateTransparency="25"
                        OnNeedDataSource="SearchResultsGrid_OnNeedDataSource"
                        Visible="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                        <GroupingSettings CaseSensitive="false" />
                        <MasterTableView>
                            <Columns>
                                <telerik:GridBoundColumn DataField="ProgramID" HeaderText="Program ID" />
                                <telerik:GridBoundColumn DataField="ProgramName" HeaderText="Program Name" />
                                <telerik:GridBoundColumn DataField="ProgramStart" HeaderText="Start" />
                                <telerik:GridBoundColumn DataField="ProgramEnd" HeaderText="End" />
                                <%--<telerik:GridBoundColumn DataField="OwnerUserID" HeaderText="Owner" />--%>
                                <telerik:GridDropDownColumn UniqueName="UserName" DataSourceID="odsUser" DataField="OwnerUserID" ListTextField="UserName" ListValueField="RecordID" HeaderText="Owner"/>
                                <telerik:GridBoundColumn DataField="ProgramNotes" HeaderText="Notes" />
                                <telerik:GridBoundColumn DataField="ProgramWebSite" HeaderText="Program WebSite" />
                                <telerik:GridTemplateColumn UniqueName="Edit" HeaderText="View/Edit"
                                    ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="imgEdit" runat="server" ImageUrl="~/Shared/Images/editbutton.gif"
                                            CausesValidation="false" AlternateText="Edit" OnCommand="Edit_Clicked"
                                            CommandArgument='<%# Eval("id") %>' />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 28 Jun 2012, 06:25 AM
Hi Mark,

There is nothing wrong with your grid mark-up. The problem is most certainly elsewhere. Try providing your complete code using the CODE FORMATTER tool of the ticket editor.

Regards,
Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Mark de Torres
Top achievements
Rank 1
answered on 29 Jun 2012, 03:04 AM
Hi Tsvetoslav,

The problem is fixed by upgrading to the new telerik dll. Thank you so much

Regards
Tags
Grid
Asked by
Mark de Torres
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Mark de Torres
Top achievements
Rank 1
Share this question
or