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

GridView row display issue

3 Answers 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pradeep Chandraker
Top achievements
Rank 1
Pradeep Chandraker asked on 09 Mar 2010, 04:02 AM
Hi,

I am using Rad GridView in my application. when I am having fixed height in my grid, the rows are getting displayed correctly but when I have not specified any height, all the rows are not visible, the rows are getting displayed up to the available height of the tab and other rows are invisible and the grid is not even showing any scrolbar.

The grid is inside expander control which is inside tab.

I have attached screen print for this issue. Please help me on this.

Thank you,
Pradeep

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 09 Mar 2010, 08:30 AM
Hi Pradeep Chandraker,

I guess that in the second case RadGridView is measure with infinite height which causes the problems that you have described. Could you please take a look at this article which explains how to alleviate such problems. In general the solution is to set some height on RadGridView or place it in a container that will not measure it with infinite height.


Regards,
Milan
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
Pradeep Chandraker
Top achievements
Rank 1
answered on 11 Mar 2010, 02:38 AM
Hi Milan,

Can you suggest what container can I use to achieve the required functionality. Actually I want the grid to be visible and fit inside tab and should resize based both Expander control.

Please let me know.

Thanks,
Pradeep

0
Milan
Telerik team
answered on 16 Mar 2010, 10:41 AM
Hi Pradeep Chandraker,

Well, it is a bit difficult to make a concrete suggestion without taking a look at the actual XAML code but one thing is certain - StackPanel should not be used since it always measures its children with infinity. Here is a sample XAML code which contains a tab control, two expanders and two grid. 

<telerikNavigation:RadTabControl>
    <telerikNavigation:RadTabItem Header="STB" >
          
    </telerikNavigation:RadTabItem>
    <telerikNavigation:RadTabItem Header="Account" >
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <telerik:RadExpander Grid.Row="0" Header="Package">
                <telerikGrid:RadGridView x:Name="firstGrid"/>
            </telerik:RadExpander>
            <telerik:RadExpander Grid.Row="1" Header="Channel list">
                <telerikGrid:RadGridView x:Name="secondGrid"/>
            </telerik:RadExpander>
        </Grid>
    </telerikNavigation:RadTabItem>
</telerikNavigation:RadTabControl>


Regards,
Milan
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
Pradeep Chandraker
Top achievements
Rank 1
Answers by
Milan
Telerik team
Pradeep Chandraker
Top achievements
Rank 1
Share this question
or