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

Image column not coming up

2 Answers 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sabyasachi Dechaudhari
Top achievements
Rank 1
Sabyasachi Dechaudhari asked on 26 Apr 2010, 07:25 PM



<telerik:RadGrid ID="grd" runat="server"   
   AllowPaging="True" 
PageSize="20"                
Skin="Vista" 
GridLines="None" 
AllowSorting="true"   
OnExcelMLExportRowCreated="grdBundles_ExcelMLExportRowCreated" 
OnExcelMLExportStylesCreated="grdBundles_ExcelMLExportStylesCreated"   
onsortcommand="grdBundles_SortCommand" 
Visible="true" 
DataSourceID="dsBundleReport" 
OnDataBound="grdBundleReport_DataBound" 
> 
<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric">  
</PagerStyle> 
<ExportSettings> 
<Excel Format="ExcelML" /> 
</ExportSettings> 
<ClientSettings  EnableRowHoverStyle="true" AllowColumnsReorder="true" AllowExpandCollapse="true" >                                               
<Resizing AllowColumnResize="true" ClipCellContentOnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="false" /> 
<Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" ScrollHeight="200px" /> 
</ClientSettings> 
<MasterTableView AllowPaging="true" AllowCustomSorting="true" AutoGenerateColumns="false"   
AlternatingItemStyle-CssClass="alernatingItemStyle" DataSourceID="dsBundleReport" UseAllDataFields="true">  
<Columns>                                                                 
<telerik:GridBoundColumn SortExpression="BenefitId" ItemStyle-Width="100"  HeaderStyle-Width="100" DataField="BenefitId" ReadOnly="true" HeaderText="Benefit Id" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="verdana" HeaderStyle-HorizontalAlign="Center" /> 
   <telerik:GridTemplateColumn     
   HeaderText="Image"     
   UniqueName="Image">    
   <ItemTemplate>    
   <asp:Image ID="Image1" runat="server" src="images/binoculars.gif"/>    
   </ItemTemplate>    
   </telerik:GridTemplateColumn>                                                                   
   <telerik:GridBoundColumn SortExpression="Id" ItemStyle-Width="100"  HeaderStyle-Width="100" DataField="Id" ReadOnly="true" HeaderText="Id" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="verdana" HeaderStyle-HorizontalAlign="Center" /> 
   <telerik:GridBoundColumn SortExpression="Cd" ItemStyle-Width="100"  HeaderStyle-Width="100" DataField="Cd" ReadOnly="true" HeaderText="Cd" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="verdana" HeaderStyle-HorizontalAlign="Center" /> 
   
                                                                
the first column doesnt come up .. any ideas why ? i want to redirect  on click.

2 Answers, 1 is accepted

Sort by
0
Accepted
robertw102
Top achievements
Rank 1
answered on 26 Apr 2010, 07:48 PM
Perhaps the reason the first column doesn't show is because of your column widths. You're not specifying the unit that the width is being entered as, you just put Item-Style-Width="100" instead of something like this Item-Style-Width="100px". I'm guessing that's the reason since your template column doesn't have its width set.
0
Sabyasachi Dechaudhari
Top achievements
Rank 1
answered on 26 Apr 2010, 08:13 PM
Perfect catch .. you saved my day .... surprisingly, other colums come up without the "px"...
Tags
Grid
Asked by
Sabyasachi Dechaudhari
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Sabyasachi Dechaudhari
Top achievements
Rank 1
Share this question
or