This is a migrated thread and some comments may be shown as answers.

Selected row of RadGridView does not display text!!

8 Answers 146 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Daewhan
Top achievements
Rank 1
Daewhan asked on 23 Jun 2015, 10:31 AM

Hi~

As following picture, selected row of radgridview does not display!

Applied Theme is VisualStudio2013.

Give me some hint! plz.

version is 2014. q3.

 

 <telerik:RadGridView x:Name="datas"
        AutoGenerateColumns="False" 
        CanUserFreezeColumns="False" 
        CanUserResizeColumns="True"
        ShowGroupPanel="False"
        RowIndicatorVisibility="Collapsed"                 
        AutoExpandGroups="True"        
                IsReadOnly="False"
                FontFamily="{Binding ElementName=control,Path=FontFamily}"  
                FontSize="{Binding ElementName=control,Path=FontSize}"  
                FontWeight="{Binding ElementName=control,Path=FontWeight}"

 

8 Answers, 1 is accepted

Sort by
0
Daewhan
Top achievements
Rank 1
answered on 24 Jun 2015, 12:57 AM

Detail Xaml Code is here. 

 

<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             x:Class="Control.SetupPanel"
             x:Name="control" telerik:TouchManager.IsTouchHitTestVisible="false"
             mc:Ignorable="d"
             d:DesignHeight="400" d:DesignWidth="400">
  <UserControl.Resources>

    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/ShmooControl;component/System.Windows.xaml" />
        <ResourceDictionary Source="pack://application:,,,/ShmooControl;component/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="pack://application:,,,/ShmooControl;component/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="pack://application:,,,/ShmooControl;component/Telerik.Windows.Controls.GridView.xaml" />
      </ResourceDictionary.MergedDictionaries>

    </ResourceDictionary>
  </UserControl.Resources>

  <Grid >
    <telerik:RadGridView x:Name="data"
        AutoGenerateColumns="False"
        CanUserFreezeColumns="False"
        CanUserResizeColumns="True"
        ShowGroupPanel="False"
        RowIndicatorVisibility="Collapsed"
        AutoExpandGroups="True"
        IsReadOnly="False"
        FontFamily="{Binding ElementName=control,Path=FontFamily}"
        FontSize="{Binding ElementName=control,Path=FontSize}"
        FontWeight="{Binding ElementName=control,Path=FontWeight}"
        IsFilteringAllowed="False"   ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto"  >

      <telerik:RadGridView.GroupDescriptors>
        <telerik:GroupDescriptor Member="Type" SortDirection="Descending" DisplayContent="Type">
          <telerik:GroupDescriptor.AggregateFunctions>
            <telerik:CountFunction Caption="Entries count: " />
          </telerik:GroupDescriptor.AggregateFunctions>
        </telerik:GroupDescriptor>
      </telerik:RadGridView.GroupDescriptors>

      <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Type" Width="30" HeaderTextAlignment="Center"  IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Val1"  Width="30" HeaderTextAlignment="Center" />
        <telerik:GridViewDataColumn Header="Val2" Width="50*" />
        <telerik:GridViewDataColumn Header="Val3" Width="15*" />
        <telerik:GridViewDataColumn Header="Val4" Width="20*" />
        <telerik:GridViewDataColumn Header="Val5" Width="20*" />
        <telerik:GridViewDataColumn Header="Val6" Width="20*" />
      </telerik:RadGridView.Columns>

    </telerik:RadGridView>
  </Grid>
</UserControl>


0
Daewhan
Top achievements
Rank 1
answered on 24 Jun 2015, 12:59 AM

Capture Image.

 

0
Daewhan
Top achievements
Rank 1
answered on 24 Jun 2015, 01:42 AM

My company security policy block uploading image.

So, I will post a sample source (.cs and .xaml).

While this program is running, click and select some row.

Then selected row shows just all blue bar without text.... 

 

 

First. xaml code--------------------------------------------

 

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="WpfApplication2.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="System.Windows.xaml" />
                <ResourceDictionary Source="Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="Telerik.Windows.Controls.Input.xaml" />
                <ResourceDictionary Source="Telerik.Windows.Controls.GridView.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>

        <telerik:RadGridView 
            x:Name="data"
          AutoGenerateColumns="False" 
        CanUserFreezeColumns="False" 
        CanUserResizeColumns="True"
        ShowGroupPanel="False"
        RowIndicatorVisibility="Collapsed"                 
        AutoExpandGroups="True"        
                IsReadOnly="False"
                HorizontalAlignment="Stretch" Height="Auto"  VerticalAlignment="Stretch" Width="Auto">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="A" Width="50" DataMemberBinding="{Binding A, Mode=TwoWay}"/>
                <telerik:GridViewDataColumn Header="C" Width="50" DataMemberBinding="{Binding B, Mode=TwoWay}"/>
                <telerik:GridViewDataColumn Header="D" Width="50" DataMemberBinding="{Binding C, Mode=TwoWay}"/>
                <telerik:GridViewDataColumn Header="E" Width="50" DataMemberBinding="{Binding D, Mode=TwoWay}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

    </Grid>
</Window>

 

 

And .cs Code ---------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication2
{
    public class tdata
    {
        public string A{get; set;}
        public string B{get; set;}
        public string C{get; set;}
        public string D{get; set;}
    }
    /// <summary>
    /// MainWindow.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            data.Items.Add(new tdata() { A = "11", B = "22", C = "33", D = "44" });
            data.Items.Add(new tdata() { A = "11", B = "22", C = "33", D = "44" });
            data.Items.Add(new tdata() { A = "11", B = "22", C = "33", D = "44" });
            data.Items.Refresh();
        }
    }
}


0
Stefan
Telerik team
answered on 26 Jun 2015, 07:20 AM
Hi Daewhan,

With the provided code, the visual appearance of a selected GridViewRow should not be affected. Can you please share some additional information on whether you have defined any styles that might be causing the issue, or you have modified the template of the control?

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Daewhan
Top achievements
Rank 1
answered on 06 Jul 2015, 03:37 PM

Hi!

I used just only visualstudio2013 theme.

i didn't use another style definiton.

Can i get a sample source which use radgridview and apply visualstudio2013? theme?

0
Stefan
Telerik team
answered on 09 Jul 2015, 10:45 AM
Hello Daewhan,

I have attached a sample project with VisualStudio2013 Theme applied. Please check it out and let me know if I can guide you any further.

Best Regards,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Daewhan
Top achievements
Rank 1
answered on 10 Jul 2015, 06:41 AM

Thanks! Stefan~

I mis-understood about  implicit theme using. ^^;

(I used dlls in 'Telerik\UI for WPF Q3 2014\Binaries'.  

  So, I replace the dlls with  Telerik\UI for WPF Q3 2014\Binaries.NoXaml and my problems is cleard!)

Thanks!

0
Stefan
Telerik team
answered on 10 Jul 2015, 11:06 AM
Hi Daewhan,

I am glad that the sample project worked for you.

You can take a look at the Setting a Theme(Using Implicit Styles) topic for further reference.

Best Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Daewhan
Top achievements
Rank 1
Answers by
Daewhan
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or