Selected row of RadGridView does not display text!!

9 posts, 0 answers
  1. Daewhan
    Daewhan avatar
    10 posts
    Member since:
    Nov 2013

    Posted 23 Jun 2015 Link to this post

    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}"

     

  2. Daewhan
    Daewhan avatar
    10 posts
    Member since:
    Nov 2013

    Posted 23 Jun 2015 in reply to Daewhan Link to this post

    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>


  3. UI for WPF is Visual Studio 2017 Ready
  4. Daewhan
    Daewhan avatar
    10 posts
    Member since:
    Nov 2013

    Posted 23 Jun 2015 in reply to Daewhan Link to this post

    Capture Image.

     

  5. Daewhan
    Daewhan avatar
    10 posts
    Member since:
    Nov 2013

    Posted 23 Jun 2015 in reply to Daewhan Link to this post

    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();
            }
        }
    }


  6. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 26 Jun 2015 Link to this post

    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
  7. Daewhan
    Daewhan avatar
    10 posts
    Member since:
    Nov 2013

    Posted 06 Jul 2015 in reply to Stefan X1 Link to this post

    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?

  8. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 09 Jul 2015 Link to this post

    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
  9. Daewhan
    Daewhan avatar
    10 posts
    Member since:
    Nov 2013

    Posted 10 Jul 2015 in reply to Stefan X1 Link to this post

    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!

  10. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 10 Jul 2015 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready