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

[Solved] How to know relative cell position in grid

3 Answers 148 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.
Avi
Top achievements
Rank 1
Avi asked on 20 Dec 2010, 12:47 PM
Hello,

I am using telerik:RadGridView.

Outside the grid, at the bottom, I want to position a stackpanel exactly under it's 6th column.
Using margins does not help because it changes between screen resolutions.

How do I find the relative position for the stackpanel?

The code is like this :

<telerik:RadGridView>
........
</telerik:RadGridView>

<StackPanel
            Margin="0,10,170,0"
            HorizontalAlignment="Center"
            Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center" Text="Total Balance:" />
            <Border VerticalAlignment="Top">
                        <TextBlock Width="100"
                                VerticalAlignment="Center"
                                FlowDirection="LeftToRight"
                                Padding="3"
                                Text="{Binding TotalPaymentBalance,  StringFormat='{}{0:C2}',Mode=OneWay}" />
                        </Border>
</StackPanel>

Thanks

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Dec 2010, 12:50 PM
Hello,

 It will be better to use Footer property for this column to declare this StackPanel instead outside of the grid. More info about custom footers can be found on this demo

Best wishes,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Avi
Top achievements
Rank 1
answered on 20 Dec 2010, 01:08 PM
Hi,

I already used the footer for something else. I need the StackPanel outside the grid.

Is there any way to create multiple rows at the footer ? that will help.

I am attaching the screen picture the red arrow is the problematic.

Thanks,

0
Veselin Vasilev
Telerik team
answered on 05 Jan 2011, 01:42 PM
Hi Avi,

The footer property is of type object so you can place anything you want in it.
You can use the approach similar to this one.

Regards,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Avi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Avi
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or