Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Indexoutofrange exception with dropdownprovider
posted

Hi there,

I am facing an error when trying to add a new row in the webdatagrid. Upon pressing enter and selecting the values I want in the dropdownproviders. This error is thrown - An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Infragistics.Web.UI.ListControls.ListBot.LoadClientCollectionsTransactionList(Object[] collections) +111
   Infragistics.Web.UI.ListControls.DropDownBot.LoadClientCollectionsTransactionList(Object[] collections) +47
   Infragistics.Web.UI.Framework.ObjectBase.LoadTransactionList(Boolean deferLoadPostDataProcessing) +151
   Infragistics.Web.UI.Framework.RunBot.LoadClientData() +141
   Infragistics.Web.UI.Framework.RunBot.HandleLoadPostData(String postDataKey, NameValueCollection postCollection) +41
   Infragistics.Web.UI.Framework.Data.FlatDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +51
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743

I created the editor providers and assigned them to  the webdatagrid at runtime. They are only assigned if it's not a postback. I did specify the value and textfield as well.

 protected void Page_Load(object sender, EventArgs e)
 { 
  if (!this.IsPostBack)
  {
   this.CreateColumns();
   this.CreateEditorControls();  <-- This is where I create them and assign them to the columns.
   this.CustomiseGrid();   
  }

 }

Is this caused by me assigning my dropdownproviders at runtime or is it something to do with the Ajax request not completing ? Can I know what is causing the problem and how do I fix it please ? Thank you.

 

 

 

Parents
No Data
Reply
  • 105
    posted

    we have the same problem here.  We're trying to build the providers generically in code, but get the same error once we do any post back from the page.   Index Not Found.   We've been working with Infragistics tech support on this for about a week but so far no luck.  Have you found any work around or solution?  Thanks!

Children