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

Few appearance problems

4 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 09 Aug 2011, 12:27 PM
Hello,
I have some problems with grid appearance. All columns in grid are of TemplateColumn type. I implement ITemplate for each ItemTemplate and everything works correctly. I use "rubber" layout when split panel and grid on it are expanded to browser width and height. But:
1. When I insert in markup tag
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
header remains expanded to full width but content is tightening to minimum width, just to fit data (see pic 1)
2. With static headers turned on, when I use a pager control and go to another page, header reveals a small gap on the right (pic 2)
3. I can't see grid lines although I have set GridLines="Both".

Below is a grid markup:
<grid:RadGrid ID="Grid" runat="server" Height="99.5%" ShowStatusBar="True"
                    AllowSorting="True" AllowAutomaticUpdates="True" AutoGenerateColumns="False"
                    AllowPaging="true" PageSize="20" GridLines="Both">
                    <MasterTableView DataKeyNames="id" EditMode="InPlace" Width="100%" />
                    <ClientSettings>
                     <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
                        <ClientEvents />
                    </ClientSettings>
                </grid:RadGrid>

Thank you.

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 09 Aug 2011, 03:53 PM
Hi Dmitry,

Please examine the code library below and let me know if it helps to resize the grid with scrolling and static headers enabled:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx

Regarding your second issue, you can refer to the forum thread below for more information on the matter:
http://www.telerik.com/community/forums/aspnet-ajax/ajax/usestaticheaders-property-in-radgrid.aspx

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Dmitry
Top achievements
Rank 1
answered on 11 Aug 2011, 11:54 AM
Thank you for reply, first 2 issues fixed and working fine. But as for 3d issue, you didn't answer. I don't see vertical grid lines and also I cannot resize columns
0
Accepted
Pavlina
Telerik team
answered on 12 Aug 2011, 10:27 AM
Hi Dmitry,

The GridLines ASP.NET property is of no use when you want to add borders of grid with embedded skin, because it renders the obsolete rules HTML attribute, which is easily overridden by any CSS styles that may define borders. The following code library demonstrates how you can achieve your goal:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-add-or-remove-radgrid-borders.aspx

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Dmitry
Top achievements
Rank 1
answered on 15 Aug 2011, 01:59 PM
Thank you. Everything works fine now.
Tags
Grid
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or