How to get data from server in Nativescript gridview? - nativescript

I am able to load data from sqlServer using mat table in angular, but have no clue how to do same in nativescript?. I think GridView will work,but cant find source to load dynamic data.

If GridLayout is what you mean by GridView, it's just layout not responsible for loading data.
If you are looking to load list of items on screen, then ListView is what you need. If you like to show table kind of layout with multiple columns then you must design your item template with a GridLayout.
If you go with RadListView, you have different layouting option too.

Related

Updating ag-grid with new data after new table load with React

I'm using React and I have a navigation component that updates a Redux table state. Based on the table chosen in the navigation, I need the ag-grid to update accordingly.
I have six tables. Three of them have the same column definitions. I'm currently using onNewColumnsLoaded to refresh the data, but because three of the tables have the same column definitions, nothing's loading. I've tried onColumnEverythingChanged and other column options, but again because the columns are the same nothing is happening.
I've tried rowDataChanged, rowDataUpdated, and componentStateChanged, but those refresh the data if I'm scrolling or filtering, so those are not acceptable options.
I've taken a look at this answer, but it's using plain javascript, and this one has a problem in the css, not in the javascript.
What's the best way to have the grid update programmatically based on Redux state variables?
You can check to use immutableData with directly udpate the rowData:
getRowNodeId
method should be implemented as well.
Check the doc for more detail.

How to achieve android Recyclerview kind of functionality in nativescript

Let say i have 100 data in json object, Some data contain Video url, some contains Audio URL, Some data contains Extra table columns with Image Url.
In android i have Recycler View where i will create different fragments UI and based on the condition i'll load the UI and data and display on the listview.
But in nativescript i found only radist view which takes only similar type of data and display the list.
How to Achieve android's RecyclerView kind of functionality in Nativescript.
(Kindly anyone edit my question in a more generic way)
Use ListView or RadListView, both support configuring various templates and assign one to each list item based on conditions.
RadListView has more advanced features / support for various layouts out of the box, it uses RecyclerView on Android, where ListView uses android.widget.ListView.

Store App Dashboard: GridView and Multiple Charts

I'm working on a Store app that consists of several charts. I've already developed the charts and have them rendering using the chart control in the various forms.
I have been asked to bring these together in an app that allows the user to scroll left and right through each of the charts.
Every example I have found for using a GridView data binds the content of the GridView to item templates.
What I'm trying to get my head round is how I could please these chart controls directly in to a GridView.
Any help would be greatly appreciated.
Cheers,
Roy
As per my understanding of the question you need to have charts as items in a grid view.
If this is what you want, I have dome this before using charts from 3rd party toolkit.
You need ( may be variable sized) templates with each item having a different template of its own.
You need a items list with data for all the charts.
Then upon runtime you need to assign the template to each item.

how to show data having multiple row and columns like grid in wp7?

I am doing wp7 application in which i need to show data having multiple rows and columns in it.
I want to know if there is any control like grid or table view which can show data having multiple rows and column. Is there any way to show data having multiple rows and columns?
use Grid.
Here's a blog that seems reasonable : .Net Framework 3.5: Grid In WPF
Here's the official documentation: Grid Class (System.Windows.Controls)
And in general, here's a getting started guide to WP7 development: Create.msdn Windows Phone Development
Cheers

Need MVC3 Razor Grid that loads by JSON/AJAX and has frozen columns

I need a grid on an MVC3 Razor page that will have to load by JSON or AJAX call. I need this grid to be editable as well.
Also I need the grid to have the ability to have the first 6-8 columns frozen. I looked at the example on Codeproject.com and I couldnt get it to work. My scrollbars would show up but couldnt get the columns to freeze.
I have been working on this using Telerik grids, but it doesnt have the ability to freeze columns by default in a razor setting.
Does anyone have any suggestions on how to implement this or where I could look for some more information?
Try jQuery EasyUI http://www.jeasyui.com/documentation/datagrid.php
I did initially suggest jqGrid: http://www.trirand.com/blog/
but apparently it's a faff to get frozen columns using it.

Resources