Coder Social home page Coder Social logo

Comments (10)

zweeen avatar zweeen commented on August 22, 2024 17

Same for me. I am using version 17.0.

Thanks @thewilli even if this is a bit ugly it's work.

EDIT :

After some investigation I have found in the doc that putting suppressPropertyNamesCheck
remove all warning messages.

From the doc :

> Disables showing a warning message in the console if using a gridOptions or colDef property that doesn't exist

this.gridOptions = { ... deltaRowDataMode : true, suppressPropertyNamesCheck : true, ... };

from ag-grid-vue-example.

thewilli avatar thewilli commented on August 22, 2024 15

I have the same problem in a web bundled with webpack.

this solved it temporarily for me:

// put this in any .js file that gets loaded before ag-grid is used
import { PropertyKeys } from "ag-grid/dist/lib/propertyKeys";
import { ColDefUtil } from "ag-grid/dist/lib/components/colDefUtil";
// fix wrong property warning
PropertyKeys.ALL_PROPERTIES.push("__ob__");
ColDefUtil.ALL_PROPERTIES.push("__ob__");

from ag-grid-vue-example.

Robyn13 avatar Robyn13 commented on August 22, 2024 5

if you just want the warning removed you can use the supporessPropertyNamesCheck property

this.gridOptions = {
...
suppressPropertyNamesCheck: true
};

from ag-grid-vue-example.

martinmuellerrohde avatar martinmuellerrohde commented on August 22, 2024

Same for every colDef:

ag-grid: invalid colDef property '__ob__' did you mean any of these: valueGetter,children,allowedAggFuncs,menuTabs,pivotTotalColumnIds,cellClassRules,icons,headerGroupComponent

from ag-grid-vue-example.

davidm-public avatar davidm-public commented on August 22, 2024

I have this too.
Decided to ignore it.
As far as I can tell Vue adds that , and removing it just adds overhead. It's not colliding with any similarly named property, ie seems harmless.

from ag-grid-vue-example.

davidm-public avatar davidm-public commented on August 22, 2024

@thewilli thanks, works for me!

from ag-grid-vue-example.

seanlandsman avatar seanlandsman commented on August 22, 2024

In a recent release these warnings (for ob) were suppressed. Please upgrade and see if this resolves the problem.

thanks

from ag-grid-vue-example.

raisiqueira avatar raisiqueira commented on August 22, 2024

Hi! I set the suppressPropertyNamesCheck on my gridOptions, but don't work.

image

from ag-grid-vue-example.

jimmyMaci avatar jimmyMaci commented on August 22, 2024

I have a similar problem
ag-grid-options-wrapper-problem

This caused my problem:

<div style="width: 1000px; height: 500px;">
<ag-grid-angular
  class="ag-theme-material"
  #gridOptionsRight
  [frameworkComponents]="frameworkComponents"
  [columnDefs]="columnDefs"
  [gridOptions]="gridOptionsRight"
  (selectionChanged)="onRightSelectionChanged($event)"
  (gridReady)="onRightGridReady($event)">
</ag-grid-angular>
</div>

The solution was to remove the #gridOptionsRight

<div style="width: 1000px; height: 500px;">
<ag-grid-angular
  class="ag-theme-material"
  [frameworkComponents]="frameworkComponents"
  [columnDefs]="columnDefs"
  [gridOptions]="gridOptionsRight"
  (selectionChanged)="onRightSelectionChanged($event)"
  (gridReady)="onRightGridReady($event)">
</ag-grid-angular>
</div>

from ag-grid-vue-example.

Huiet avatar Huiet commented on August 22, 2024

I actually intentionally added to the colDefs (and have update methods that modify the property I added to the columndefs and updates gridColumnDefs) because I wanted access to a property in my columnMenuTab and it seemed to be a great way to handle it (vs. having something external in my ts code). Ends up being used like:
checked: params.column.userProvidedColDef.sortBy === 'valueToSortBy'

from ag-grid-vue-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.