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

HtmlPlaceholder and resizing

4 Answers 90 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
andrew rekvils
Top achievements
Rank 1
andrew rekvils asked on 06 Apr 2011, 12:39 AM

I am using IE9. In the simple silverlight layout below, I am having HtmlPlaceholder in a grid with the vertical gridSplitter. However, HtmlPlaceholder only resizes when its size increases, and does not resize when its size should be decreased (splitter can go right and does not go left). It does not look like there is this issue in the Firefox. Is that a known issue with IE9? How can it be fixed?

Thank you,
Alex

 

 

 

 

 

 

<Grid x:Name="LayoutRoot" Background

="White">

 

 

 

 

 

 

 <Grid.ColumnDefinitions

>

 

 

 

 

 

 

  <ColumnDefinition

/>

 

 

 

 

 

 

  <ColumnDefinition Width

="Auto"/>

 

 

 

 

 

 

 <ColumnDefinition

/>

 

 

 

 

 

 

</Grid.ColumnDefinitions

>

 

 

 

 

 

 

<telerik:RadHtmlPlaceholder x:Name="HtmlPlh" Grid.Column

="0" SourceUrl="http://www.google.com" />

 

 

 

 

 

 

  <controls:GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Center"      Background="Aqua" Width

="5"/>

 

 

 

 

 

 

<Grid Grid.Column="2" Background

="Wheat">

 

 

 

 

</Grid

>

 

 

 

 

 

 

</Grid

>

 

 

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 07 Apr 2011, 09:41 AM
Hello andrew rekvils,

We tested similar scenario and it appears that this is a bug in the RadHtmlPlaceholder. We logged this in our PITS(HTMLPlaceHolder:Does not resize correctly in IE when surrounded by GridSplitters, works fine in Chrome and Mozilla) where you will be soon able to track its status. We also updated your telerik account points. Thank you for your cooperation.

Regards,
Petar Mladenov
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
asking
Top achievements
Rank 1
answered on 13 Sep 2011, 08:26 AM
Hello,

I have nearly the same problem or scenario. - my RadHtmlPlaceHolder
can only be resized correctly when the witdth rises, but not when
the width falls
. (RadHtmlPlaceholder includes a GridSplitter on its left) 
- as the attached image shows

I'm using the latest Version of IE and I have to implement this feature on
this browser. 

As you've already mentioned above there should be an entry in the PITS but
I wasn't able to find it anywhere. - the linked PITS Element leads to an empty telerik page. 
Is there a solution to this problem with which resizing can be realized correctly?
How can it be fixed?

What about the topic:
HTMLPlaceHolder:Does not resize correctly in IE when surrounded by GridSplitters, works fine in Chrome and Mozilla

// but not in IE

Regards,
Asking Developer
0
Tina Stancheva
Telerik team
answered on 15 Sep 2011, 03:16 PM
Hello Asking,

Unfortunately this issue isn't addressed yet due to the many pressing tasks in our to-do list. You can track its progress here. You can also vote for it thus increasing its priority.

Please accept our apology for this inconvenience.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
christian
Top achievements
Rank 1
answered on 20 Sep 2011, 07:34 AM
I found a way to work around the well-known resizing-problem
that I want to share with you.

The trick is to hide the RadHTMLPlaceHolder while the Gridsplitter
is moving.

You can achieve this behaviour by using the following code
(there are two Events that trigger Hiding/Showing of the RadHTMLPlaceHolder):

// Code in MainPage.XAML.cs
# region HtmlPlaceHolder - resizing with gridsplitters
    private void YourVerticalGridSplitter_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    {
        this.YourRadHtmlPlaceHolder.Visibility = Visibility.Collapsed;
    }
 
    private void YourVerticalGridSplitter_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
    {
        this.YourRadHtmlPlaceHolder.Visibility = Visibility.Visible;
    }
#endregion
Tags
HTMLPlaceHolder
Asked by
andrew rekvils
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
asking
Top achievements
Rank 1
Tina Stancheva
Telerik team
christian
Top achievements
Rank 1
Share this question
or