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

Radgrid - layout problem

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Davide
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"
            meta:resourcekey="dayResource1"></asp:Label>
       <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"
         CssClass="RadGrid_Default">
     <NoRecordsTemplate>
     <asp:Label ID="lblQuantity" runat="server" meta:resourcekey="lblQuantityResource1" ></asp:Label> ingressi
    <asp:HiddenField Id="hfmax" runat="server"/>
    <table width="60px" border="0">
     <tr>
     <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"--%>
              <Items>
              <telerik:RadComboBoxItem Text="0" Value="0" />
              </Items>
              </telerik:RadComboBox>
 
  </td>
     </table>
     </NoRecordsTemplate>
    <Columns>
     <telerik:GridTemplateColumn meta:resourcekey="GridTemplateColumnResource1" UniqueName="TemplateColumn">
     <ItemTemplate>
     <table cellspacing="1px" cellpadding="1px">
     <tr>
     <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"--%>
           <Items>
              <telerik:RadComboBoxItem Text="0" Value="0"/>
              </Items>
               
           </telerik:RadComboBox>
     
          </td></tr>
     </table>
      </ItemTemplate>
     </telerik:GridTemplateColumn
     </Columns>
        <ItemStyle Height="12px" Width="95px" />
        <AlternatingItemStyle BackColor="White" BorderWidth="0px" />
    </MasterTableView>
    </telerik:RadGrid>
  </asp:Panel>
</div>


Can some one help me? Thanks.
Davide.



1 Answer, 1 is accepted

Sort by
0
Eyup
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:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/listview/defaultcs.aspx

Regards,
Eyup
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.
Tags
Grid
Asked by
Davide
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or