Giter VIP home page Giter VIP logo

Comments (9)

ceolter avatar ceolter commented on May 18, 2024 2

do you have 'angularCompileRows=true' set in the gridOptions?

from ag-grid.

vincentvanderwalt avatar vincentvanderwalt commented on May 18, 2024

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.

ceolter avatar ceolter commented on May 18, 2024

Great you got it sorted!! To be honest, I had very little to go on with the above!

from ag-grid.

greglockwood avatar greglockwood commented on May 18, 2024

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.

ceolter avatar ceolter commented on May 18, 2024

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.

vincentvanderwalt avatar vincentvanderwalt commented on May 18, 2024

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.

ceolter avatar ceolter commented on May 18, 2024

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.

rajgopalk avatar rajgopalk commented on May 18, 2024

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.

Bhawna14 avatar Bhawna14 commented on May 18, 2024

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)

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.