asp.net - Displaying Image in grid -


i'm using radgrid , in grid there buttons imageurl . , in ie8 have problems displaying them correctly (horizontally) , not

enter image description here

so thought should change width of button happen dont know why happening ... have change width 20px 30px

enter image description here

can please me how change normal in every other browser (horizontally both images ...

my code

 <telerik:radgrid id="rggrid" runat="server" datasourceid="sqldatasource1"            allowsorting="true" allowpaging="true" pagesize="20"            allowfilteringbycolumn="true" showstatusbar="true" width="100%"            cellspacing="0" gridlines="none" onitemcommand="rggrid_itemcommand">      <mastertableview autogeneratecolumns="false" datakeynames="organisationid">          <norecordstemplate>              can't find organisations display          </norecordstemplate>        <columns>            <telerik:gridboundcolumn datafield="organisationid" datatype="system.int32"                 filtercontrolalttext="filter organisationid column"                headertext="organisationid" readonly="true" sortexpression="organisationid"                 uniquename="organisationid" visible="false">            </telerik:gridboundcolumn>            <telerik:gridboundcolumn datafield="organisationname" filtercontrolalttext="filter                      organisationname column" headertext="name" itemstyle-width="60px"                      sortexpression="organisationname" uniquename="organisationname">                <itemstyle width="60px" />            </telerik:gridboundcolumn>            <telerik:gridboundcolumn datafield="countryname" filtercontrolalttext="filter                      countryname column" headertext="country" itemstyle-width="60px"                      sortexpression="countryname" uniquename="countryname">                 <itemstyle width="60px" />            </telerik:gridboundcolumn>            <telerik:gridtemplatecolumn uniquename="deletecolumn" itemstyle-width="20px"                      allowfiltering="false"itemstyle-horizontalalign="right"  >               <itemtemplate>                  <telerik:radbutton id="btnedit" commandname="edit" runat="server"                        width="30px" tooltip="view details" height="20px"                        commandargument='<%# databinder.eval(container.dataitem, "organisationid")%>'>                       <image imageurl="~/resources/images/grid/edit-app.png"                            isbackgroundimage="true" />                  </telerik:radbutton>                  <telerik:radbutton id="btndelete" commandname="delete" runat="server"                        width="20px" tooltip="delete vacation"                       height="20px" commandargument='<%# databinder.eval(container.dataitem, "organisationid")%>'>                  <image imageurl="~/resources/images/grid/delete-app.png"                          isbackgroundimage="true" />                </telerik:radbutton>            </itemtemplate>        </telerik:gridtemplatecolumn>     </columns>   </mastertableview>   </telerik:radgrid> 

thanks ans fast answer !!

give class image first:

<image imageurl="~/resources/images/grid/edit-app.png"  isbackgroundimage="true" cssclass="someclass" /> 

add css

.someclass {    background-repeat: no-repeat; } 

as rendered background image.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -