asp.net mvc 2 - How to display edit and delete button in same line in Telerik MVC 2 grid? -


i have telerik mvc 2 grid in there command button containing edit , delete buttons. problem edit , delete button not in same line (edit above delete button , row becomes thicker). want edit , delete button in same line row thinner. how it? thanks.

here code,

... .editable(e => e.mode(grideditmode.inline).enabled(true)) ... columns.bound(a => a.personalcoachid) .width(150); columns.command(a => { if (model.editable) { a.edit().buttontype(gridbuttontype.imageandtext); a.delete().buttontype(gridbuttontype.imageandtext); } }) .width(95) .htmlattributes(new { style = "float:left;display:inline;" }); ... 

i found answer surprisingly simple, tricky. change .htmlattributes(new { style = "white-space:nowrap;float:right;" })


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -