We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Combo box column on GridDataControl not displaying the correct Selected Value after Save

Thread ID:

Created:

Updated:

Platform:

Replies:

119320 Jun 4,2015 11:45 AM Jun 9,2015 11:38 PM WPF 3
loading
Tags: GridDataControl
Ari Case
Asked On June 4, 2015 11:45 AM

I have a combo box column on my GridDataControl that doesn't always display the correct selected value after I save.

Let's say my combo box has 3 options, Red, Green, Yellow. If I select Yellow and save it, the data saves correctly but the combo box will display Red for some reason.

Or I could selected Green, save it, and then after the save the combo box displays Yellow.

I'm confused on how to pinpoint this as I don't know what event or action is triggering this, this is the code behind this specific column:

 <syncfusion:GridDataVisibleColumn x:Name="cbxColor" HeaderText="Colors" MappingName="color_template" ShowColumnOptions="False" ShowSortOptioninExcelLikeFiltering="False" AutoFit="True" Width="80">
                    
                    <syncfusion:GridDataVisibleColumn.FilterBarStyle>
                        <syncfusion:GridDataFilterBarStyle CellType="ComboBox" />
                    </syncfusion:GridDataVisibleColumn.FilterBarStyle>
                    
                    <syncfusion:GridDataVisibleColumn.ColumnStyle>
                        <syncfusion:GridDataColumnStyle CommentAlignment="TopRight" CommentBrush="Red" ImageContentAlignment="Left" ImageContentStretch="Fill" ImageHeight="*" ImageIndex="-1" ImageWidth="0.2*" IsMouseTrackingEnabled="True" IsThemed="True" CellTypeEnum="ComboBox" Enabled="True" DropDownStyle="Exclusive" TextWrapping="Wrap">
                            
                            <syncfusion:GridDataColumnStyle.DropdownEdit>
                                <syncfusion:GridDropdownEditStyleInfo ShowButton="False" />
                            </syncfusion:GridDataColumnStyle.DropdownEdit>
                            <syncfusion:GridDataColumnStyle.DoubleEdit>
                                <syncfusion:GridDoubleEditStyleInfo NullValue="{x:Null}" />
                            </syncfusion:GridDataColumnStyle.DoubleEdit>
                            <syncfusion:GridDataColumnStyle.GridCommentStyleInfo>
                                <syncfusion:GridCommentStyleInfo />
                            </syncfusion:GridDataColumnStyle.GridCommentStyleInfo>
                            <syncfusion:GridDataColumnStyle.ImageMargins>
                                <syncfusion:CellMarginsInfo />
                            </syncfusion:GridDataColumnStyle.ImageMargins>
                            <syncfusion:GridDataColumnStyle.IntegerEdit>
                                <syncfusion:GridIntegerEditStyleInfo NullValue="{x:Null}" UseNullOption="False" />
                            </syncfusion:GridDataColumnStyle.IntegerEdit>
                            <syncfusion:GridDataColumnStyle.MaskEdit>
                                <syncfusion:GridMaskEditInfo />
                            </syncfusion:GridDataColumnStyle.MaskEdit>
                            
                        </syncfusion:GridDataColumnStyle>
                    </syncfusion:GridDataVisibleColumn.ColumnStyle>
                </syncfusion:GridDataVisibleColumn>

Jayapradha S [Syncfusion]
Replied On June 7, 2015 10:54 PM

Hi Ari Case,

Thank you for using Syncfusion products.

We have analyzed your query with your shared code snippet. We are not able to understand your query clearly and we need more information on this. We thought that, you are performing the save action after changing the items in combo box. Could you please clarify are you using data serialization to perform save action? Please provide the details what are you trying to do in your save action? Could you please provide more details about your requirement. It would be helpful for us to proceed further.

Regards,
Jayapradha

Ari Case
Replied On June 9, 2015 12:59 PM

I was able to resolve this. It wasn't actually a syncfusion issue but a data problem.

This can be closed, thanks.

Jayapradha S [Syncfusion]
Replied On June 9, 2015 11:38 PM

Hi Ari case,

Thank you for your update.

Please let us know if you have any other queries.

Regards,
Jayapradha


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;