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

Web20 Skin Remove Gridlines

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Timothy Kruszewski
Top achievements
Rank 1
Timothy Kruszewski asked on 10 Sep 2010, 12:49 AM

I can't seem to remove the gridlines from the Web20 skin even if Gridlines is set to none.  Is there another way to do this?

<telerik:RadGrid ID="rgTickets" runat="server" Skin="Web20" AutoGenerateColumns="false"
                                           Width="100%" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True"
                                           GridLines="None" PageSize="25" OnNeedDataSource="rgTickets_NeedDataSource" OnDetailTableDataBind="rgTickets_DetailTableDataBind"
                                           OnItemDataBound="rgTickets_ItemDataBound" OnPreRender="rgTickets_PreRender" OnPageIndexChanged="rgTickets_PageIndexChanged"
                                           OnSortCommand="rgTickets_SortCommand">
                                           <MasterTableView DataKeyNames="TicketID" Name="rgMaster" AllowMultiColumnSorting="False" GridLines="None"
                                               Width="100%" HeaderStyle-BackColor="#7FA5D7" ItemStyle-BackColor="#E8F0FB" AlternatingItemStyle-BackColor="#E8F0FB">
                                               <DetailTables>
                                                   <telerik:GridTableView DataKeyNames="TicketID" runat="server" Name="rgDetail" Width="100%"
                                                       GridLines="None" ShowHeader="false" HeaderStyle-BackColor="White" ItemStyle-BackColor="White"
                                                       AlternatingItemStyle-BackColor="White">
                                                       <Columns>
                                                           <telerik:GridBoundColumn HeaderText="Description" DataField="Description" HeaderStyle-Width="50%">
                                                           </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn HeaderText="Ticket Detail" DataField="TicketDetail" HeaderStyle-Width="50%">
                                                           </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn DataField="TicketID" UniqueName="TicketID" Visible="false">
                                                           </telerik:GridBoundColumn>
                                                           <telerik:GridBoundColumn DataField="Type" UniqueName="Type" Visible="false">
                                                           </telerik:GridBoundColumn>
                                                       </Columns>
                                                   </telerik:GridTableView>
                                               </DetailTables>
                                               <Columns>
                                                   <telerik:GridBoundColumn DataField="TicketID" UniqueName="TicketID" Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="IsMSSP" UniqueName="IsMSSP" Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="CreatedDate" DataFormatString="{0:d}" UniqueName="CreatedDate"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridTemplateColumn>
                                                       <ItemTemplate>
                                                           <asp:HyperLink ID="hlBookit" runat="server" SkinID="HyperLink" ImageUrl="../Icons/Calendar.gif"
                                                               NavigateUrl='<%# "~/Scheduler/ClientActivity.aspx?TicketID=" + DataBinder.Eval(Container.DataItem, "TicketID") %>'
                                                               Target="_blank"></asp:HyperLink>
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridHyperLinkColumn HeaderText="Ticket #" DataTextField="TicketNumber" DataNavigateUrlFormatString="~/Tickets/AddEditTickets.aspx?TicketID={0}"
                                                       DataNavigateUrlFields="TicketID" Target="Blank" SortExpression="TicketNumber">
                                                   </telerik:GridHyperLinkColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Client<br>Location" SortExpression="ClientName">
                                                       <ItemTemplate>
                                                           <asp:Label ID="ClientName" Text='<%# DataBinder.Eval(Container.DataItem, "ClientName") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Location" Text='<%# DataBinder.Eval(Container.DataItem, "Location") %>'
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="User Name<br>Phone" SortExpression="UserName">
                                                       <ItemTemplate>
                                                           <asp:Label ID="UserName" Text='<%# DataBinder.Eval(Container.DataItem, "UserName") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Phone" Text='<%# DataBinder.Eval(Container.DataItem, "UserPhone") %>'
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Asset Name<br>Item" SortExpression="AssetName">
                                                       <ItemTemplate>
                                                           <asp:Label ID="AssetName" Text='<%# DataBinder.Eval(Container.DataItem, "AssetName") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Item" Text='<%# DataBinder.Eval(Container.DataItem, "Item") %>' runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Priority<br>Status" SortExpression="TicketPriority">
                                                       <ItemTemplate>
                                                           <asp:Label ID="lblPriorityGrid" Text='<%# DataBinder.Eval(Container.DataItem, "TicketPriority") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Status" Text='<%# DataBinder.Eval(Container.DataItem, "Status") %>'
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Ticket Type" SortExpression="TicketType">
                                                       <ItemTemplate>
                                                           <asp:Label ID="TicketType" Text='<%# DataBinder.Eval(Container.DataItem, "TicketType") %>'
                                                               Visible="true" runat="Server" />
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Action<br>Age" SortExpression="ActionDate">
                                                       <ItemTemplate>
                                                           <asp:Label ID="ActionDate" Text='<%# DataBinder.Eval(Container.DataItem, "ActionDate","{0:d}") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="Age" Text='<%# DataBinder.Eval(Container.DataItem, "Age") %>' Visible="true"
                                                               runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Owner<br>Assigned" SortExpression="Owner">
                                                       <ItemTemplate>
                                                           <asp:Label ID="Owner" Text='<%# DataBinder.Eval(Container.DataItem, "Owner") %>'
                                                               runat="Server" />
                                                           <br />
                                                           <asp:Label ID="AssignedTo" Text='<%# DataBinder.Eval(Container.DataItem, "AssignedTo") %>'
                                                               Visible="true" runat="Server" /></ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridTemplateColumn HeaderText="Ticket Status<br>Task Owner" SortExpression="TicketStatusType">
                                                       <ItemTemplate>
                                                           <asp:Label ID="TicketStatusType" Text='<%# DataBinder.Eval(Container.DataItem, "TicketStatusType") %>'
                                                               Visible="true" runat="Server" /><br />
                                                           <asp:Label ID="TaskOwner" Text='<%# DataBinder.Eval(Container.DataItem, "TaskOwner") %>'
                                                               runat="Server" />
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="StatusID" UniqueName="StatusID"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="TicketTypeID" UniqueName="TicketTypeID"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="IsVip" UniqueName="IsVip" Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="RequestedByEmail" UniqueName="RequestedByEmail"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="IsUnique" UniqueName="IsUnique"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="MasterTicketID" UniqueName="MasterTicketID"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn HeaderText="" DataField="IsMasterTicket" UniqueName="IsMasterTicket"
                                                       Visible="false">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridTemplateColumn HeaderText="CC's">
                                                       <ItemTemplate>
                                                           <asp:HyperLink ID="NewControl" runat="server" Visible="True" Text="Add CC" Target="_blank"
                                                               NavigateUrl='<%# "~/Tickets/AddEditTickets.aspx?tab=changeControl&ccid=-1&ticketid=" + DataBinder.Eval(Container.DataItem, "TicketID") %>'></asp:HyperLink>
                                                       </ItemTemplate>
                                                   </telerik:GridTemplateColumn>
                                               </Columns>
                                           </MasterTableView>
                                           <%-- <HeaderStyle Width="100px" />--%>
                                           <ClientSettings>
                                               <Scrolling AllowScroll="false" UseStaticHeaders="true" SaveScrollPosition="true"
                                                   ScrollHeight="100%"></Scrolling>
                                           </ClientSettings>
                                           <PagerStyle Position="TopAndBottom" />
                                       </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Sep 2010, 08:33 AM
Hi Timothy,

The following code library demonstrates how to add borders to a borderers embedded skin (e.g. Default) and how to remove them from a skin with borders (e.g. Office2007).
How to Add or Remove RadGrid Borders

Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Timothy Kruszewski
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or