I am using a RadListBox inside the ItemTemplate of a RadListBox. Sometimes when selecting, reordering or deleting an Item from the inner ListBox, a javascript error is thrown: "Microsoft JScript runtime error: 'f.getItem(...)' is null or not an object".
This happens in the Telerik javascript line:
d.each(
this._selectedIndices,function(){if(this!=e){f.getItem(this)._setSelected(false);
What it seems to me, is that it is trying to deselect an item from the outer RadListBox, which does not exist.
Short of me adding a null check to your javascript library, can you suggest a way to resolve this problem?
NOTE: I am using Q1 2010 release.
Thanks,
Ben.
My code is:
<telerik:RadListBox ID="lbSelectedTeamStaff"
Width="300px"
runat="server"
AllowDelete="True"
AllowReorder="True"
AutoPostBackOnReorder="True">
<ButtonSettings ReorderButtons="Common" />
<ItemTemplate>
<div class="ComboTemplate">
<strong>
<asp:Label ID="lblSelectedTeamName" runat="server"></asp:Label>
</strong>
<br />
<div id="rosterSelectedStaff" class="ComboDetails">
<telerik:RadListBox ID="lbSelectedStaff" runat="server" AllowDelete="True"
AllowReorder="True" BorderStyle="None" BorderWidth="0px"
EnableDragAndDrop="true" >
<ButtonSettings ReorderButtons="Common" ShowDelete="true" ShowReorder="False" />
</telerik:RadListBox>
</div>
</div>
</ItemTemplate>
</telerik:RadListBox>