Binding Dictionary to MvxTableLayout monodroid MvvmCross - xamarin.android

I have a dictionary with a dynamic number of rows in it that I would like to bind to a tablelayout in android with Mvvmcross. This doesn't need two way binding just a one way.
How is this accomplished? Is it best to not use a tableLayout? (this is how I would have done it without mvvmcross)
Is there a better way?

It has been supported since vNext and a description can be seen in GitHub Issue 110.
The binding language itself supports indices etc. which supports binding of dictionaries. I suspect you can bind the dictionary as you would a list to either a ListView or TableLayout depending on how and what you want to display.

Related

Making UI elements programmatically in iOS using Xcode in Objective-C

I am trying to parse json data and convert it to form in iOS. I am successfully able to parse data and display it, however, i want to fix the UI and make it look more like an iOS form, perhaps using tableviews, etc.
How do I approach this? should I just use a tableviewController or use a tableview? (the fields are dynamically added, so I have no idea what type and how many fields I will have, until I make a call to the API and fetch the data from the json that I get)
Are there any easy to use libraries in iOS that I can use?
That's not how UI design works on iOS. For the specific example that you mentioned of a tableViewController getting fed from an API... You'll create a tableViewController and you will design a demo cell.
Then you will fetch the results from your API, parse it. And you will iterate over the results returned by the API, inside that iteration you will programatically create the table cells (thus ensuring that you are creating as many tables as you need).
Nevertheless this is a extremely vague question, and besides briefly explaining how this whole thing works on general terms, there is not much more I can do without you posting the code you have so far.
Allow me to refer you to this tutorial by NSCookBook that although old is gold when it comes to these things.
Regards,

Umbraco 7 Limiting possible Tags values

On our website, it is possible to tag content by a country list. This country list could be implemented as a tag control but I'm concerned about mis-spellings creeping in over time. However, the country list is very long (150+) so not ideal for a dropdown multiple control either.
What I'm looking to do is have a control that has the same type + autocomplete functionality as the existing tags control but limit the possible values to those retrieved from a database table.
I also want to be able to list all tags that a piece of content has been tagged against as well as searching for content based on tags e.g. GetNodesWithTags
Has anyone developed anything like this before? I've had a look at packages etc but can't see anything similar. Does anyone have any advice before I start off?
Definitely, using Tags datatype for this may cause a lot of problems :)
In my opinion, the perfect solution will be to use nuPickers (https://our.umbraco.org/projects/backoffice-extensions/nupickers/) package and available there TypeaheadList Picker.
Depending of your additional requirements, you may use Lucene index / C# accessed source (totally custom - db, static, enum etc.) / XML file source as a prevalues for your control.
Then, you'll be able to create logic which will enable you to perform search based on this field as it will be a typical property with value on the nodes. Once again - suggested way is to use Lucene Examine index as it's tailored to be fast with searching. You can read more about searching with Examine here: https://our.umbraco.org/documentation/reference/searching/examine/.
Hopefully it will solve your problem.

Google autocomplete Component Restriction iOS

is there any equivalent of a component restriction for Google Places Autocomplete for iOS.
I have found a few wrappers that wrap around the webservice call but even those (wrappers) do not have the capability to filter by component Restriction in general it seems.
I'm looking for this to make sure the results are only for my country of interest.
http://goobbe.com/questions/8144956/google-places-autocomplete-api-country-restriction
It's not possible with the iOS SDK at the moment.
The filter parameter of autocompleteQuery allows you to filter by type (it's a GMSAutocompleteFilter object), but currently offers no other filters.
For now you'll have to use the webservice (or a wrapper for the webservice that includes support for component restrictions).

Custom store for rallycardboard

I'm trying to show on rallycardboard all Tasks with WorkProduct._type==TestSet
but when I try to filter by WorkProduct._type I got an error. Seems like it is not allowed to use _type of a child object as a filter property.
If so, maybe it is possible to use some custom store with CardBoard in sdk 2.0p5, as I normally do with rallygrid. Haven't found store option in CardBoard configs list.
Appreciate any ideas.

Suggestion required - Use 3rd party UI grid or build own grid from scratch?

The project will be built in MVC4 using Entity Framework.
First of all, The targeted grid should be looking like this(It's just a sketch I've made graphically, But it should like this in the end):
What will it contain, what I am questioning and what I have done so far:
*These are all the steps i've done until now created without any grid/ 3rd party grid/ helpers to avoid restrictions when receiving the project's actual HTML.
Data retrieved by dynamic grouping - (Done)
The data is sortable(ViewBag sorting) and have paging(IPagedList) (Done)
Filtering each row with distinct value like in the picture example, Running ranges/searches within - Not sure how to implant it without using UI grid - Not done yet.
Exporting grid , Adding rows dynamically from within the grid in a list and updating it on demand - Also something that a UI grid could suggest in much easier manner , Not done yet.
So from what you've understood so far, Should I work and could I work with a 3rd party grid that could handle all those options without restriction or should I build all those options manually like i've build the sorting/paging so far?
Many thanks in advance.
First you need to note down your requirements and if you cant achieve it the crucial part in Grid, then going for the 3rd party controls would be better choice.
For MVC Grid, please check the demo links of leading products such as Telerik, Syncfusion.
Syncfusion MVC Grid demo
Telerik MVC Grid
You can evaluate these controls for some period and if it satisfies your needs, you can go ahead with one product.
Mostly all product vendors would give an Export option for Grid to PDF/Excel/Word.
UPDATE:
I guess Syncfusion MVC Grid will satisfy your requirement. They have filtering with essential features.
It will load distinct values in the filter choice list.
You can filter string values with casesensitive and vice versa.
Can be able to filter values according to its datatype.
Can be able to filter values using customer filter.
Can be able to filter using filter tokens.
Better check the below links.
http://mvc.syncfusion.com/demos/ui/grid/Filtering/ServerFiltering
http://help.syncfusion.com/ug/asp.net%20mvc/grid/default.htm#!documents/howtofilterdatausingfiltertokensinthefilterbar.htm

Resources