I am trying to get a tree view working in angular ui-grid. However I always get the error that the template for the treeViewRowHeader cannot be found.
In the example there is no such template and no call is made to the server for this template.
Anyone know where/how i should specify this template?
BTW: Using RC21
Sorry, stupid mistake in using the wrong css file for angular grid.
Related
anybody fights with a rebellious html file?
i.e. how to reference a file on ng-grid columnsDef CellTemplate .Net MVC directory structure? I have followed ng-grid site examples but I hadn't be able to make it work. If I put html code inside js file it works fine.
I'm trying to put the file everywhere but it doesn't find it.
Thanks in advance.
I will respond to myself.
After looking for cellTemplate inside ng-grid.js I saw that it was called to a get ajax function, then I thought that what I was needing was an Action in my MVC Controller that response the partial view I needed.
In cellTemplate property of my angular controller I only put the call to MVC Controller and 'voilĂ '... It works!!!
I am new to angular and it seems very interesting
I am creating a template for a promotional page and struggling to understand what is causing an issue on it - half of the script stopped working...
My fiddle is in here see >
fiddle example
or Plunker
I have working example without route...
Can you advice me how to fix this issue please
First of all, i'd suggest you to separate your project to different files based on best practises
Secondly, 'config, controller, factory' etc are methods of angular.module object. So you need to retrieve it first like
angular.module('<moduleName>').config(...)
or use some variable.
http://plnkr.co/edit/CK5R2cS7Zd9T9Kun9Epc?p=preview
I have seen a few posts on how to create directives and controllers. However I am looking for something as simple as possible. Does anyone have any experience with creating some simple HTML code that allows me to use CKEditor. In particular the one thing I am not sure of is how to bind the editor contents to the model when I am using AngularJS.
Below is the link please check it
https://github.com/esvit/ng-ckeditor
if you are interested in tinymce it is available in angularUI below is the link
https://github.com/angular-ui/ui-tinymce
I've probably done a silly mistake, but I'm unable to understand why I get this error, or how I can resolve it (or even if it's something I should resolve...)
Anyway I've made a plnkr:
http://plnkr.co/edit/pTMgRq33iWBiiBY4apTr?p=preview
Problem explained:
Using: JQuery, AngularJS, KendoUI and angular-kendo.
Have two Angular views, one with a KendoUI grid.
When navigating away from the view containing the grid, I get this error:
Cannot call method 'destroy' of kendoDropTarget before it is initialized
Hoping for anyone understanding this, and able to explain it to me. :-)
This is being tracked in the Angular-Kendo github project as a bug:
https://github.com/kendo-labs/angular-kendo/issues/66
My full code is at:
http://plnkr.co/edit/6EQFXL?p=preview
The "delete row" and "delete column" buttons are dynamically created. Right now when I click on them nothing happens. How can I get them to run the corresponding handlers? Is there a better way to do what I am trying to do (make a resizable and editable grid)?
Main Issue
The problem is that your creating the html for the button without compiling it through angularjs. You could just send this through the $compile service to get it to work but that's not the angular way. The better option would be to create a directive for tbody and put code there either as a template or in the compile phase of the directive. There's a great video by Misko Henvrey (lead engineer from angular) about creating directives at http://www.youtube.com/watch?v=WqmeI5fZcho. Also you might want to check out the ng-grid created by the angular-ui team at https://github.com/angular-ui/ng-grid to get an idea of how to put together a semantic grid component.
Side Issue
When trying to think in angular you really need to start thinking of the functionality you need and architecting a solution for the functionality (e.g. the directive (s)). What you've done in this question instead is thinking the traditional javascript way (nothing wrong with that in general), which is to say ok I'm limited by what html gives me and I need to tie my javascript in to the stuff I'm given through hooks on classes and ID's. I highly recommend taking a look at "Thinking in AngularJS" if I have a jQuery background? to get a more complete view of angular vs jquery/traditional javascript.