Friday, April 17, 2015

Remove refresh icon from Grid

Remove refresh icon from below Grid.




Step 1 : 
              $("#YourGridName .t-icon").attr('href', '#');

Step 2: 
             $("#YourGridName  .t-icon").removeClass("t-refresh");

By above two steps refresh icon of your grid will be removed.



Monday, February 10, 2014

Read Checkbox Value using Jquery

How to read Check box value using  J Query?

<input type="checkbox" id="testCheckBox"  />
 
$("#testCheckBox").prop('checked')


 
 

Tuesday, March 19, 2013

SharePoint Loading Message Box



How to use SharePoint Loading Message Box?
 
For e.g.

<asp:Button ID="btnTest" runat="server" Text="Test" Width="75px" OnClientClick="javascript:SP.UI.ModalDialog.showWaitScreenWithNoClose
('Please Wait', 'Please wait as this may take a few minutes...', 76, 330);" />

 

You need to add SP.UI.ModalDialog.showWaitScreenWithNoClose with parameters which you need to supply.



Below dialog will get displayed




Parameters to be passed.
 
SP.UI.ModalDialog.showWaitScreenWithNoClose (Title, Message , Height , Width


Title - Title of the dialog box (e.g. Please Wait).

Message – Message to be passed inside the dialog box (e.g. Please wait this may take few minutes…).

Height – Height of the dialog box (integer value e.g. 76).

Width – Width of the dialog box (integer value e.g. 330).