It appears there is some kind of issue with calling ClearDataSource on a postback and the presence of the "Multiple controls with the same ID error" being thrown when a Template control exists in the WebDataGrid.
I have a template column with a checkbox and if I use the ClearDataSource call before rebinding the WebDataGrid on a postback I get the "Multiple controls..." error presumably related to the checkbox. If I comment out the ClearDataSource my postback works just fine and I don't get the fatal error but then, even though I'm rebinding the WebDataGrid (with a refreshed object List<T> collection pulled from the db) on the postback, the OnInitializeRow event handler does not fire again - it will fire on the intiial page load and that's it - which also is a problem as I set some custom cell tooltips when the InitializeRow event is fired - seem's I'm darned if I do, and darned if I don't. Anyone have any thoughts.
I am facing the same issue. has this been fixed in a later release?
I updated to 2010.3 SR 2056 today and this problem still exists - I don't understand why it cannot be fixed - I have no illusion that it is hard to find out - I am providing the markup for the webdatagrid in hopes that you can recreate it in a test solution and test async postbacks and rebinds.
<
="325px"
="false"
="true"
="OpenCommitmentsWebDataGrid_InitializeRow">
/>
>
="center">
="true">
="10%">
="Left">
="6%">
="Right">
="7%">
="OpenCommitmentsWebDataGrid_DropDownProvider1">
="100px"
="~/App_Styles"
="10px">
="OpenCommitmentsWebDataGrid_CurrencyEditorProvider1">
="0">
="OpenCommitmentsWebDataGrid_CurrencyEditorProvider2">
I am getting it in
Version=10.3.20103.2013
Hello majensen,
There was a very similar development issue. Would you test your project with the latest service release for your version, and check whether this error still happens.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support