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

Remove pop-up edit form's titlebar "X" and fixed positioning

4 Answers 328 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 13 Jul 2010, 10:14 PM
Hello, I'm new to RadControls, I'm trying to see if there's a way to use CSS to remove the close icon "X" from the title bar of the edit form pop-up window?  I also want to position the pop-up edit form in the center of the screen below the grid and prevent users from moving it around.  Are there any built-in options within RadControls that I can use to accomplish these stylings?  Thanks in advance.

UPDATE: Forgot to mention that I'm using a custom edit form template.

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 14 Jul 2010, 07:04 AM
Hello Richard,

Add the following CSS on page in order to hide the the close button in popup form.

CSS:
<style type="text/css">
    .rgHeader div
    {
        display: none !important;
    }
</style>

The following documentation will help you to position the pop-up window of RadGrid.
Center PopUp edit form in RadGrid


Regards,
Shinu.
0
Richard
Top achievements
Rank 1
answered on 15 Jul 2010, 05:18 PM
Thanks Shinu, we decided to use the RadGrid with a RadWindow as an editor for more flexibility.  I'll make sure to keep this solution handy for future projects though, thanks again.
0
Nick Smith
Top achievements
Rank 1
answered on 13 Jan 2013, 05:04 PM
This also hides the caption, how do you hide the close button but keep the caption?
0
Shinu
Top achievements
Rank 2
answered on 14 Jan 2013, 05:16 AM
Hi Nick Smith,

I tried adding following style in order to hide the close button in popup editform. Give a try with this.

CSS:
<style type="text/css"
.RadGrid_Default .rgEditForm .rgHeader a 
     display:none !important
</style>

Regards,
Shinu.
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Richard
Top achievements
Rank 1
Nick Smith
Top achievements
Rank 1
Share this question
or