Show list items in AngularJS ng-grid

retrieving SharePoint list items by REST with
var app = angular.module('myApp', ['ngGrid']);
app.controller('MyCtrl', function ($scope, $http) {
$http.get('http://whereever/_api/web/lists/getByTitle("Tasks")/items').success(function (data) {
$scope.items = data;
$scope.gridOptions = {
data: 'items',
columnDefs: [
{ field: 'Title', displayName: 'Title' },
{ field: 'Status', displayName: 'Status' }
the ng-grid on
<div ng-controller="MyCtrl">
<div class="gridStyle" ng-grid="gridOptions"></div>
</div>
just shows nothing. A simple json example like 
http://plnkr.co/edit/UndbtO?p=preview works. Is there any example showing me how to use a REST call on a SharePoint list and passing data to ng-grid?

Hi Rajendra, thanks for your answer.
the ng-app is included
your link does not help because there is no
angular ng-grid inside. The example uses expressions like
{{customer.Title}} to show content. This works generally as a test that data is retrieved.
But I got it to work with
var myAngApp = angular.module('myApp', ['ngGrid']);
myAngApp.controller('MyCtrl', function ($scope, $http) {
$http({
method: 'GET',
url: "http://whereever/_api/web/lists/getByTitle("Tasks")/items",
headers: { "Accept": "application/json;odata=verbose" }
}).success(function (data) {
$scope.items = data.d.results;
}).error(function (data, status, headers, config) {
console.log(status);
$scope.gridOptions = {
data: 'items',
columnDefs: [
{ field: 'Title', displayName: 'Title' },
{ field: 'Status', displayName: 'Status' }

Similar Messages

  • How to show list items in html page design?

    Hi all,
    I have a SharePoint list with column Title, Logo, Project Summary, Project Description and would like to show list items in html table design like:
    How to achieve this? thanks in advance!

    As per my understanding, You want to just redesign your list form. You can achieve the same using SPD2010 or you can use jQuery also if you don't have rights for SPD customization.
    Create
    a custom list form using SharePoint Designer
    SharePoint
    form: present fields side-by-side
    Thanks.

  • How to show SharePoint list items in tab view?

    Hi All,
    I would like to show list items in tab or metro tiles like:
    How to achieve this?
    Thanks in advance!

    Hi Sam,
    you can either use third party controls or create your own using JQuery / Javascript-
    my preference is JQuery UI.
    here are some references-
    http://summit7systems.com/tabbed-web-parts-in-sharepoint-2013-office-365/
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-2010-at-Work-SharePoint-2010-Tab-Page-Peter-Allen.aspx
    http://sympmarc.com/2011/11/09/adding-a-tabbed-view-to-a-web-part-page-using-jqueryui/
    http://kyleschaeffer.com/sharepoint/wp-tabify/
    Metro Style -http://dellakin-smith.com/sharepoint-2010-a-simple-metro-style-dashboard/
    http://www.metaengine.com/2012/03/SharePoint-menu-web-part-with-Metro-style-using-a-DVWP
    Third party - http://www.amrein.com/apps/page.asp?Q=5806 
    note: i dont work for amrein or endorse their product, this product was suggested since it gets has functionalities that you are looking for.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Open a list item automatically

    Hi,
    I am using forms 10g. Is there anyway to show (open) the list item automatically when the input cursor or focus moves to the list item field?
    Thanks in-advance!

    HI
    if u wanna hide show list item or any text item then use
    set_item_property('itemname',visible,property_false);
    Rizwan

  • HT2531 Spotlight lists items and shows preview images.  BUT what about showing the location address of an item in my computer. Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS 10.5 was more u

    Spotlight lists items and shows preview images.  BUT what about showing the path/location address of an item in my computer.
    Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS X 10.5 was more useful.
    Old OSX Spotlight function automatically displayed path/location within the machine:  e.g. desktop/folder/sub-folder/item.
    Can I make Spotlight show the path?

    Press option-command and the path is displayed at the bottom of the little preview window.  Press command-return and the enclosing folder opens. 

  • How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    Thanks. That solved it. I had my doubts since I wasn't concerned about my lost bookmarks. I was concerned about the broken functionality. In any event, restoring from a backup solved both the functionality and the lost bookmarks. I appreciate the response!

  • Items to display in list view web part not showing the items setup

    Hi, I have the following issue. I have a list view web part, but the web part is showing more items that the ones setup in the: Number of items to display in list view web part for this view.
    It is because that works when using datasheet view and not a normal view? Is there any technical documentation from Microsoft supporting this?

    thank you for your answer. It is interesting that the mobile view with the items to show in the mobile view doesn't work in the webpart, but it works when you are using datasheet view, but if you uncheck to activate the mobile view, then, the webpart doesn't
    show information, so, it works partially because one part works and not the other.

  • How to show desired value in list item, when form starts?

    Hello.
    I have list item with values:
    April 2006
    May 2006
    June 2006
    July 2006
    August 2006
    September 2006
    When the form starts, i want to show in my list item current month (August 2006). And when i open list item above list would appear with August 2006 selected.
    How can i do that?
    Thanks.

    Hi Dejan,
    What you have to do is the following:
    After populating your list, write some code similar to what I have given here.
    FOR n IN 1..nCnt LOOP
    IF Get_list_element_value('list', n) = To_char(sysdate, <date format for the current month n year> THEN
    :list := To_char(sysdate, <date format for the current month n year>
    RETURN;
    END IF;
    END LOOP;
    :list := NULL; -- in case nothing matches
    You can use this in WNFI trigger and wherever necessary.
    Check whether this solves your problem
    Warm Regards,
    Raja.

  • Remove "(More Links...)" from List View Webpart if the list view shows all items

    Hi, I currently have 5 links lists out of which 4 links lists have around 30 odd list items and the rest 1 have just 3 list items. All of this links list are added as ListViewWebPart on a wiki page. All these listview web parts are configured for "Summary
    Toolbar"  and show all the items within the list. 
    My question is, even if the listview web parts are configured to show "All Items" why is it that the ListViewWebPart shows "More Links" on the bottom of the web parts? Is there any OOB way to remove it. I don't want to customize using SPD nor i want to export
    web parts. 
    Thanks, Mayur Joshi

    This, right here, is an example of one of the most annoying things about Microsoft. On the one hand, Microsoft keeps pushing code-free solutions; they want to make it easier and easier for "Content Managers" to manage their own SharePoint sites, Excel spreadsheets,
    etc. etc. without having to bother developers. I am with them on this, to a point. However, they also want to HARD-CODE their options so you HAVE TO USE an OOTB solution to hide it! What is wrong with letting us change the settings of the Web Part, or the
    View, to turn off "More Links"? Why do I have to go to JQuery, or SharePoint Designer? WHY??? Give us an OOTB solution for things like this!
    UPDATE: Here is a fix, but it does require CSS. Add a Content Editor Web Part with this code. The (More Links...) and (More Announcements...) tags both use the id "onetidMoreAnn". You can then export the CEWB as a Web Part and drop it on every page. 
    Again, I would like an OOTB solution, but this will have to do.
    <style>
    #onetidMoreAnn
    DISPLAY: none
    </style>

  • Greek Text not showing correctly in a List Item

    I cannot get the Greek text to show correctly in a List Item (poplist). My NLS_LANG is set correctly - text items and display items show Greek just fine. I have tried changing fonts ... to no avail. Anybody have any ideas?

    Try: Store | Check for Available Downloads

  • Showing updated items from two lists ?

    Hi SharePoint Experts,
    I have created two custom lists in top level site, For accomplishing my task, I have used DataView to show all items from the two lists order by modify. Of course, this DataView webpart showing data but which is not in proper way.
    And also show status column from workflow which is actually from different groups.
    Is dashboards  suitable to my task? Is dashboards capable to show data from two list ? also status column from workflow.
    Appreciate if any suggestions..
    Thank you.

    Hi,
    As you are using SharePoint 2013 you can use the Content search web part to display the data from multiple list.
    Please refer to the similar post, which has detailed steps how to use the content search web part.
    http://sharepoint.stackexchange.com/questions/112085/how-to-get-data-from-multiple-table-or-list-in-sharepoint-2013
    If you still persists to use the Dataview web part, please refer to the following article.
    http://sp2013.blogspot.de/2013/11/two-sharepoint-lists-in-dataview-linked.html
    Please don't forget to mark it as answered, if your problem resolved or helpful.

  • Drop Down In List From Lookup Does Not show all items in mobile view

    I have list called "incident".
    I have a list called "locations"
    The "incident" list looks up a value from the "location" list as a dropdown.
    The location list contains 25 building names.
    When I try to fill out the "incident" list in mobile view
    the "location" drop down only shows 16 items. I checked the "locations" mobile view limit and set it to 99 to make sure all would show up.
    The desktop view for the "incident" list shows all 25 buildings from the "locations" list.
    Any advice on how to get those extra 7 locations to show up?
    Jef

    Still don't have an answer. I'm now looking to use a radio button or something to use as a work-around. If I use a lookup and tell it to allow multiple selections (shows as checkbox) it does not show all values in the mobile view.
    If I input each item and choose choice, it only shows up as dropdown. I need radio buttons. If I choose lookup and allow multiple selections, it does not show all the options.
    I need some help on this.
    Jef

  • "ADF Navigation List" does not shows all items that are in table

    Hi
    Thank you for reading my post
    I am tring to use "ADF Navigation List" , (it can be draged from data control platte into a form)
    but when i drag and drop it on my form it does not shows all items that are available in my table ?
    it just shows 10 item when i have 60 record in my Table.
    Thanks

    Hi,
    in the pageDef ile, select the iterator for this list and set the fetch size to -1 (its 10 by default)
    Frank

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • How to override Approve button for list item?

    Hello,
    Is there a way how to override the method that runs after list item is approved / rejected? I know there is a way for the Save button but I can't find how to do it for the Approve button.
    I have a list with approval and workflow. Then I have a page that displays the items from the list in my webpart in a calendar/grid way. The items in the webopart have links leading to the display form with the item ID and Source parameters. Source parameter
    leads back to this page. The background color of the item in the webpart is decided by the approval state of the item.
    When user approves the item and the item form closes user is then sent to the page with the webpart (via the Source parameter) but the workflow takes couple of seconds more to process the aproval so the color is not changed when the webpart renders but if
    the page is refreshed it shows the correct color because the workflow has finished.
    I want to override the Approval method, let it update the item so the workflow can fire and process the approval, delay the form a bit and then continue as usual so when the user is redirected to the webpart page it would render with the correct state.
    I can make a delay page that redirects to the webpart page and change the Source parameter in the items link to go there but it doesn't look that great.
    Or maybe there is a way how to do it in Javascript? I am using it in the new item form using the SP.UI.ModalDialog.showModalDialog(options) function where the dialogReturnValueCallback refreshes the windows after 3 seconds.
    dialogReturnValueCallback: function(dialogResult) {
            if (dialogResult == SP.UI.DialogResult.OK) {
             setTimeout(function(){window.location = "MyPageUrl"}, 3000)
    Thanks for any tips and ideas!

    you can try to achieve this via separate responsibility by personalizing the form by display false on the particular control button..

Maybe you are looking for

  • How can reset/delet domain passwaord cache in local machine

    Dear concerns, I am using a windows 8 operating system, I am member of a domain. Also I am a local administrator of my laptop. I also have made image of my system drive. Yesterday my windows got stuck and its giving errors regarding  startup applicat

  • Customer & vendoar Trial balance under Business Area Wise

    Dear Experts,                       Pls tell me the T.code for Customer & vendor Trial balance under Business Area wise. I am ready to assign full points. Thanks & Regards avudaiappan

  • Segment in Obiee 11g

    Hi All, i am working on OBIEE 11.1.1.5 , in that Marketing-> segment. I don't have idea about segment, how to work on segment. when i select segment then it show-> select target level. how to create target level or it is default created by BI. Please

  • 'select content delta' option in bw statistics installation?

    What is the significance of 'select content delta'? I am trying to install bw statistics datasources from business content.  In the document link given below it is specified to use this option. when I am using that option and trying to install it is

  • Current service pack level, hot fix applied?

    Post Author: anwest75 CA Forum: Administration I am new to my company and would like to verify what service pack and hot fix(es) they have applied so that I can make sure they are current.  Is there any way to tell? Running BOE XI R2 on Windows Serve