Forum Discussion

Jimmy_Mc's avatar
Jimmy_Mc
Copper Contributor
Jan 09, 2024
Solved

Edit in Gridview has moved

This morning we experienced that Edit in Grid view has moved from 2nd place in the command bar to being hidden after the ...

 

What can I do to move it back? 

I have followed the information here, but all I manage to is change the position after ... and not in the main command bar.

https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting

 

Any ideas?

  • Still don't know why it changed, but thats life in a cloud world. I managed to make it work by adding "sectionType": "Primary", "commandBarProps": { "commands": [ { "key": "editInGridView", "iconName": "EditTable", "primary": false, "position": 1, "hide": false, "sectionType": "Primary", "pinToQuickAccess": true }

10 Replies

  • Jimmy_Mc's avatar
    Jimmy_Mc
    Copper Contributor
    Still don't know why it changed, but thats life in a cloud world. I managed to make it work by adding "sectionType": "Primary", "commandBarProps": { "commands": [ { "key": "editInGridView", "iconName": "EditTable", "primary": false, "position": 1, "hide": false, "sectionType": "Primary", "pinToQuickAccess": true }
      • VictorGTJP's avatar
        VictorGTJP
        Copper Contributor

        sakirkarakaya the changes are made in the View Menu "All Documents > Format current view > Advanced Mode 

        {
          "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
          "commandBarProps": {
            "commands": [ {
                "key": "editInGridView",
                "iconName": "EditTable",
                "primary": false,
                "position": 1,
                "hide": false,
                "sectionType": "Primary"
              } ]
          }
        }
  • Jimmy_Mc's avatar
    Jimmy_Mc
    Copper Contributor

    Jimmy_Mc 

     

    I have managed to remove everything we don't need, but it still hides Edit and Export to Excel behind the ...     Why????

  • As of just now, it's still in the same place for me, with an E5 Dev environment. From David's response, perhaps there is something new coming that hasn't reached TR yet.
  • Hello Jimmy_Mc 

     

    it's a very new change, it may take a moment before all the functions are compatible with the new change.

     

    Best, Dave

    • Jimmy_Mc's avatar
      Jimmy_Mc
      Copper Contributor
      Where did you find info about the change? Are you saying that you think the editing the view in JSON will work, and that I just have to be patient?

Resources