Guids in Bound Object reset up Empty when updated.

I have a Grid that is bound to an class that contains several guids (primary/foreign keys).  On the actionComplete event all the guids in args.Data, args.PreviousData and args.RowData have been reset to empty, though the changes to columns are refelected in args.RowData.  They guids are correct when bounded to the grid as I even displayed them in the grid to test, but once I edit any column in the grid and save it all guids are reset to empty!  

Also if a set the IsPrimaryKey to a guid column, the update is not applied after clicking the update button.  If I set the IsPrimaryKey to a column other than guid, the row is updated, though the guid fields are still reset to empty!

        <SfGrid @ref="grdADs" TValue="AircraftAD" DataSource="@craftADs" EnablePersistence="true" Toolbar=@ToolbarItems
                AllowSorting="true" AllowSelection="true" AllowPaging="true">
            <GridSelectionSettings Type="SelectionType.Single" PersistSelection="true"></GridSelectionSettings>
            <GridEditSettings ShowDeleteConfirmDialog="true" AllowEditing="true" AllowAdding="true" AllowDeleting="true"></GridEditSettings>
            <GridPageSettings PageCount="18"></GridPageSettings>
            <GridEvents OnActionComplete="ActionCompletedHandler" OnActionBegin="TestBegin" TValue="AircraftAD"></GridEvents>
            <GridColumns>

                <GridColumn Field=@nameof(AircraftAD.AdNumber) HeaderText="AD Number" Width="120"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.Subject) HeaderText="Subject" Width="180"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.LastCompliedTime) HeaderText="Complied Last Hours" Format="N1" EditType="EditType.NumericEdit" EditorSettings="@HoursField" TextAlign="TextAlign.Center" Width="80"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.NextCompliedTime) HeaderText="Complied Next Hours" Format="N1" EditType="EditType.NumericEdit" EditorSettings="@HoursField" TextAlign="TextAlign.Center" Width="80"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.LastCompliedDate) HeaderText="Complied Last Date" Format="d" EditType="EditType.DatePickerEdit" EditorSettings="@DateEditParams" Width="130" TextAlign="TextAlign.Center"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.NextCompliedDate) HeaderText="Complied Last Date" Format="d" EditType="EditType.DatePickerEdit" EditorSettings="@DateEditParams" Width="130" TextAlign="TextAlign.Center"></GridColumn>

                <GridColumn Field=@nameof(AircraftAD.Model) HeaderText="Model" MinWidth="20" Visible="false" MaxWidth="80"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.UNID) HeaderText="Type"  Visible="false" MinWidth="20"></GridColumn>
                <GridColumn Field=@nameof(AircraftAD.AircraftADId) IsPrimaryKey="true" HeaderText="AD Number" Width="120"></GridColumn>
            </GridColumns>
        </SfGrid>



1 Reply 1 reply marked as answer

VN Vignesh Natarajan Syncfusion Team August 10, 2020 05:05 AM UTC

Hi Michael,  

Thanks for contacting Syncfusion support.  

Query: “but once I edit any column in the grid and save it all guids are reset to empty!  Also if a set the IsPrimaryKey to a guid column, the update is not applied after clicking the update button. ” 
 
We have validated the reported query. Since it is known issue, we have already confirmed it as a bug and logged the defect report “Empty Guid value for Guid column in OnActionBegin args.Data”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming  2020 Volume 2 Service Pack release which is expected to be rolled out by this week (August 2020)    
    
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.    
    
 
Note: Kindly login into your account to view the feedback.  
    
Till then we appreciate your patience.        

Regards, 
Vignesh Natarajan

Marked as answer
Loader.
Up arrow icon