Comments (9)
do you have 'angularCompileRows=true' set in the gridOptions?
from ag-grid.
Yes I did.
However I forgot to add the function to the scope of the cell.
Like this
params.$scope.groupClick = vm.groupClick;
So in the end it was user error :-)
Thanks for the reply.
from ag-grid.
Great you got it sorted!! To be honest, I had very little to go on with the above!
from ag-grid.
I wonder if it is worth adding in detection for when a user returns markup that uses obvious Angular directives (e.g. ng-click
, ng-repeat
and so on) without having the correct option enabled.
If you do detect it, you could log something to the console to warn the developer of their likely mistake.
You'd probably need a way to disable that warning via code, though, in case you did it deliberately. Perhaps a provider method or property?
It might make it more user friendly for new developers and cause you to spend less time dealing with GitHub issues like this one. :-)
On 22 Apr 2015, at 6:12 pm, Niall Crosby [email protected] wrote:
Great you got it sorted!! To be honest, I had very little to go on with the above!
—
Reply to this email directly or view it on GitHub.
from ag-grid.
interesting idea. as more people use, am sure more people will be asking the same newbie questions. i was thinking of having the angularCompile the other way around - have it on by default, and property to turn it off. or just provide a FAQ section, that would be the top question in the FAQ!!
from ag-grid.
Personally I like the fact that it's off by default. It's stops unnecessary bloat being loaded. Specially if like me some of the grids are preloaded with data and don't need any interaction.In short if I want to use angular I'll switch the flag on.
The unclear bit was not realizing how important the params.$scope was. Because from the grid cell you don't have access to the controller scope unless you inject it into the params.$scope part.
Again what's nice is that I'm only injecting what I need. No unnecessary bloat.
I'm really impressed by how you're approaching the development of this module.Well done and I look forward to all the features coming.
from ag-grid.
Hadn't really thought about the impact of the grid using an isolated scope.
I can appreciate people would want it non-isolated. Or maybe have that as
an option. Especially given Angular Grid doesn't put anything into the
scope, so won't dirty it.
What does ng-grid do?
On 22 April 2015 at 12:50, vinnytheviking [email protected] wrote:
Personally I like the fact that it's off by default. It's stops
unnecessary bloat being loaded. Specially if like me some of the grids are
preloaded with data and don't need any interaction.In short if I want to
use angular I'll switch the flag on.The unclear bit was not realizing how important the params.$scope was.
Because from the grid cell you don't have access to the controller scope
unless you inject it into the params.$scope part.Again what's nice is that I'm only injecting what I need. No unnecessary
bloat.I'm really impressed by how you're approaching the development of this
module.Well done and I look forward to all the features coming.—
Reply to this email directly or view it on GitHub
#85 (comment).
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Statements and opinions expressed in this e-mail may not
represent those of the sender. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender immediately and delete
the material from any computer.
from ag-grid.
ng-click is working fine.i need to pass another field value in one column.my code is
{
headerName: "Claim No.", field: "claimNumber", width: 100,enableRowGroup: true,filter: 'number',
cellRenderer: function (params) {
if (params.value != undefined) {
return '<span title="Claim No" class="dummylink " ng-click="ClaimIdClickEvent(' + params.data.ClaimID. + ')">' + params.value + '';
}
else {
return "";
}
}
},
initially it is working fine. suppose if iam doing grouping, it shows error like ClaimID is undefined or null reference. i dont know why it is coming.
from ag-grid.
Hi All,
Can anyone help here, this click on callrenderer is not working for me... I am using ag-agrid. please help
this.myImageCellRenderer = function(rowEntity) {
return '<a style="cursor:pointer" (click)="alert("im working");" href="#modalArcMsg">✉';
from ag-grid.
Related Issues (20)
- Data validation value getter
- Cell editing HOT 1
- Ag-grid filters unlimited options - Need Help HOT 1
- Text colour artifacting when Grid is used within flex/grids HOT 1
- excel export check style name is valid
- AG Grid: Expand row to top HOT 1
- Cell editing HOT 1
- Reopen issue 7854 HOT 1
- Ag-Charts in Vue 3: Broken and Lacking Support HOT 5
- Stumped - Cannot Access API Methods in React Using gridRef HOT 1
- Style injection and shadow DOM
- Nested data for Tree data
- The getValue() method can't be found when the custom component is deployed to the server, but it can be found when run locally HOT 1
- Populate multiple selected cells with one value HOT 1
- Incorrect Checkbox Icon Rendering for Boolean Values in Grouped Columns
- Setting the Row height looses centering of the text
- <ag-grid-angular> switch between [treedata] HOT 1
- Update a cell that is currently being edited [32314]
- A bug occurred when the Paid Enterprise filter was searched remotely HOT 1
- Issue with the theme builder generated css file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ag-grid.