Hi,
first of all, I'm fairly new to ASP.NET as well as developing with IG components, so this may be a quite simple question for experienced users I guess.
I'm using several dropdownproviders in my webdatagrid. Every is working well, until it comes to the first postback after the initial one. I'm creating the data for the dropdown by creating a DataTable and filling it manually like this:
dr = dt.NewRow()
dr("text") = "-"
dr("value") = "L"
dt.Rows.Add(dr)
The Problem is: after the initial loading, everything is fine. The dropdown displays "-" to the user and the value is set to "L".
BUT: after the next postback, the grid changes the content of the dropdown visible to the user to the value, in this case it displays "L" instead of the desired "-".
The code for the grid is this:
<ig:WebDataGrid ID="grdTest" runat="server" AutoGenerateColumns="false" EnableAjax="false" EnableViewState="true" EnableDataViewState="true" ShowFooter="true" StyleSetName="Office2007Blue" Width="100%" DataKeyFields="rownumber,anr">
Any help would be greatly appreciated.
Thanks in advance,
Matthias
I have a similar issue when i want to add a new row to my grid: after i select the item from the DDL the new row displays the ValueField from DDL not the TextField.
Hi Knorr,
Are you using batch updating in 11.2? This is a bug that has been subsequently been fixed. Its number is 99176. It is verified fixed in build 11.2.20112.2046 and above. It should be in the January Service Release.
regards,David Young
I recreated the providers programatically in the grid's init. That seems to be working much better but not 100%. Some times the list in one of the providers comes up blank in which case a page reload is needed.
Thanks. Using the grid init still gives me the "Destination array was not long enough..." error. Everything seems to load ok, but it blows up on postback.
If I load the dropdownproviders in the page_init and grid_init methods, I can at least submit the form once, but then I get this error the 2nd time I try to submit the form.
I would like to ask if the issue has been fixed? I also encounter this in 12.2.
I'm using 13.1 and it hasn't been fixed. However, I did manage a workaround.
There is a bug within the Infragistics code that manages the IDs for the Editor Control in the Dropdown Providers within the grid. On PostBack, Infragistics creates new IDs for the providers. I'm not sure why, but look at the source code before and after postback.
The workaround I use is
This has been the simplest workaround for me and might help anyone else with the same problems. this has been the only thread on the net to discuss this issue, so thought I'd add whatever I could.
Brian,
I am using 15.1.20151.2287 and this is STILL broken.
THANK YOU for posting what you did. It appears to be working for me and I cannot thank you enough!