We have a RadListBox where we are adding and removing items via client side code (sample add shown):
ListBox_AddItem = function (listbox, text, value) {
var item = new Telerik.Web.UI.RadListBoxItem();
item.set_value(value);
item.set_text(text);
var attributes = item.get_attributes();
attributes.setAttribute("Name", text);
attributes.setAttribute("ID", value);
listbox.trackChanges();
listbox.get_items().add(item);
item.bindTemplate();
listbox.commitChanges();
return false;
}
<telerik:RadListBox runat="server" ID="RadListBox" ClientIDMode="AutoID"
OnClientLoad="RadListBox_OnClientLoad">
<ItemTemplate>
<table>
<tr>
<td>
<%# Eval("Name") %>
</td>
<td id="DeleteColumn" style="float: right">
<a href="" onclick="return deleteRequestedBy('<%# Eval("id") %>')">
<img src="Images/deletered.png" width="20" height="20" alt="submit" />
</a>
</td>
</tr>
</table>
</ItemTemplate>
<ClientItemTemplate>
<table>
<tr>
<td>
#= Attributes.Name#
</td >
<td id="DeleteColumn" style="float:right">
<a href="" onclick="return deleteRequestedBy('#= Attributes.ID#')">
<img src="Images/deletered.png" width="20" height="20" alt="submit" />
</a>
</td>
</tr>
</table>
</ClientItemTemplate>
</telerik:RadListBox>
The ListBox is in a Tab on a RadTabStrip. When we add or remove items from the ListBox and then click on one of the other tabs we get an error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at System.Web.UI.StateManagedCollection.System.Collections.IList.get_Item(Int32 index)
at Telerik.Web.UI.ControlItemCollection.get_Item(Int32 index)
at Telerik.Web.UI.ClientStateLogPlayer`1.Remove(ControlItemCollection items, Int32 index)
at Telerik.Web.UI.ClientStateLogPlayer`1.Play(ClientStateLogEntry entry)
at Telerik.Web.UI.ClientStateLogPlayer`1.Play(IEnumerable`1 clientStateLogEntry)
at Telerik.Web.UI.RadListBox.LoadLogEntries(RadListBoxClientState clientState)
at Telerik.Web.UI.RadListBox.LoadClientState(RadListBoxClientState clientState)
at Telerik.Web.UI.RadListBox.LoadPostData(String postDataKey, NameValueCollection postCollection)
at Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I've tried the solutions suggested (along with some variations):
https://www.telerik.com/forums/transfer-throws-exception
https://docs.telerik.com/devtools/aspnet-ajax/controls/listbox/troubleshooting/index-out-of-range-on-item-transfer-
However, none of the suggestions worked and don't seem to quite apply in this scenario i.e. we are not transferring.
Hi,
I am using RadWizard inside a RadWindow where I need to get the wizard shld get resize as the window is resized and this two controls should be responsive on all devices(Mobile). Please help me with a sample . I have checked this example https://demos.telerik.com/aspnet-ajax/wizard/application-scenarios/radwizard-in-radwindow/defaultcs.aspx.
But in this example the wizard is not changing as window is resized.
Please help me ASAP.
Thanks,
Shabana
Not working for some reason in version 2012.3.1308.35
Getting different error details but essentially boils down to 0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: is neither a DataColumn nor a DataRelation for table .
MasterTableView has AllowFilteringByColumn = "true"...
DataTextField is set to column name from datatable so binding works fine...
Using inside usercontrol with RadAjaxManager (Not the Proxy control)
Becoming a frustrating thing...lol
Any Ideas???
Thanks,
Tim

We have updated Telerik from 2010.3.1109.35 to 2018.1.177.45 and also our Website from .NET 3.5 to .NET 4.7
We now find that our AJAX driven paging on our User Controls is no longer working and it ends up just posting back rather than updating the User Control.
For example, when clicking the Page Right button or jumping to a page the Loading Panel is displayed but then a full page refresh occurs and nothing has updated.