Hi Folks -
Need some help here, I'm creating a wrapper around the WebDataGrid control where its been build at runtime and added as child control of a parent div control; columns, required behaviors are created as well and datasource control is associated via coding.
Everithing render and looks good so far, but when adding data into the new row and pressing intro keyword I receive an error message from the ObjectDataSource that said:
ObjectDataSource 'ods_myWebGridCtrl' has no values to insert.
The ObjectDataSource has set the property 'DataObjectTypeName'
i.e.<asp:ObjectDataSource ID="objDS" runat="server" TypeName="AssemblyNamespace.WebGridDataProvider" SelectMethod="..." UpdateMethod="" InsertMethod="..." DataObjectTypeName="AssemblyNamespace.EntityModel.User"><asp:ObjectDataSource>
I referenced a client side event "EditingCoreBehavior.EditingClientEvents.RowAdding" when this client event fires the argument "eventArgs" does contain the key and values for each column, but when the server event RowAdding it does not have this values the Values hastable is empty, am I missing some setting?
I will appreciate any help.
Regards
Folks -
it seems the usage of viewstate="false" at any parent control where the WebDataGrid control is placed/located require this property to be true. Also if the same property is set at the WebDataGrid control to be false this issue happen as well.
I was trying to reduce the size of data sent to client by disabling the viewstate. But this control does not support it.
Regards.
Hi epimienta,
i have the same problem right now with Version 2010 Volume 3.
Is this a bug or a feature?
Perhaps the developers could say something about this bug/feature
Thanks for help.
Hi svsde -
Sorry to said this but I do not have idea if is a bug or not. As you saw no answers or any thought on the posted scenario or at leat direction how to work with it.
I have stoped the implementation since got antoher assignment at my company. I will retake this in short and I hope I get some answers or clues on this matter.