The images not fit in the radgrid's cells

2 posts, 0 answers
  1. selva
    selva avatar
    8 posts
    Member since:
    Jun 2011

    Posted 20 Jul 2011 Link to this post


    I have used radgrid in my webpart coding (for MOSS 2007). The rad grid has 4 columns (width of each 58+505+200+99=862). I am trying put 4 diiferent images in the Radgris header columns. the total width of the 4 images is 58+505+200+99 = 862. The images are not fit exactly. It makes vertical white line or hide the other column image.

    The radgrid is placed in 870 width <TD>. What is the problem?.

    Thanks in advance,

  2. Marin
    Marin avatar
    1057 posts

    Posted 22 Jul 2011 Link to this post

    Hi Selva,

     The cells of the grid might have borders and might paddings which increase the total width of the columns. Normally the cells have 7px padding on both sides and 1px border which increases the total width of the column by 16px. You should take this into account when calculating the column widths. Or you should apply different styles that remove the borders and paddings of the cells.

    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top