开发者

commandfield put title attribute on images button

Is possible to set the title attibute on the image buttons of a commandfield?

 <asp:CommandField ShowDeleteButton="True" ButtonType="Image"  ShowEditButton="True" 
                                DeleteImageUrl="images/BPAnn.gif" EditImageUrl="images/edit.gif" DeleteText="Elimina" EditText="Modi开发者_C百科fica"
                                UpdateImageUrl="images/apply.gif" CancelImageUrl="images/undo.gif" />


When you say Title do you mean HeaderText???

<asp:CommandField ShowEditButton="True" HeaderText="Testing" />


If You want Tooltip my suggestion is to convert CommandField to TemplateField.

In Template field you have more options available.


In case someone needs this you can do this for any command. Here it is done for the delete:

<asp:CommandField DeleteText="<i aria-hidden='true' title='Delete Role' class='glyphicon glyphicon-trash'>" ShowDeleteButton="True"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜