Posted 03 Nov 2011 Link to this post
<
ClientSettings
EnableAlternatingItems
=
"false"
>
</
Posted 04 Nov 2011 Link to this post
.HeaderwithBorder
{
border-left
:
2px
!important
;
border-left-style
solid
border-left-color
: Red
}
Columns
telerik:GridBoundColumn
DataField
"ID1"
HeaderText
UniqueName
"ID2"
HeaderStyle
CssClass
"HeaderwithBorder"
/>
telerik:GridTemplateColumn
ItemTemplate
telerik:RadDatePicker
ID
"RadDatePicker1"
runat
"server"
telerik:GridDateTimeColumn
"myData"
PickerType
"DatePicker"
telerik:GridButtonColumn
CommandName
"Delete"
Text
"Supprimer"
"column2"
Posted 07 Nov 2011 Link to this post
Thanks Jayesh.
I put the CSS at the Radgrid level and it worked for all columns. <telerik:RadGrid HeaderStyle-CSSclass = "HeaderStyle"> When a template column has to controls the CSS the border is also applied to the controls. Not sure how to resolve this. See the Telerik.png in my previous post. The code is attached below.
FilterControlAltText
"Filter TemplateColumn1 column"
"EffectiveDt"
HeaderText='<%$Resources:WebSQPResource,EffectiveDate%>'
HeaderStyle-Width="150px">
table
style
"width: 100%"
tr
td
"width: 90%"
asp:TextBox
MaxLength
"10"
"txtEffDt"
Text='<%# Bind("EffectiveDate") %>'
CssClass="TextBox" BorderStyle= "None" Width="100%" />
asp:RequiredFieldValidator
"rftxtEffectiveDate"
ControlToValidate
ErrorMessage='<%$Resources:WebSQPResource,ERR_PLC_012%>' runat="server" Display="None" />
"padding-left: 4px"
asp:ImageButton
"imgEffDt"
CausesValidation
ImageUrl='<%$Resources:WebSQPResource,ImgCalendar%>'
ImageAlign="Top" CssClass="calnderimagegrid" />
ajax:CalendarExtender
"calEffDt"
TargetControlID
PopupButtonID
"imgEffectiveDate"
Format='<%$Resources:WebSQPResource,Common_DateFormat%>' />
ajax:MaskedEditExtender
"mskExtEffDt"
MaskType
"Date"
Mask
"99/99/9999"
PromptCharacter
"_"
ClearMaskOnLostFocus
"true"
asp:CompareValidator
"cmptxtEffDt"
ErrorMessage='<%$Resources:WebSQPResource,ERR_PLC_027%>'
Display="None" ControlToValidate="txtEffDt" Type="Date" Operator="DataTypeCheck" />
input
id
"hdnOperationType"
type
"hidden"
value='<%# Bind("OperationType") %>' />
Posted 08 Nov 2011 Link to this post
.RadGrid_Default .rgRow td, .RadGrid_Default .rgAltRow td {
border-width: 0px 0px 1px 1px !important;
.RadGrid_Default .rgAltRow, .RadGrid_Default .rgRow td {
border-color: gray !important;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
color:Black;
border-bottom :1px #D2D2D2 solid;
border-right: 1px #D2D2D2 solid;
padding: 3px;
RadGrid_Default .rgRow td, .RadGrid_Default .rgAltRow td
<div style="width: 100%">
width: 100%"
CssClass="TextBox" BorderStyle="None" Width="100%" />
</div> <div style="width: 100%">
</div>
ajax:calendarextender
targetcontrolid
popupbuttonid
format='<%$Resources:WebSQPResource,Common_DateFormat%>' />
ajax:maskededitextender
masktype
mask
promptcharacter
clearmaskonlostfocus
Posted 01 Apr 2016 Link to this post
Posted 06 Apr 2016 Link to this post