Its been weird. I have forced to be veritical align=top to all elements of the grid (built using Templatecolumns) where everything works fine except those template columns which has HyperLink in it. For example,
Where I display or hide either hyperlink column OR the textbox based on the view mode of the grid.
This column, when displaying hyperlink, is a bit off from the top, while other columns which has only label, are well aligned to the top. If I change this hyperlink to the Lable only, then it works fine too. I noticed that few other columns in the grid also have same issue.
I used following CSS to force vertical align = top
Is there something I missing? Please suggest.
thanks,
Sameers
<
telerik:GridTemplateColumn
HeaderText
=
"Qty"
SortExpression
=
"InventoryAvailableQty"
UniqueName
=
"InventoryAvailableQty"
ItemStyle-VerticalAlign
=
"Top"
>
<
ItemTemplate
>
<
asp:HyperLink
ID
=
"hypInventoryMovement"
runat
=
"server"
Target
=
"_blank"
NavigateUrl='<%# "ProductWarehouse.aspx?
ID
=
" & Eval("
ID") %>'>
<
asp:Label
ID
=
"lblInventoryAvailableQty"
runat
=
"server"
Text='<%# eval("InventoryAvailableQty") %>' Visible="false"></
asp:Label
>
</
asp:HyperLink
>
<
asp:TextBox
ID
=
"txtInventoryAvailableQty"
Width
=
"30"
runat
=
"server"
Text='<%# eval("InventoryAvailableQty") %>'></
asp:TextBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Where I display or hide either hyperlink column OR the textbox based on the view mode of the grid.
This column, when displaying hyperlink, is a bit off from the top, while other columns which has only label, are well aligned to the top. If I change this hyperlink to the Lable only, then it works fine too. I noticed that few other columns in the grid also have same issue.
I used following CSS to force vertical align = top
tr.rgRow td, tr.rgAltRow td
{
vertical-align: top;
}
Is there something I missing? Please suggest.
thanks,
Sameers