Jump to content

How to remove the refresh button in UniDBGrid?


Sherzod

Recommended Posts

Hi,

 

Put this code on UniDBGrid->ClieantEvents->onAfterRender

 

 

function OnAfterrender(sender)
{
       var a = Ext.query("button[data-qtip=Refresh]"); 
        for(var x=0;x < a.length;x++)
        {
           a[x].style.display="none";            
        } 
} 

 

Regards

Link to comment
Share on other sites

 

Another method:

function OnAfterrender(sender)
{
  sender.dockedItems.items[1].items.get('refresh').hide();
}
 
Thank you very much Farshad, your method is universal, since it is not associated with regional titles (eg Refresh - Обновить)
Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...