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

GridImageColumn cuts off image

2 Answers 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 18 Jun 2014, 06:40 PM
<telerik:RadGrid ClientSettings-Selecting-AllowRowSelect="True" runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="true"
                                    OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged" OnPageSizeChanged="RadGrid1_PageSizeChanged"
                                    AllowFilteringByColumn="true" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" Width="100%" OnPreRender="RadGrid1_PreRender"
                                    OnItemDataBound="RadGrid1_ItemDataBound" OnColumnsReorder="RadGrid1_ColumnsReorder">
                                    <ClientSettings EnablePostBackOnRowClick="true" AllowColumnsReorder="true">
                                    </ClientSettings>
                                    <MasterTableView AutoGenerateColumns="False" TableLayout="Auto">
                                        <Columns>
                                            <telerik:GridImageColumn AllowFiltering="false" DataType="System.String" DataImageUrlFields="Image" ImageAlign="AbsMiddle" ImageHeight="100px">
                                            </telerik:GridImageColumn>
....

For some reason my GridImageCoulmn refuses to let me place the images where I want them. It always cuts them off (see attached). I have tried every ImageAlign argument and the images do not move at all. It does not center them in the row like I have seen in every example and I cannot find anyone who has a similar issue. 


2 Answers, 1 is accepted

Sort by
0
Charles
Top achievements
Rank 1
answered on 18 Jun 2014, 07:09 PM
It should also be noted that when I change the TableLayout from "Fixed" to "Auto" it does this;
0
Pavlina
Telerik team
answered on 23 Jun 2014, 02:14 PM
Hello Charles,

I took the provided code and test it in a simple page. The grid image column is working as expected with Auto and with Fixed layout. You can find this page attached and check what is the difference on your end. If the problem still persists, specify if it appears only in a specific browser or the issue can be observed everywhere. Also provide the steps we need to follow in order to replicate the same behavior locally.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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