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

DescriptionPanel

11 Answers 227 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Hans Peter
Top achievements
Rank 1
Hans Peter asked on 29 Jun 2011, 08:06 AM
As the beta example is not that detailed, I have to ask:

Is it possible to set the initial height of the description panel and where can I switch on, that the user can change the height of the description panel?

Greets

11 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 29 Jun 2011, 08:11 AM
Hi Hans,

 

You may change the height of the RadPropertyGrid's DescriptionPanel by altering the template of RadPropertyGrid. There you may find the PART_DescriptionPanel and change its height from there. 


Regards,
Vanya Pavlova
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
Hans Peter
Top achievements
Rank 1
answered on 29 Jun 2011, 08:23 AM
.. and how can the user change the size of DescriptionPanel like in VS?
0
Vanya Pavlova
Telerik team
answered on 29 Jun 2011, 08:30 AM
Hi Hans,

 

You may use Microfost Expression Blend to extract the template of RadPropertyGrid and to find the DescriptionPanel. If you take a look at the default template you may see that the MinHeight of the panel is set to 75 pixels. Just change this height in the way you need.

<Border x:Name="PART_DescriptionPanel" Visibility="{TemplateBinding DescriptionPanelVisibility}"
                        MinHeight="75" Grid.Row="2" BorderBrush="{StaticResource PropertyGrid_DescriptionBorderBrush}"
                        BorderThickness="0,1,0,0" Background="{StaticResource PropertyGrid_DescriptionBackground}">
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="{Binding SelectedPropertyDefinition.DisplayName,ElementName=PropertyGridPresenter}"  Margin="5" FontWeight="Bold"/>
                        <TextBlock Text="{Binding SelectedPropertyDefinition.Description,ElementName=PropertyGridPresenter}"  Margin="5" TextWrapping="Wrap"/>
                    </StackPanel>
                </Border>


For those clients who do not use Blend we ship our themes as separate projects. You may get the xaml files for all Telerik themes from the Themes folder of your personal installaion.

 

All the best,
Vanya Pavlova
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
Hans Peter
Top achievements
Rank 1
answered on 29 Jun 2011, 03:52 PM
Hi Vanya,

thanks for the answer, but I think my question wasn't well formulated. I want to know how the user of my programm can change the size of the description panel when the program is running.

Greets
0
Accepted
Vanya Pavlova
Telerik team
answered on 29 Jun 2011, 04:01 PM
Hi Hans Peter,

 
Thank you for getting back to us! Such functionality is not built-in supported in our RadPropertyGrid. If you want to achieve this effect you should alter the appearance of RadPropertyGrid and use some control such as GridSplitter to achieve the desired result. 


Best wishes,
Vanya Pavlova
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
Hans Peter
Top achievements
Rank 1
answered on 30 Jun 2011, 11:30 AM
Hi Vanya,

thanks for the response. I don't know how to "alter the appearance of RadPropertyGrid and use some control such as GridSplitter to achieve the desired result" .. but maybe you meant RadGrid, but then building my own PG is a bit to much for this smal effect :)

However; it would be great, if you add a feature request for the next release, that the initial size of the description panel can be set directly on the PG and another one that the size can be changed at runtime.

Thanks
Hans
0
Vanya Pavlova
Telerik team
answered on 30 Jun 2011, 12:05 PM
Hi Hans,

 
Thank you for getting back to us! We always appreciate customers feedback related to our components. By that reason I have logged your suggestion as feature request in our PITS System. I would encourage you to vote and this will increase its priority when we consider our future development plans. You may track its progress following this link http://www.telerik.com/support/pits.aspx#/public/silverlight/6688


Regards,
Vanya Pavlova
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
Greg
Top achievements
Rank 2
answered on 14 Jul 2011, 04:26 PM
I understand how to get the template but it's not clear how I would change the height of the Description Panel. Are you suggesting to change the height in the template itself found from the Themes folder of our personal installation? If not can you please clarify the exact steps needed to change the height of the Description Panel. Personally I'd like to remove it completely. I have DescriptionPanelVisibility set to hidden, however, there is still a line across the control where it previously existed. I'd like to remove the Description Panel and regain the space for displaying my data.
0
Vanya Pavlova
Telerik team
answered on 15 Jul 2011, 08:14 AM
Hello Hans Peter,

 

If you want to remove completely RadPropertyGrid's DescriptionPanel you should use Expression Blend. Edit its template and remove the Border element named DescriptionPanel and its content to achieve the desired result. If you need sample project that demonstrates how this can be achieved please let me know. 


All the best,
Vanya Pavlova
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
Greg
Top achievements
Rank 2
answered on 15 Jul 2011, 03:37 PM
Vanya Pavlov,

Hello, thank you for getting back with me. Yes, some sort of explanation or example would be very appreciated. I've successfully viewed the XAML in the themes and via Blend. But there is no indication in this thread on what to do once you have altered the Description Panel. How do I save the changes? How do I use the changes I've made. Can you please give a detailed explanation on how to complete the process of editing the XAML of the Description Panel?

Also, this would be all so much easier if the DescriptionPanelVisability Method would also remove the template footprint, i.e. truly be not visible. By leaving the template footprint, (the line across the control where the Description Panel once was) really defeats the purpose of visibility. Can you please add a feature request that completely removes the Description Panel from the control when the visibilty state is set to hidden?

Greg

p.s. You must also remove lines 327 - 329 because the template is used on line 328, see attached.
0
Pavel Pavlov
Telerik team
answered on 20 Jul 2011, 04:18 PM
Hi Greg,

 
In answer to :
"Also, this would be all so much easier if the DescriptionPanelVisability Method would also remove the template footprint, i.e. truly be not visible. By leaving the template footprint, (the line across the control where the Description Panel once was) really defeats the purpose of visibility".

Can you please try set the Visibility to Collapsed  instead of hidden . This should generate the result you expect.

All the best,
Pavel Pavlov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
PropertyGrid
Asked by
Hans Peter
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Hans Peter
Top achievements
Rank 1
Greg
Top achievements
Rank 2
Pavel Pavlov
Telerik team
Share this question
or