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

how to style div "RaadGrid...Panel" ??

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sandro Cavazzoni
Top achievements
Rank 1
Sandro Cavazzoni asked on 15 Apr 2010, 05:03 PM
Hi to all,
i'm testing telerik controls and they are fantastic !! (the best of all i tested in the last days)
But i've a problem with datagrid height. I used panes to align my usercontrols (and my radgrid is inside a usercontrol) but it cannot fill the pane height. Playing with firebug in html code i see this structure:

<div id="RAD_SPLITTER_PANE_CONTENT_RadPane2" ... > 
<div> other my customs usercontrol elements </div> 
<div id="CustomersGridControl1_CustomersGridControl1$RadGridCustomersPanel" ... > 
<div id="CustomersGridControl1_RadGridCustomer" ...> 
   OTHER GRID ELEMENTS 
</div> 
</div> 
</div> 




The problem is inside div "CustomersGridControl1_CustomersGridControl1$RadGridCustomersPanel" (i suppose it's generated from radgrid control because it doesn't exist in my code). With firebug i setted the style height="100%" and all work fine. But i don't know how style it from aspx code.

Sorry if it's a stupid question.. but this is my first experience with terelik controls and also with asp.net (i used php many years ago and .net only for desktop applications). Probabilly i'm loosing my self in a "glass of water".

P.S.: i'm using latest telerik trials controls with visual studio express 2010

Regards

Sandro

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 19 Apr 2010, 12:49 PM
Hi Sandro,

That <div> is an update panel. Since update panels are not "true" web controls, you can't set style properties to them on the server. However, there is a way to achieve what you want. Here is an example:

http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx

All the best,
Dimo
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
Grid
Asked by
Sandro Cavazzoni
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or