
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker
asked on 11 Nov 2011, 05:31 PM
Is ther any way to style the update/cancel images in the RadGrid inline-edit mode so that there is more space (padding) between them?
3 Answers, 1 is accepted
0
Accepted

Shinu
Top achievements
Rank 2
answered on 14 Nov 2011, 05:09 AM
Hello Albert,
Try the following code snippet.
C#:
-Shinu.
Try the following code snippet.
C#:
protected
void
grid_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
{
ImageButton cancel = (ImageButton)e.Item.FindControl(
"CancelButton"
);
cancel.Style[
"padding-left"
] =
"70px"
;
}
}
-Shinu.
0

Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 30 Nov 2011, 10:15 PM
What is "CancelButton"? No such control exists.
Here is my commandCOlumn declaration:
Here is my commandCOlumn declaration:
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn"
EditImageUrl
=
"~/global/images/icons/edit.png"
UpdateText
=
"Save Changes"
UpdateImageUrl
=
"~/global/images/icons/save_bottompad.png"
CancelText
=
"Cancel Changes"
CancelImageUrl
=
"~/global/images/icons/cancel_toppad.png"
>
<
ItemStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
CssClass
=
"HoverCursor"
></
ItemStyle
>
<
HeaderStyle
width
=
"30px"
HorizontalAlign
=
"Left"
></
HeaderStyle
>
</
telerik:GridEditCommandColumn
>
0

Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 30 Nov 2011, 10:18 PM
Ahh, I see now its the name you give the cancel button behind the scenes. Please disregard my last post. Thanks!