split components

4 posts, 0 answers
  1. guy
    guy avatar
    46 posts
    Member since:
    Sep 2010

    Posted 27 Dec 2010 Link to this post

    hi ,
    i have tab control & scheduler

    <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <telerik:RadScheduler  Name="radScheduler1" 
                VerticalAlignment="Top" ViewMode="Week" IsReadOnly="false" 
                AppointmentEditing="radScheduler1_AppointmentEditing" AppointmentDeleting="radScheduler1_AppointmentDeleting"
                                  HorizontalContentAlignment="Stretch" AppointmentEdited="radScheduler1_AppointmentEdited" IsInlineEditingEnabled="True"  Grid.RowSpan="3" AllDayAreaHeight="50">
            </telerik:RadScheduler>
            <telerik:RadTabControl Grid.Row="3"  Name="GeneralTabControl" SelectionChanged="RadTabControl_SelectionChanged">
                <telerik:RadTabItem Name="Items" Header="Sales action items">
                    <telerik:RadGridView FlowDirection="LeftToRight"  SelectionMode="Single" AutoGenerateColumns="False" telerik:StyleManager.Theme="Simple" Name="SalesActionItems" VerticalAlignment="Stretch" IsReadOnly="True" RowLoaded="SalesActionItems_RowLoaded"  Grid.Row="1" >
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding fullname}" HeaderCellStyle="{StaticResource Salesname}" Header="Full Name" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </telerik:RadTabItem>
                <telerik:RadTabItem Name="Customer" Header="Customers">
                    <telerik:RadGridView  VerticalAlignment="Stretch" FlowDirection="LeftToRight" SelectionMode="Single" AutoGenerateColumns="False" telerik:StyleManager.Theme="Simple" Name="Customers"  IsReadOnly="True" RowLoaded="radGridView2_RowLoaded" Grid.Row="1">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding fullname, Mode=TwoWay}" HeaderCellStyle="{StaticResource CustomerFullName}"    Header="Full Name" DisplayMemberPath="Name" SelectedValueMemberPath="Code" >                         
                            </telerik:GridViewComboBoxColumn>                   
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </telerik:RadTabItem>
            </telerik:RadTabControl>      
     </Grid>

    how can set the retio between RadScheduler and
    RadTabControl to 30% - 70% of the page?

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Dec 2010 Link to this post

    Hello guy,

    You can define 10 Grid RowDefinitions and set  Grid.Row=0  Grid.RowsPan=3 on the Scheduler and Grid.Row=3 and Grid.RowSpan=7 on the  TabControl . This way the two controls will stretch in areas with a fixed ration 3:7. You can examine the described approach in the attached solution. Please let us know if it satisfies you or not.

    Kind regards,
    Petar Mladenov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. guy
    guy avatar
    46 posts
    Member since:
    Sep 2010

    Posted 12 Jan 2011 Link to this post

    now i can't get to 12:00(PM) in the scheduler
    and one more problem with this solution ,the rows inside the gridview disappered
    (i can see only the first row)

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Jan 2011 Link to this post

    Hello guy,

    I am unable to reproduce the issues you`ve mentioned. Could you please check out the video here and let me know if this is not what you get at your side when you run my project?

    Greetings,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top