Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    which attribute of listGrid that stop showing hidden field by right click.

    isc.ListGrid.create has multiple fields.Some are visible and some are hidden.The hidden field can be shown by any user by just right click on the visible fields and select the field that user want to see from hidden fields.

    So my question is which attribute should set false that can help to stop the right click process.Thanks in advance.

    #2
    Set canHide:false on any fields you don't want to appear in the column-picker sub-menu - if that's not what you mean, please elaborate.
    Last edited by Isomorphic; 26 Jul 2015, 21:26.

    Comment


      #3
      which attribute of listGrid that stop showing hidden field by right click.

      i had set canHide:falsein isc.ListGrid.create but it didn't work.
      Let suppose we create a listgrid there are multiple columns or field some are visible to user and some are hidden by an attribute (showIf: "false").
      Now when user move the cursor to the field or column of listgrid and right click the mouse there are three option shown
      1.Columns-it contains multiple field ,visible fields are marked and hidden fields are unmarked .if we marked the hidden field then it ll visible to user.
      2.Group By xyz(i.e column name on which cursor is there)
      3.Freeze xyz(i.e column name on which cursor is there)

      i had found two attribute which can hide options Group By xyz and Freeze xyz. attributes are canGroupBy:false and canFreezeFields:false respectively.

      My question is how can we hide "Columns" and by which attribute.

      Please suggest me.

      Comment


        #4
        Yes - set ListGridField.canHide on the *field* definitions, not the grid definition. Like:

        Code:
        isc.ListGrid.create({
            fields: [
                ...
                { name: "ahiddenField", showIf; "false", canHide: false }
            ]
        });
        That will initially hide the field, and then also hide it from the field menu.

        Comment


          #5
          Or, ListGrid.canPickFields: false, if you want to hide the "Columns" menu-item altogether.

          Comment

          Working...
          X