I have a RadGrid hooked up to an objectdatasource, which pulls records with a GUID as it's Primary Key. Whenever I do an update on the RadGrid I get a parse error and it shows the Guid prefixed with the PKey column name like so:
System.FormatException base Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
"{BoatID:\"280f5da9-4048-4569-9e8c-c3aea971b45e\"}" I'm not sure why it's prefixing the GUID value w/BoatID. I can see why it cannot parse this value. I'm not sure how to fix this since Telerik handles the parsing behind the scences.
Info that may help:
System.FormatException base Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
"{BoatID:\"280f5da9-4048-4569-9e8c-c3aea971b45e\"}" I'm not sure why it's prefixing the GUID value w/BoatID. I can see why it cannot parse this value. I'm not sure how to fix this since Telerik handles the parsing behind the scences.
Info that may help:
<
asp:ObjectDataSource
ID
=
"DataSource"
runat
=
"server"
<br> <
br
> TypeName="MyNS.SomeClass.SomeMethod" <
br
><
br
>UpdateMethod="UpdateBoat"<
br
> ><
br
> <
UpdateParameters
><
br
> <
asp:Parameter
Name
=
"name"
Type
=
"String"
/><
br
> <
asp:Parameter
Name
=
"boatId"
DbType
=
"Guid"
/><
br
> </
UpdateParameters
><
br
> </
asp:ObjectDataSource
><
br
><
telerik:RadGrid
ID
=
"BoatGrid"
<br> AllowAutomaticUpdates="True"<
br
> AllowAutomaticInserts="True"<
br
> AllowAutomaticDeletes="True"<
br
> AllowSorting="True"<
br
> AllowPaging="True"<
br
> PageSize="5"<
br
> AllowMultiRowEdit="False"<
br
> EnableViewState="true"<
br
> runat="server"<
br
> DataSourceID="DataSource"<
br
> OnItemDataBound="BoatGrid_ItemDataBound"<
br
> OnItemCreated="BoatGrid_ItemCreated"<
br
> OnItemUpdated="BoatGrid_ItemUpdated"<
br
> OnItemDeleted="BoatGrid_ItemInserted" CellSpacing="-1"<
br
> GridLines="Both"><
br
><
Columns
><
br
> <
MasterTableView
DataSourceID
=
"accountDataSource"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"BoatID"
><
br
><
telerik:GridClientSelectColumn
ColumnGroupName
=
"tstSelect"
><
br
><
br
> </
telerik:GridClientSelectColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Name"
DataField
=
"Name"
FilterControlAltText
=
"Filter Name column"
SortExpression
=
"Name"
UniqueName
=
"Name"
><
br
><
br
> <
ColumnValidationSettings
><
br
> <
ModelErrorMessage
Text
=
""
></
ModelErrorMessage
><
br
> </
ColumnValidationSettings
><
br
><
br
> </
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"BoatID"
ReadOnly
=
"true"
Display
=
"false"
DataField
=
"BoatID"
DataType
=
"System.Guid"
FilterControlAltText
=
"Filter BoatID column"
SortExpression
=
"BoatID"
UniqueName
=
BoatID"
><
br
> </
telerik:GridBoundColumn
><
br
></
Columns
><
br
> </
telerik:RadGrid
>