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

[Solved] Issue with setting font size to row data in RadGridView

3 Answers 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ganesh bendre
Top achievements
Rank 1
ganesh bendre asked on 05 Mar 2010, 10:00 AM
Hi Telerik,

Thanks for providing such a nice controls.
I am trying to set the font size to row data in RadGridView by

<

 

telerikGrid:RadGridView x:Name="PersonGrid" ItemsSource="{Binding}" FontSize="22"/>,
but it set the font size only to the headers but not to the row data.
Is there any other way to set fontsize to row data ?
If you have any sample solution please share with me.
Waiting for your answer.

Thanks and Regards,
Ganesh Bendre.

 

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 09 Mar 2010, 10:50 AM
Hello ganesh bendre,

I have tried to reproduce this error but to no avail. Attached I am sending you a sample which uses the same case as yours and the font size is applies as expected. Do you have any row customizations which might temper with the size?

Kind regards,
Kalin Milanov
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
ganesh bendre
Top achievements
Rank 1
answered on 09 Mar 2010, 04:46 PM
Hi Kalin,
 Thanks for reply.
 Ur solution is working  fine. But In my application, I created child definition for showing hierarchical data like  
MainPage()
{
InitializeComponent();
  var definition = PersonGrid.TableDefinition;
  var d = new GridViewTableDefinition();
   d.Relation = new PropertyRelation("Subordinates");
    definition.ChildTableDefinitions.Add(d);  
}

and In Dataloading of RadGridView 
 private void PersonGrid_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e)
        {
 var grid = (GridViewDataControl)sender;
  here is  call to WCF service passing parent Id of row
      GridViewDataColumn dataColumn = new GridViewDataColumn() { DataMemberBinding = new Binding("PersonId") };
            dataColumn.IsVisible = false;
            grid.Columns.Add(dataColumn);
              dataColumn = new GridViewDataColumn() { DataMemberBinding = new Binding("FirstName") };
               dataColumn.Header = "First Name";
           grid.Columns.Add(dataColumn);
       }
Means I did  bind data at runtime.Using this RadGridView is capable for showing multilevel hierarchy.
and each hierarchy is shown on demand (on clicking "+ " sign). means childDefinition  creation on the fly.

When I assign font size to the main RadGridView, It is applied for only  header not for row even not for child Rows. 

Every child is new RadGridView ,So how I am going to apply fontSize  to every ChildRow.
is there any way to pass parent FontSize to it's child in above PersonGrid_DataLoading or other way? 
Pls help me out....

waiting for ur prompt reply.....

Thanks   and Regards
Ganesh 
  
 


0
Vlad
Telerik team
answered on 12 Mar 2010, 12:42 PM
Hi,

I've attached an example project to illustrate you how to achieve your goal.

All the best,
Vlad
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
ganesh bendre
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
ganesh bendre
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or