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.
Hi all,
It has been a while since this thread was opened but in case you are still encountering this issue I would be glad to help.
For your particular scenario, in order to resolve the matter you should set the DataSource for both the grid and the providers on every postback.
Please let me know if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
I have sent in a request ticket too ! This new control is lacking so much in documentation. How it worked for me was for me to rebind the datasource of my grid upon pageload everytime i save.
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!