Disabling X close button from RAD grid popup

6 posts, 0 answers
  1. s
    s avatar
    4 posts
    Member since:
    Sep 2011

    Posted 02 Sep 2011 Link to this post

    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.
  2. s
    s avatar
    4 posts
    Member since:
    Sep 2011

    Posted 05 Sep 2011 Link to this post

    Ok, I solved this by using simple css class solution

     .rgHeader a  
    {  
         display:none
    }  


  3. Pavani
    Pavani avatar
    9 posts
    Member since:
    Jul 2012

    Posted 29 Oct 2014 in reply to s Link to this post

    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.
  4. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 03 Nov 2014 Link to this post

    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.

     
  5. Pavani
    Pavani avatar
    9 posts
    Member since:
    Jul 2012

    Posted 10 Nov 2014 in reply to Eyup Link to this post

    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.
  6. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 12 Nov 2014 Link to this post

    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.

     
Back to Top