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

RadGrid - Javascript problem

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 29 Jul 2008, 05:11 PM

I'm getting this error. It has something to do with the filter option:

Microsoft JScript runtime error: 'childNodes' is null or not an object

...
return _40;
};
Telerik.Web.UI.RadMenu._getMaxRootItemWidth=function(_43){
var _44=Telerik.Web.UI.RadMenu._getChildListElement(_43);
var _45=_44.childNodes;  'PROBLEM HERE
var _46=_45.length;
var _47=0;
for(var i=0;i<_46;i++){
var _49=_45[i];
if(_49.nodeType===3){
continue;
}
...

Here's the declaration of my grid:

<telerik:RadGrid OnInit="RadGridConcours_Init" PageSize="5" Visible="true" OnNeedDataSource="RadGridConcours_NeedDataSource" ID="RadGridConcours" runat="server" AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" AllowPaging="True" CellPadding="0" AllowSorting="True" AllowMultiRowSelection="false"  >
                                           
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
               
<PagerStyle Mode="NumericPages" />
               
<MasterTableView  AllowFilteringByColumn="true" runat="server" nomasterrecordstext="Aucun concours n'est disponible." CommandItemDisplay="Top" DataKeyNames="CON_ID">
                                           
                                           
<CommandItemTemplate><div></div></CommandItemTemplate>
                                               
<Columns>
<telerik:GridClientSelectColumn HeaderStyle-Width="40px" />
<telerik:GridBoundColumn FilterImageToolTip="Filtre" dataField="CON_Numero_CorpsEmploi" HeaderText="Corps d'emploi" UniqueName="CON_Numero_CorpsEmploi"></telerik:GridBoundColumn>
<telerik:GridBoundColumn FilterImageToolTip="Filtre" DataField="CON_Numero_CategorieEmploi" HeaderText="Catégorie d'emploi" UniqueName="CON_Numero_CategorieEmploi"></telerik:GridBoundColumn>
<telerik:GridBoundColumn FilterImageToolTip="Filtre" DataField="CON_Numero_MinistereResponsable" HeaderText="Ministère responsable" UniqueName="CON_Numero_MinistereResponsable"></telerik:GridBoundColumn>
<telerik:GridBoundColumn FilterImageToolTip="Filtre" DataField="CON_Numero_NumeroSequentiel" HeaderText="No. séquentiel" UniqueName="CON_Numero_NumeroSequentiel"></telerik:GridBoundColumn>
<telerik:GridBoundColumn FilterImageToolTip="Filtre" DataField="CON_Titre" HeaderText="Titre" UniqueName="CON_Titre"></telerik:GridBoundColumn>
</Columns>
                       
<EditFormSettings>
<PopUpSettings ScrollBars="None"></PopUpSettings>
</EditFormSettings>
                   
</MasterTableView>
               
</telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 01 Aug 2008, 10:16 AM
Hi Martin,

Is it possible that you remove some of the filter menu options wiring the OnInit event of the grid? If this is the case, I tested the implementation from the following help topic and it worked without issues on my end. Can you please verify that on your machine?

If the issue persists, I suggest you prepare a stripped working version of your project, illustrating the erratic behavior, and send it enclosed to formal support ticket. I will familiarize with your complete code implementation and will advice you further.

Also verify that you are using the latest release 2008.2.723 of RadControls for ASP.NET AJAX.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or