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

radgrid column width in the tooltip

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 03 May 2011, 04:12 PM
Hello,

I have a tooltip inwhich radgrid is embaded. I observed image column width is too big. though the column width is fixed to 2% its not reducing. Is there any other way to reduce the column width ?

<telerik:RadGrid ID="rg_tt_CSMD_Backlog_By_Status_FL" runat="server" AllowSorting="false"
GridLines="None" AllowPaging="true" BorderStyle="NotSet" Height="99.9%"
Width="99.9%" OnNeedDataSource="rg_tt_CSMD_Backlog_By_Status_FL_NeedDataSource"
OnItemDataBound ="rg_tt_CSMD_Backlog_By_Status_ItemDataBound" AutoGenerateColumns="false" HeaderStyle-Wrap="false">
<MasterTableView DataKeyNames="CASES" CommandItemDisplay="None" TableLayout="Auto"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="imageCol" HeaderStyle-Width="2%" >
<ItemTemplate>
<a href="../CustomerSupport/CaseViewer.aspx?ID=<%#Eval("CASES")%>">
<asp:Image ImageUrl="~/Images/case.png" ID="imgTest" runat="server" BorderWidth="0px" />
</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="CASES" HeaderText="CASE" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="10%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="imageappSerial" HeaderStyle-Width="2%">
<ItemTemplate>
<a href="../AccountManagement/ProductViewer.aspx?ID=<%#Eval("SERIAL")%>">
<asp:Image ImageUrl="~/Images/server_database.png" ID="imgTest" runat="server" BorderWidth="0px" />
</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="appSERIAL" HeaderText="SERIAL" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="10%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SITE" HeaderText="SITE" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="35%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SUMMARY" HeaderText="SUMMARY" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="48%"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
</ClientSettings>
</telerik:RadGrid>

Tooltip code:
<telerik:RadToolTipManager ID="ttm_CSMD_Backlog_By_Status_FL" runat="server" EnableShadow="true"
Animation="Resize" HideEvent="ManualClose" Height="70" Width="75" OnAjaxUpdate="OnAjaxUpdate"
Position="BottomCenter" RelativeTo="Element" OffsetY="0" OnClientResponseEnd="OnClientResponseEnd">
</telerik:RadToolTipManager>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 May 2011, 05:49 PM
Hi Prayag,

You can remove the cell padding from the desired column, which will result in a better look:
CSS:
div.RadGrid_SkinName .rgRow td,
div.RadGrid_SkinName .rgAltRow td,
{
  padding-left:0px;
  padding-right:0px;
}

Give it a try and let me know how it goes.

All the best,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or