Image column not coming up

3 posts, 1 answers
  1. Sabyasachi Dechaudhari
    Sabyasachi Dechaudhari avatar
    18 posts
    Member since:
    Jan 2010

    Posted 26 Apr 2010 Link to this post




    <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. Answer
    robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 26 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sabyasachi Dechaudhari
    Sabyasachi Dechaudhari avatar
    18 posts
    Member since:
    Jan 2010

    Posted 26 Apr 2010 Link to this post

    Perfect catch .. you saved my day .... surprisingly, other colums come up without the "px"...
Back to Top