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

Weird Rendering

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick Stovall
Top achievements
Rank 1
Patrick Stovall asked on 04 Jul 2008, 03:55 PM
I just upgraded to the 619 version of the RadControls for ASP.NET AJAX.

I reviewing our working website the the updated controls, I have come across an interesting problem. 

Pages that have grids are rendering slowly.  During the page_load, the grid is half it's size (basically half of the available space).  Once the load is complete the grid expands to the 100% of the available space.

The grids are loaded into a content area of a masterpage.  They are also usually nested inside a tab/multipage control.  (Not sure if this matters)

But this is ending up to be a serious matter as it is pretty ugly to see a partially rendered grid and then have it expand every single time.

How do I go about fixing this?  We are nearly a beta to a customer and need to have this fixed...any ideas?  From anyone that may have seen this happen?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Patrick Stovall
Top achievements
Rank 1
answered on 04 Jul 2008, 07:12 PM
I did some check on this and found that it isn't just the grid but seems to be the RadSplitter.  I have a master page with a radsplitter with a 2 radpanes.  The left radpane is the navigation, the other radpane is the content area.  Seems the rendering of the radpane or splitter is causing this problem.  By putting a border on the radsplitter, I was able to see that the rendering of the splitter is compressed until the content is loaded and then it expands.  This did not do this prior to the loading of the latest release (619).

Any ideas on how to fix?
0
Svetlina Anati
Telerik team
answered on 08 Jul 2008, 09:58 AM
Hello Patrick,

What I can suggest in order to improve the behavior is the following:

  1. Set the RadSplitter's VisibleDuringInit property to false. If you have more than one splitters (e.g. nested) set this property for all of them.
  2. Databind the RadGrid by using an ajax request after the RadSplitter has already initialized itself. You can use the RadAjaxManager control for this purpose and its OnAjaxRequest handler instead of the grid's NeedDataSource handler. The function which databinds the grid should be called in the RadSplitter's OnClientLoaded handler.

In case my suggestion do not help, please open a new support ticket and send us a sample, fully working project along with a detailed explanation of the desired behavior. Once we receive it, we will do our best to help.



All the best,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Patrick Stovall
Top achievements
Rank 1
Answers by
Patrick Stovall
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or