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

Disabling X close button from RAD grid popup

5 Answers 351 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
s
Top achievements
Rank 1
s asked on 02 Sep 2011, 11:52 AM
I am using 'RadControls for ASP.NET AJAX Q3' in a Sharepoint 2010 project. The project contains a RAD grid, where a popup is opened and used as a "dialog" for saving data etc. I would like to remove the X close button from this popup, but I am not able to figure out how to do this.

Help would be appreciated.

5 Answers, 1 is accepted

Sort by
0
s
Top achievements
Rank 1
answered on 05 Sep 2011, 07:42 AM
Ok, I solved this by using simple css class solution

 .rgHeader a  
{  
     display:none
}  

0
Pavani
Top achievements
Rank 1
answered on 29 Oct 2014, 12:23 PM
Hi,

          Please let me know how to disable the rad popup window X button a button is clicked inside the popup. For example when i click save button in a popup it is allowing me to close the popup using X button which is an invalid functionality. So please help me to disable the X button client side when i click save button in rad popup window.
0
Eyup
Telerik team
answered on 03 Nov 2014, 09:17 AM
Hi Pavani,

You can access the mentioned close button using the following approach:
function buttonClick() {
    var grid = $find('<%= RadGrid1.ClientID %>');
    var editForm = grid.get_editItems()[0].get_editFormItem();
    var closeLinkButton = $(editForm).find(".rgHeader").find("a")[0];
}

Once you have a reference to the link button, you can simply hide it or check various sources over the net on disabling anchor elements.

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Pavani
Top achievements
Rank 1
answered on 10 Nov 2014, 01:10 PM
Hi Eyup,

              I didn't have any radgrid in my page. I just want to disable X botton of my PopupWindow when i click on save button in that window.
0
Eyup
Telerik team
answered on 13 Nov 2014, 01:34 AM
Hi Pavani,

I'm sending a sample web site to demonstrate how you can prevent the close button action. Please run the attached application and let me know if it helps you.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Sharepoint Integration
Asked by
s
Top achievements
Rank 1
Answers by
s
Top achievements
Rank 1
Pavani
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or