Hey there,
I've got a RadGrid bound to an objectDataSource but I've been running into an odd situation, on my grid I got the following declared:
The problem is, regardless of the params I set on my objectDataSource I am not able to switch the param name from Continent.Id to something I could name a parameter on C# Code, so I always end up with the following error when trying to update an item:
"Sys.WebForms.PageRequestManagerServerErrorException: ObjectDataSource 'odsCountry' could not find a non-generic method 'GridUpdate' that has parameters: Alias, Fullname, Capital, Continent.Id, ThreeDigitCountryCode, ThreeLetterCountryCode, TwoLetterCountryCode, Id."
Thanks for your time :)
-Thi
I've got a RadGrid bound to an objectDataSource but I've been running into an odd situation, on my grid I got the following declared:
<telerik:GridDropDownColumn DataField="Continent.Id" HeaderText="Continente" DataSourceID="odsContinent" ListTextField="Name" ListValueField="Id" UniqueName="Continent" SortExpression="Continent" /> |
The problem is, regardless of the params I set on my objectDataSource I am not able to switch the param name from Continent.Id to something I could name a parameter on C# Code, so I always end up with the following error when trying to update an item:
"Sys.WebForms.PageRequestManagerServerErrorException: ObjectDataSource 'odsCountry' could not find a non-generic method 'GridUpdate' that has parameters: Alias, Fullname, Capital, Continent.Id, ThreeDigitCountryCode, ThreeLetterCountryCode, TwoLetterCountryCode, Id."
<asp:ObjectDataSource ID="odsCountry" runat="server" |
TypeName="Highland.Models.Country" |
EnablePaging="true" |
SelectMethod="SlicedFindAll" |
SelectCountMethod="Count" |
OldValuesParameterFormatString="{0}" |
InsertMethod="GridInsert" DeleteMethod="GridDelete" UpdateMethod="GridUpdate" |
StartRowIndexParameterName="firstResult" |
MaximumRowsParameterName="maxResults" > |
<DeleteParameters> |
<asp:Parameter Name="Id" Type="Int32" /> |
</DeleteParameters> |
<UpdateParameters> |
<asp:Parameter Name="Id" Type="Int32" /> |
<asp:Parameter Name="Alias" Type="String" /> |
<asp:Parameter Name="Fullname" Type="String" /> |
<asp:Parameter Name="Capital" Type="String" /> |
<asp:Parameter Name="Continent" Type="String" /> |
<asp:Parameter Name="ThreeDigitCountryCode" Type="Int32" /> |
<asp:Parameter Name="ThreeLetterCountryCode" Type="String" /> |
<asp:Parameter Name="TwoLetterCountryCode" Type="String" /> |
</UpdateParameters> |
<InsertParameters> |
<asp:Parameter Name="Id" Type="Int32" /> |
</InsertParameters> |
</asp:ObjectDataSource> |
Thanks for your time :)
-Thi