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

Need Help on tilted Header and setting the Frozen first and last Column of RadGridView

9 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MK
Top achievements
Rank 1
MK asked on 28 Jul 2010, 02:26 PM
Hi All,
I need help on tilted Header and setting the Frozen first and last Column of RadGridView.
For RadGridView design pic, Please check attached file.

Thanks
Mahesh

9 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Jul 2010, 03:00 PM
Hello,

 Currently the grid columns can be frozen from the left side only. You can use Blend to style GridViewHeaderCell in desired way. 

Best wishes,
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
0
MK
Top achievements
Rank 1
answered on 28 Jul 2010, 03:37 PM
Hi vlad,
Thanks for reply
But I want to create gridviewcolumns at runtime.Because Oreder1..2..3.. (refer attached image) create at runtime and they are not fix, it may be 2 columns or 10 columns.



0
Vlad
Telerik team
answered on 28 Jul 2010, 03:43 PM
Hello,

 There will be no problem to style GridViewHeaderCell in desired way apply this style using HeaderCellStyle column property no matter if the columns are dynamically generated or statically declared.

Kind regards,
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
0
MK
Top achievements
Rank 1
answered on 28 Jul 2010, 03:58 PM
Hi vlad,
Thanks

Thanks
Mahesh
0
MK
Top achievements
Rank 1
answered on 29 Jul 2010, 10:20 AM
Hi vlad,
I added a DataTemplate in xmal file like that - 

<DataTemplate x:Key="TempTextBox">
                <TextBox x:Name="Score" Height="97" Width="40" RenderTransformOrigin="0.5,0.5" Margin="0" Visibility="Visible">
                    <TextBox.Projection>
                        <PlaneProjection RotationX="40" RotationY="-40" RotationZ="20"/>
                    </TextBox.Projection>
                </TextBox>
</DataTemplate>

After create a column at run time like this - 

Telerik.Windows.Controls.GridViewDataColumn gridColumn = new Telerik.Windows.Controls.GridViewDataColumn();
            gridColumn.CellTemplate = (DataTemplate)this.Resources["TempTextBox"];
            gridColumn.Header = "Applicants";
            gridColumn.UniqueName = "Applicants";
            gridColumn.Width = 40;
            
radGridView1.Columns.Add(gridColumn);

but it showed normal column header.

Please can you give me some example. I want a radgridview as show attached image.

0
Vlad
Telerik team
answered on 29 Jul 2010, 10:29 AM
Hello Mahesh,

 I'm not sure how this code is related to column headers - can you clarify? 

Greetings,
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
0
MK
Top achievements
Rank 1
answered on 29 Jul 2010, 10:34 AM
Hi Vlad,

I added a DataTemplate in Temp.xmal file like that - 

<DataTemplate x:Key="TempTextBox">
                <TextBox x:Name="Score" Height="97" Width="40" RenderTransformOrigin="0.5,0.5" Margin="0" Visibility="Visible">
                    <TextBox.Projection>
                        <PlaneProjection RotationX="40" RotationY="-40" RotationZ="20"/>
                    </TextBox.Projection>
                </TextBox>
</DataTemplate>

After create a column at run time like this -  here first i added only one column

i written on Loaded event in Temp.xmal.cs 

Telerik.Windows.Controls.GridViewDataColumn gridColumn = new Telerik.Windows.Controls.GridViewDataColumn();
            gridColumn.CellTemplate = (DataTemplate)this.Resources["TempTextBox"];
            gridColumn.Header = "Applicants";
            gridColumn.UniqueName = "Applicants";
            gridColumn.Width = 40;
            
radGridView1.Columns.Add(gridColumn);

but it showed normal column header. 

Please can you give me some example. I want a radgridview as show attached image. In image order-1, Order-2....., is it possible in radgridview? 
0
MK
Top achievements
Rank 1
answered on 29 Jul 2010, 10:53 AM
Hi Vlad,

Please can you give me any example code. I want to design a radgridview as show attached image.

Thanks
Mahesh
0
MK
Top achievements
Rank 1
answered on 16 Aug 2010, 12:26 PM
Hi,

I want to add order-1, order-2, order-3 ...(ref. Atteched Image). Please can you tell me how can i do it? and please give me example code also.
Tags
GridView
Asked by
MK
Top achievements
Rank 1
Answers by
Vlad
Telerik team
MK
Top achievements
Rank 1
Share this question
or