http://img198.imageshack.us/img198/6192/cssmessedup.jpg
9 Answers, 1 is accepted
Probably a 100% wide RadGrid is placed inside a container with padding. Hence, the observed issue is normal and according to the CSS specification.
Either remove the 100% width, or the padding.
Sincerely yours,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
<%
@ Control Language="VB" AutoEventWireup="false" CodeFile="AddorEditFamilyMember.ascx.vb" Inherits="Member_AddorEditFamilyMember" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
</style>
<div id="accountinfo">
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"
GridLines="None" Skin="Black">
<
MasterTableView AutoGenerateColumns="False" CellSpacing="-1" DataKeyNames="MemberFamilyId"
DataSourceID="SqlDataSource1">
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="MemberFamilyId" DataType="System.Int32"
HeaderText="MemberFamilyId" ColumnEditorID="MemberFamilyIDEditor" ReadOnly="True" Visible="false" SortExpression="MemberFamilyId"
UniqueName="MemberFamilyId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EmployeeId" Visible="false" DataType="System.Int32"
HeaderText="EmployeeId" SortExpression="EmployeeId" UniqueName="EmployeeId">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MemberFamilyNumber" Visible="false" DataType="System.Int32"
HeaderText="MemberFamilyNumber" SortExpression="MemberFamilyNumber"
UniqueName="MemberFamilyNumber">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Allergies" HeaderText="Allergies"
SortExpression="Allergies" UniqueName="Allergies">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Weight" DataType="System.Int32"
HeaderText="Weight" SortExpression="Weight" UniqueName="Weight">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Age" DataType="System.Int32"
HeaderText="Age" SortExpression="Age" UniqueName="Age">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DateOfBirth" DataType="System.DateTime"
HeaderText="DateOfBirth" SortExpression="DateOfBirth" UniqueName="DateOfBirth">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="false" DataField="MemberFamilyCreatedDate"
DataType="System.DateTime" HeaderText="MemberFamilyCreatedDate"
SortExpression="MemberFamilyCreatedDate" UniqueName="MemberFamilyCreatedDate">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="false" DataField="MemberFamilyCreatedBy"
HeaderText="MemberFamilyCreatedBy" SortExpression="MemberFamilyCreatedBy"
UniqueName="MemberFamilyCreatedBy">
</telerik:GridBoundColumn>
</Columns>
</
MasterTableView>
</telerik:RadGrid>
</div>
<
asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:EmployeeScreeningConnectionString %>"
SelectCommand="SELECT [MemberFamilyId], [EmployeeId], [MemberFamilyNumber], [Allergies], [Weight], [Age], [DateOfBirth], [MemberFamilyCreatedDate], [MemberFamilyCreatedBy] FROM [MemberFamilyInfo] WHERE ([EmployeeId] = @EmployeeId)">
<SelectParameters>
<asp:SessionParameter DefaultValue="2" Name="EmployeeId"
SessionField="EmployeeId" Type="Int32" />
</SelectParameters>
</
asp:SqlDataSource>
Generally, in such cases we need a runnable sample in order to reproduce the problem locally and give specific instructions. Runnable samples can be attached to formal support tickets.
Regards,
Dimo
the Telerik team
If you only want to change some minor things in the RadControls' skins, then you can override the embedded skins:
http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx
If you need to make a lot of changes, then it is better to create custom skins:
http://www.telerik.com/help/aspnet-ajax/createcustomskin.html
More help resources on skinning are available in each RadControl's documentation, e.g. :
http://www.telerik.com/help/aspnet-ajax/grdcreatingnewskins.html
Sincerely yours,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I am afraid that your questions are not very descriptive, hence my answers provide general guidelines only. Usually, things are shifted to the left or right with CSS (e.g. by using the text-align and float CSS properties), but you have to specify what exactly.
I have replied to another thread of yours, which contains a related question. If you need further assistance, I recommend you to open a formal support ticket, attach a runnable sample and tell us what exactly is bother you. We will run the sample and give you exact instructions what to change.
Best wishes,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
