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

Rendering Issue in ASP.NET AJAX UpdatePanel

1 Answer 81 Views
Rating
This is a migrated thread and some comments may be shown as answers.
The Stormm
Top achievements
Rank 1
The Stormm asked on 28 Mar 2010, 07:03 PM
I am working with the rater in a standard AJAX UpdatePanel and there appears to be a rendering issue in FF (PC).  Then panel has a number of hidden DIVs for sub-sections of a large form.  When I show the DIV containing the rater, the rater items are stacked in two rows rather than a single row.  If I click the button to make the DIV visible again, the rendering is corrected.

I have completely disabled my style sheet and the behavior remains.  Any ideas what could be causing the issue?

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 01 Apr 2010, 09:39 AM
Hello The Stormm,
I suppose you are using "display:none" to hide the DIV elements. If this is the case, you can try calling the repaint method of the rating control when you show its parent the DIV element. For example:
<script type="text/javascript">
function ShowRating()
{
    $get("ratingWrapper").style.display = "block";
    $find("<%= RadRating1.ClientID %>").repaint();
}
</script>
<button onclick="ShowRating(); return false;">Show rating</button>
<div id="ratingWrapper" style="display: none;">
    <telerik:RadRating ID="RadRating1" runat="server">
    </telerik:RadRating>
</div>

In case this does not work, please open a new support ticket and send us a simple running project, demonstrating the problem.

All the best,
Tsvetie
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
Rating
Asked by
The Stormm
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or