locked
How to Hide Columns In the View in sharepoint While Editing. RRS feed

  • Question

  • Hi,

    Kindly Any 1 can Explain How to hide Columns,Sort,Filters,... Except Name While Editing a View For a List.

    Monday, May 7, 2012 9:27 AM

Answers

  • Hi,

    it is possible to hide/ remove this fields from the HTMLDom by using JavaScript / jQuery. So you can check with jQuery whether the url contains a specific aspx page or ID. Afterwards remove your fields. 

    For Example:

    if(document.location.href.indexOf("ViewEdit.aspx?List=") != -1) {
     $("#onetidIOViewName").parent().parent().parent().hide();
    } else {
    }

    Result:

    I hope it helps you :-)


    Falco - http://www.msscorner.de



    Monday, May 7, 2012 4:00 PM