This question is once again related to the page I created and discussed here.
I noticed that if the page is inactive for a period of time, say, 10-15 minutes. and then I mouse over on the grid column to display tool tip, I get exception.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Exception occurs when I try to add control for tooltip using statement
e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl)
Here is the Stack trace.
Note that I have about 10 columns in the grid, and about 8 columns are displaying tooltip. Each tooltip has different data but almost same structure of the controls to be added into tooltip. (They all use Table object which contains a RadGrid and some other controls maybe).
I noticed that this error occures on one or two columns, but not on all columns. If I try to display tooltip on other columns and then try back on the specific columns where it had above errors, it display them fine. I am not sure why?
Do you think I can solve this issue by disabling ViewState on the page (or on some specific control)? Or if there is any other idea, please share.
Thanks,
Sameers
I noticed that if the page is inactive for a period of time, say, 10-15 minutes. and then I mouse over on the grid column to display tool tip, I get exception.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Exception occurs when I try to add control for tooltip using statement
e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl)
Here is the Stack trace.
at System.Collections.ArrayList.get_Item(Int32 index)
at Telerik.Web.UI.GridColumnCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState)
at Telerik.Web.UI.GridTableView.LoadStructureState(Object SavedStructure)
at Telerik.Web.UI.RadGrid.LoadTableViewStructure(IEnumerator stateEnumerator, GridTableView tableView)
at Telerik.Web.UI.RadGrid.LoadViewState(Object savedStateObject)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at CoreWebAdmin.OrderProductSummary.radToolTipManager_AjaxUpdate(Object sender, ToolTipUpdateEventArgs e) in J:\Work\Yitz\eBayPosting\CoreWebAdmin\Orders\OrderProductSummary.aspx.vb:line 1557
at Telerik.Web.UI.RadToolTipManager.OnAjaxUpdate(ToolTipUpdateEventArgs e)
at Telerik.Web.UI.RadToolTipManager.LoadClientState(Dictionary`2 clientState)
at Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection)
at Telerik.Web.UI.RadWebControl.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)
Note that I have about 10 columns in the grid, and about 8 columns are displaying tooltip. Each tooltip has different data but almost same structure of the controls to be added into tooltip. (They all use Table object which contains a RadGrid and some other controls maybe).
I noticed that this error occures on one or two columns, but not on all columns. If I try to display tooltip on other columns and then try back on the specific columns where it had above errors, it display them fine. I am not sure why?
Do you think I can solve this issue by disabling ViewState on the page (or on some specific control)? Or if there is any other idea, please share.
Thanks,
Sameers