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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issues on selection and Edit style

Thread ID:

Created:

Updated:

Platform:

Replies:

124602 Jun 16,2016 01:48 PM UTC Jun 20,2016 04:08 AM UTC WinRT 3
loading
Tags: SfDataGrid
Okba Hosni
Asked On June 16, 2016 01:48 PM UTC

Hi SyncFusion Team,

I have an issue on sfDataGrid, When I set background and foreground, the selected row data disappear when I change the selection.
Also, I can't find "additional templates" and "edit a copy" when I want to edit the sfDataGrid style.
[I use visual studio 2015 on Windows 8.1]
Find attached an example of the selection issue and a screenshot of Edit style.

Regards,

Attachment: SyncFusion_402e0c22.zip

Jai Ganesh S [Syncfusion]
Replied On June 17, 2016 10:32 AM UTC

Hi Okba, 
 
Please find the responses for your queries as below, 
 
Query 1: 
 
You can achieve your requirement by setting the SelectionForegroundBrush property in SfDataGrid like below, 
 
   <syncfusion:SfDataGrid x:Name="datagrid"                              
                               AllowResizingColumns="True" 
                               AllowSorting="False" 
                               AutoGenerateColumns="False" 
                               ColumnSizer="Auto"                                
                               LiveDataUpdateMode="Default" 
                               NavigationMode="Row" 
                               Background="White"  
                               SelectionForegroundBrush="Black" 
                               Foreground="Black" 
                               ItemsSource="{Binding Stocks}"/> 
 
Kb Link: 
 
Query 2: 
 
WinRT controls does not have the options to edit the styles in visual studio designer. You have to manually edit the style in XAML by writing style of TargetType to corresponding control. 
  
Once the Essential Studio was installed, you can get the default style of all Syncfusion WinRT controls in the below path. 
  
C:\Program Files (x86)\Syncfusion\Essential Studio\ (Version name)\Assemblies for WinRT\8.0\ (DLL of the corresponding control)\ 
  
Likewise, you can get the default style of SfDataGrid from the below path, 
  
C:\Program Files (x86)\Syncfusion\Essential Studio\14.1.0.46\Assemblies for WinRT\8.0\Syncfusion.SfGrid.WinRT\Control\Themes 
 
The styles for the controls like GridFilterControl, DataPager, MultiColumnDropDownControl, etc. are shipped in the below folder structure. 
 
 
 
Regards, 
Jai Ganesh S 


Okba Hosni
Replied On June 17, 2016 10:53 AM UTC

Hi,

Thanks, that's clear.

Jai Ganesh S [Syncfusion]
Replied On June 20, 2016 04:08 AM UTC

Hi Okba, 
 
Thank you for the update. 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Jai Ganesh S 


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.

Warning Icon 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.Close Icon

;