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

UserControl in the Content area

3 Answers 145 Views
Expander
This is a migrated thread and some comments may be shown as answers.
terry
Top achievements
Rank 1
terry asked on 27 Feb 2010, 06:42 PM

I am converting a WPF app using standard MS controls to Telerik controls, I have an expander that contains a user control, with the Telerik expander, when expanded the user control is never shown, yet with the standard MS expander it does. Here is an example of both

 

<

 

Expander Name="FirmBenefits" Header="Benefit Details" IsExpanded="False" FontWeight="Bold" Margin="3,0,3,0">

 

 

 

    <detailViews:FirmDetailsBenefitsView/>    <!--  this works and the user control is displayed-->

 

</

 

Expander>

 

 

 

 

 

 

 

 

<telerik:RadExpander Header="Benefit Details" Margin="3" VerticalAlignment="Top" HorizontalAlignment="Stretch" >

 

 

 

    <telerik:RadExpander.Content>

 

 

 

        <detailViews:FirmDetailsBenefitsView/>    <!--  this DOESN'T work and the user control is NOT displayed-->

 

 

 

    </telerik:RadExpander.Content>

 

</

 

telerik:RadExpander>

Suggestions ?

 

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 04 Mar 2010, 01:16 PM
Hello Terry,

I tested your scenario. The RadExpander is behaving as expected on my side.

Can you please elaborate a bit more on the issue. What other controls are included in the user controls, perhaps the problem comes from them?
If you can send us a simple example illustrating your problem we can further investigate the issue.

I have attached the example I created while testing your scenario. Please take a look at it and let me know if it helps.

Best wishes,
Tina Stancheva
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
David
Top achievements
Rank 1
answered on 02 Jun 2011, 10:10 PM
Hi 
   I have tested the sample project ,it works fine but when you add 2 more radexpanders than it behaves differently.
Even I am using the RadExapander in my application but in my case it is different problem. When you click on Radexpanders these expanders move up and down .
I have attached the sample code for it.
  <telerik:RadExpander Margin="01,-297,0,303" Header="Archive Output"   Name="RdexpArchOutput" Width="488" HorizontalAlignment="Left">
                    <StackPanel  Orientation="Vertical" Margin="10,4,0,0">
                        <StackPanel Orientation="Vertical">
                            <!--<Label Content="Archive Output" Height="28" HorizontalAlignment="Left"  Name="lblarchoutput" VerticalAlignment="Top" Width="423" Background="Gray" Foreground="White" FontWeight="Bold" />-->
                            <TextBox Height="59" TextWrapping="Wrap" Background="AliceBlue" HorizontalAlignment="Left"  Name="txtarchoutput" VerticalAlignment="Top" Width="423" Text="The archival process will create 11 files containing your outdated and resolved data. This will include property and owner information. Where would you like the archival process to place those files ?" />
                            <Label Content="Location for Archived Data :" Height="28" HorizontalAlignment="Left" Name="lbsarchbrowse" VerticalAlignment="Top" Width="160" />
                            <TextBox Height="23" HorizontalAlignment="Left"  Name="txtbrowse" VerticalAlignment="Top" Width="313" />
                            <Button Content="Browse" Height="23" HorizontalAlignment="Left"  Margin="326,-24,0,0" Name="btnbrowse" VerticalAlignment="Top" Width="75" />
                        </StackPanel>
                    </StackPanel>
                </telerik:RadExpander>


                <telerik:RadExpander Margin="01,-297,0,303" Header="Archive Process"   Name="RdexpArchProcess" Width="488" HorizontalAlignment="Left">
                    <StackPanel  Orientation="Vertical" Margin="10,4,0,0">
                        <StackPanel Orientation="Vertical">
                            <Label Content="The archive wizard is ready to start the archiving process. Click start to begin." Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="lblarchprocess" VerticalAlignment="Top" Width="423" />
                            <telerik:RadButton Content="Start" Height="24" HorizontalAlignment="Left" Margin="10,0,0,0" Name="rdbtnstart" VerticalAlignment="Top" Width="93" />
                        </StackPanel>
                    </StackPanel>
                </telerik:RadExpander>


                <telerik:RadExpander Margin="01,-297,0,303" Header="Archive Complete"   Name="RdexpArchComplete" Width="488" HorizontalAlignment="Left">
                    <StackPanel  Orientation="Vertical" Margin="10,4,0,0">
                        <StackPanel Orientation="Vertical">
                            <TextBox Background="AliceBlue" Height="41" HorizontalAlignment="Left" Margin="0,0,0,0" Name="txtarcgComplete" Text="The archive processing is complete. There will be 11 files created in your archive output directory. " TextWrapping="Wrap" VerticalAlignment="Top" Width="423" />
                        </StackPanel>
                    </StackPanel>
                </telerik:RadExpander>


*************************************************************************************************************************************************************************
This code is continuation of what you have attached. I have added two more expanders and it behaves differently.
Ex:
<telerik:RadExpander Header="Benefit Details" HorizontalAlignment="Stretch" VerticalAlignment="Top">
<telerik:RadExpander.Content>
<Border BorderBrush="Black" BorderThickness="2">
<StackPanel Orientation="Horizontal">
<local:Menu />
<local:TextBlocks />
</StackPanel>
</Border>
</telerik:RadExpander.Content>
</telerik:RadExpander>


        <telerik:RadExpander Header="Benefit" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0,29,0,0">
            <telerik:RadExpander.Content>
                <Border BorderBrush="Black" BorderThickness="2">
                    <StackPanel Orientation="Horizontal">
                        <local:Menu />
                        <local:TextBlocks />
                    </StackPanel>
                </Border>
            </telerik:RadExpander.Content>
        </telerik:RadExpander>


        <telerik:RadExpander Header="Details" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0,58,0,0">
            <telerik:RadExpander.Content>
                <Border BorderBrush="Black" BorderThickness="2">
                    <StackPanel Orientation="Horizontal">
                        <local:Menu />
                        <local:TextBlocks />
                    </StackPanel>
                </Border>
            </telerik:RadExpander.Content>
        </telerik:RadExpander>

Thanks
0
Tina Stancheva
Telerik team
answered on 08 Jun 2011, 09:07 AM
Hi David,

I am not sure that I understand the issues correctly. Can you please elaborate on what you mean by "it works fine but when you add 2 more radexpanders than it behaves differently"? Do you place them in a Grid or a StackPanel and what is the different behavior?  Also, can you tell me which version of the RadControls for WPF you are using.

And for your scenario you say that the RadExpanders are moving up and down, so I wan wondering in what kind of panel or control are they placed in. If you can send us a small sample reproducing this issue we will be able to further investigate it.

Thank you in advance for your cooperation.

Kind regards,
Tina Stancheva
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
Expander
Asked by
terry
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
David
Top achievements
Rank 1
Share this question
or