Sortable table in nativescript (angular2) - user-interface

I want to port a piece of UI I've already coded in an angular2 webapp into a nativescript (angular2) app for android/iphone.
The angular2 web app has a scrollable table with sortable columns and the results in the table can also be filtered via a text input. Here is a screenshot:
How would you build a scrollable, sortable table like this in nativescript?

Related

how to create a table in React Draft WYSIWYG

how do I create a table in React Draft WYSIWYG, I'm trying to create a rich text editor but I need to include a button so the user can include table in the text editor. how best can I achieve this in React Draft WYSIWYG.?
if you have not getting the options for table so you can you table plugin using
draft-js-table-plugin

Multiple Data Template list view specific for Chat

Can any body provide solution for the Multiple data template view in Xamarin forms to create chat structure?
Check temple selector for list view to make chat app
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/templates/data-templates/selector

kendo ui maps mvc is not showing bing maps tile

I have a Kendo UI Html helper for creating a Kendo Map. I am able to bind remote data and display the markers. However the map tiles do not show up on the page. I am not sure what to do. Here is my markup. The mvc site is created as a Widget to use within sitefinity.
#(Html.Kendo().Map()
.Name("trailerLocationMap")
.Center(33.066826, -96.804286)
.Zoom(4)
.Layers(layers =>
{
layers.Add()
.Type(MapLayerType.Bing)
.ImagerySet(MapLayersImagerySet.Road)
.Key("myKey");
})
)
If you are using sitefinity 11 or above you need to add the Bing URLs to the web security configs. https://www.progress.com/documentation/sitefinity-cms/web-security-module

UI-Router + Kendo UI Grid, weird issue

Ok so lemme explain first for those who are not familiar
Rule number for using Telerik's Kendo UI is to reference the following in this order Jquery.min.js>Angular.min.js>Kendo.all.min.js
Here is the pseudo-code of my web application
in my parent.html:
-reference for jquery
-reference for angular
-reference for kendo
-ui-view container
this is my ui-view(child.html)
-initialize kendo grid
What happened is that the kendo widget was not rendered
Then I looked at the console of the browser and there was something like
"Jquery should be initialized first before angular when using Kendo-UI widgets"
I tried removing the ui-view and and just yolo-pasted the contents of the child.html and the grid widget successfully rendered
But when I use angular-ui-routing, the error appears again saying I should reference jquery first before referencing angular when using kendo widgets
You can only load jQuery once. I had a similar problem where I was calling it once from a shared view and once inside the main view. You have child views? My solution was to push the loading of the Javascript from the shared view to the main view, and also called them inside of the kendo tabStrips, because apparently those were sandboxed enough not to affect the main view. The second loading of jQuery is what's crushing the kendo rendering; figuring out the workaround depends on the relationships between the views.

Kendo UI Mobile ListView filter

I've been using kendo for quite some time but there is a issue that I'm facing using kendo filter in kendo list view. I am developing a SPA using kendo UI. In one of the views I've implemented kendo filter using http://demos.telerik.com/kendo-ui/mobile-listview/filtering link. The filter works fine on writing any input but when I re navigate to that view again it displays two filters. What can be the issue. Thanks
To solve this, make sure you render the kendo mobile listView only once. If not, kendoMobileListView() will add another input each time you'll use
$("#list").kendoMobileListView() .
If you have to render the listView on pageShow event, make sure you remove additionnal filter inputs with:
$("#your-view form:not(:first)").remove();
Hope it helps

Resources