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

Radgrid - layout problem

1 Answer 47 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Davide asked on 04 Oct 2012, 08:38 AM
Hi there,
i'm new in Telerik framework.
I've a problem with radgrid control, In my grid there are unwanted gray bars.
 Please take a look at attached screenshot (screenshot barre grigie.png).

I've tryed to change many attributes of radgrid but the gray bars are always there!

The portion of rendered html regarding the gray bar is in the second attached file (screenshot barre grigie html code.png)

This is my code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StayDay.ascx.cs" Inherits="WebTickets.SubModules.StayDay" %>
<div id="dayStay"style="width:100px;padding:3px;">
    <asp:Panel runat="server" ID="container" meta:resourcekey="containerResource1">
  <asp:Label ID="day" runat="server" height="10px" Font-Size="Smaller"
       <br />
        <br /><span class="description">Disponibilit√†</span>
 <telerik:RadGrid ID="rgDays" runat="server" GridLines="None"
            AutoGenerateColumns="False" OnItemDataBound="rgDataBound"
            OnItemCreated="rgItemCreated" CellPadding="0" Width="68px" 
            BorderStyle="None" BorderColor="Transparent"
            meta:resourcekey="rgDaysResource1" BackColor="#FFFFFF">
     <AlternatingItemStyle Width="67px" CssClass="RadGrid_Default" BorderStyle="None" BorderColor="Transparent" />
    <MasterTableView DataKeyNames="Id" ShowHeader="False" BorderWidth="0px" 
         BorderStyle="None" BorderColor="Transparent"
         style="padding:2px" CellPadding="0" CellSpacing="0" Width="68px"
     <asp:Label ID="lblQuantity" runat="server" meta:resourcekey="lblQuantityResource1" ></asp:Label> ingressi
    <asp:HiddenField Id="hfmax" runat="server"/>
    <table width="60px" border="0">
     <td style="height:14px;width:14px"">
     <telerik:RadComboBox ID="rTB" runat="server" OnClientSelectedIndexChanging="setTotal" EnableScreenBoundaryDetection="false"
              DropDownWidth="48px"   AllowCustomText="false"  MaxHeight="180px"
             EnableVirtualScrolling="True"   Width="48px" AutoPostBack="false"
             meta:resourcekey="rTBResource1" ChangeTextOnKeyBoardNavigation="false"> <%-- OnClientItemsRequested="ClientLoadItem"OnItemsRequested="LoadItem"OnClientLoad="LoadFirst10"--%>
              <telerik:RadComboBoxItem Text="0" Value="0" />
     <telerik:GridTemplateColumn meta:resourcekey="GridTemplateColumnResource1" UniqueName="TemplateColumn">
     <table cellspacing="1px" cellpadding="1px">
     <td style="height:12px;width:12px;padding:0px"><asp:Label ID="fromHour"
             runat="server" Text='<%# Eval("fromHour") %>'
             meta:resourcekey="fromHourResource1"></asp:Label>-<asp:Label ID="toHouor"
             runat="server" Text='<%# Eval("toHour") %>' meta:resourcekey="toHouorResource1"></asp:Label></td>
          <td style="height:10px;padding:2px;padding:0px">
           <telerik:RadComboBox ID="rTB" Width="40px" runat="server" ChangeTextOnKeyBoardNavigation="false" EnableScreenBoundaryDetection="false"
                  OnClientSelectedIndexChanged="setTotal2" DropDownWidth="20"   MaxHeight="180px"
                   EnableVirtualScrolling="True" AllowCustomText="false" AutoPostBack="false"
                  meta:resourcekey="rTBResource2"><%-- OnItemsRequested="LoadItem"OnClientLoad="LoadFirst10"OnClientItemsRequested="ClientLoadItem"--%>
              <telerik:RadComboBoxItem Text="0" Value="0"/>
        <ItemStyle Height="12px" Width="95px" />
        <AlternatingItemStyle BackColor="White" BorderWidth="0px" />

Can some one help me? Thanks.

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 09 Oct 2012, 07:53 AM
Hello Davide,

I have tried to replicate the issue using the provided code snippet, but to no avail - on my side the Expand column space does not appear. Could you please open a support ticket and send us a sample runnable application demonstrating the problematic behavior? Thus, we will be able to further analyze the project and provide a proper approach.

Or provide us the exact steps which will enable us to reproduce the issue locally. Are you using any grouping or hierarchy structure which could cause the appearance of the mentioned gray space?

Looking forward to your reply.

In addition, you could check out the following demo if you want to display your grid in a ListView form:

the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question