How to create a table-view control - windows-phone-7

how to develop a scrolling table with rows which will have more than one dynamic data in one row ? It should take data from web browser.

You can create the table like view as described by Matt Lacey. For dynamic data you can create data-template for your table and bind them to your data source. When you click items in a list you can modify ur data source so that it will be reflected in your table.Note: Make sure to implement INotifyPropertyChanged so the changes in your data are reflected correctly on the UI.

To create a table, simply use a list where each item is a row in the grid and then template the item to display data inside a single row grid.
IMPORTANT: Be sure to set a fixed width on each cell so that all rows look the same and aren't resized independently.

Related

Adding a drop-down menu (data validation) after each row of a query result in Google Sheet

First, here is the link to my sheet:
https://docs.google.com/spreadsheets/d/1067N1SAIwpGkMRBZiUv4JW8yDNkozuGt7Fwh6GW-qvE/edit#gid=1742559851
If you look at the tab called "Selection", I have two columns called "Select". All the data in these tables is collected by a query function, except column "Select". In that column, I need to add Data Validation (a simple Yes or No). I want the Data Validation to be automatically added when a new row is created but the query function instead of having to add or remove it manually every time I make some changed. Data collected by the query function is using the two variables on top of the sheet (minimum rating and global buff).
Just to show the step to apply data validation to your whole column, see the following image. Under Cell Range, the image shows Selection!D5:D99, but this is actually set to Selection!D5:D999, it just is truncated due to the size of the text box.
Let us know if this is what you were looking for, or if I've misunderstood your issue.

UiTableView inside another Table

I have a list of DataBase's records. In my screen I need a Table on the top of my page to show all these records then, when user tap one of this records, the table on bottom of my screen displays details about this record. So my first table, on top, has to be dynamic and my second table, on botton, could be even static.
My idea was to set UITableViewController to static then, in first table's section place one big row which contains a table:
- Before I tried placing a Table View directly inside this row,
- then I placed a container which contains an UITableViewController.
In both cases is a mess! I can't understand how to manage UITableViewDataSource for both tables and data's flow between them!
What's the best way to do something like that? Are there some tutorials??

What's the best way to control a NSTableView's selection using checkboxes?

For some user interfaces it makes sense to have explicit checkboxes to allow users to select the items in a table. What's the best way to accomplish this using cocoa? In other words, how can I link the state of a checkbox in each row to whether or not the row is currently selected?
Tony,
if I get you correctly, you want to add a leading column to your NSTableView so you can select the corresponding column(s), separate from the usual selection of the tableView.
What is your datasource of the table view? A core data stuff or an array/dictionary? if you do not want to modify your data model, you could set up a distinct array (mutable), to keep track of the selection. bind it to the checkbox column (you would want to add as first column) and keep the array in sync with the number of items in the general datasource for the table that displays your valuable data.
You could also enhance your data model with a column "selected", make it BOOL and bind it to the checkboxes. This would also allow you to easily save the last selection to you database or file, whatever you are using.
Can you update your question with some more information on your data model?
sya - living.

Cocoa: how can I add custom row in table? or other way?

Is it possible to add different rows created in IB? What I mean is:
**All rows should be created not programatically, but with pre-created with objects.
Or maybe is other way to do this?? maybe without table??
No, you can't create a table with pre-existing rows from within IB.
You can however create text and image based table rows in IB, and lay them out, but you then have to write the table delegate code to load these from the xib and add them to the table as an when required.

Telerik RadGrid refreshing a single row instead of using Rebind

I am using a RadGrid to display stock information. The data bound is a combination of 2 views and 2 tables. This is quite an intensive query, and the data behind it changes a lot. Now, when I update a value in a single row, I have to Rebind the data to update my grid (I use UpdateValues on the item, but it has no visible effect). This is taking too long to be user-friendly. Is there a simple way to work around it, so I can just update the row which has the changed data ?
I do not think there is a way to do that because the Telerik Grid is data bound control - hence to modify its source and refresh the data in the grid UI, you will need to bind all rows.
Dick

Resources