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

grid column cell padding space

3 Answers 1348 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vipin
Top achievements
Rank 1
vipin asked on 23 Apr 2011, 09:26 AM
I want to remove cell padding space in the telerik grid coloumn

3 Answers, 1 is accepted

Sort by
0
Accepted
Galin
Telerik team
answered on 28 Apr 2011, 09:51 AM
Hi vipin,

To remove the default padding of cell use following CSS:
div.RadGrid .rgRow td,
div.RadGrid .rgAltRow td
{
   padding: 0;
}

Please read here how easy to override styles:
http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx


Also I highly recommend you to use web tools like Firebug for Firefox / IE developer tool. Shortcut F12 activates both and with them is very easy to inspect the elements and to see the styles that they have. After researching the styles of elements you can add or edit their CSS rules.

All the best,
Galin
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
vipin
Top achievements
Rank 1
answered on 02 May 2011, 10:31 AM
Thanks for your support
it's working now

can you please provide any idea about item template style

eg:-
GridTemplateColumn GridTemplateColumNegotiation = new GridTemplateColumn();
GridTemplateColumNegotiation.ItemStyle.CssClass = "NegotiationClass";

<style type="text/css">

    .NegotiationClass    
    {
        padding-left:0px  !important;
        padding-right:0px  !important;
        padding-top:0px  !important;
        padding-bottom:0px  !important;
    }
</style>

its working fine in Mozilla firefox, but its not working in IE8 (this issue gets in microsoft sharepoint and this issue resolved after pasting this style css in master file)
0
Galin
Telerik team
answered on 04 May 2011, 01:07 PM
Hello Vipin,

I cannot reproduce the issue and I am not exactly sure I understand what exactly is happening in IE. The details that you provided to us are not sufficient. Can you elaborate? 

Kind regards,
Galin
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.

Tags
Grid
Asked by
vipin
Top achievements
Rank 1
Answers by
Galin
Telerik team
vipin
Top achievements
Rank 1
Share this question
or