This is a migrated thread and some comments may be shown as answers.

Spacing between Update & cancel link button on radgrid edit pop-up window

1 Answer 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raja Rajeswari Mohan Venkataraman
Top achievements
Rank 1
Raja Rajeswari Mohan Venkataraman asked on 20 Jul 2011, 06:17 PM
Hi,

On clicking edit button in the Radgrid I have a pop-up window. I would like to increase the space between the Update & Cancel link button. 

I'm able to do the spacing if the edit form is created using <FormTemplate></FormTemplate>

But I would like to increase the spacing when there is no edit form created. Is there anyway I can do that.

Thanks,
Raji

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Jul 2011, 06:34 AM
Hello Raji,

You can move the Cancel button by accessing the button in ItemCreated event and set style accordingly.

C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
      if (e.Item is GridEditableItem && e.Item.IsInEditMode)
      {
          LinkButton cancel = (LinkButton)e.Item.FindControl("CancelButton");     
          cancel.Style["color"] = "blue";
          cancel.Style["margin-left"] = "700px";
      }
}

Thanks,
Princy.
Tags
Grid
Asked by
Raja Rajeswari Mohan Venkataraman
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or