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

Grid is only show 50% of width for few seconds.

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Soehadi Adi
Top achievements
Rank 1
Soehadi Adi asked on 09 Nov 2008, 08:15 AM
Hi,

I am using RadGrid on my page. When i load the page, Grid is only showing 50% of width for few seconds. Then auto expend to 100%. Where do I need to change this setting. I have put 100% width in Design view but still showing 50% for a moment.

Please let me know.

Thanks you for you help.

2 Answers, 1 is accepted

Sort by
0
Soehadi Adi
Top achievements
Rank 1
answered on 09 Nov 2008, 09:49 AM
It is because of the RadSplitter.

0
Dimo
Telerik team
answered on 11 Nov 2008, 12:15 PM
Hi Soehadi Adi,

Since both RadGrid and RadSplitter adjust their layout on the client (in some scenarios), this behavior is expected.

As a workaround, you can set style="visibility:hidden" to RadGrid and remove this style by using the RadSplitter's OnClientLoaded event handler:

<script type="text/javascript">

function SplitterLoaded(sender, args)
{
     var grid = $find("<%= RadGrid1.ClientID%>");
     grid.get_element().style.visibility = "";
}

</script>



All the best,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Soehadi Adi
Top achievements
Rank 1
Answers by
Soehadi Adi
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or