reorderable list of reorderable list items? (Editor) - editor

Is it possible to create an reorderable list which has items that are an reorderable List itself?
What would be the pattern do do that? Creating a custom inspector for the upper level and one for the item-class or is everything done in the editor-class of the uppermost entity?

Related

Trying to add items to a TRadioGroup but no Item Editor or Items property is available

I'm trying to create a 4-button radio group on a Form using the TRadioGroup component. I can add the radio group, but I can't add any items to it.
The documentation gives two ways of doing this: the 1st way is to right-click the group box and select "Item Editor", and the 2nd way is to edit the Items property in the Object Inspector. However I have no Item Editor selection available on right-click, and no Items property in the Object Inspector.
Is there something in the setup that I've missed here, or will I have to resort to using a TGroupBox and adding individual TRadioButton control to it?

2 way modification with an array

I have a Google sheet with many tabs representing a location with an inventory. In every tabs, there's a column with a chez box to state if that item as to be moved to a new building. I made an array in another tab (filter tab) that filter all the items that the box is checked. Because it's an array, I can't modify the item in the filter tab, have to go on the original tab where it comes from to modify it. Is there any way I can modify in the filter tab and have that modification change also in the original tab?
Here the array function I use in the filter tab.
=QUERY({'SALLE 1'!A:H;'SALLE 2'!A:H;'SALLE 3'!A:H;'SALLE 4'!A:H;'SALLE 5'!A:H;'SALLE 6'!A:H;'SALLE 7'!A:H;'SALLE 8'!A:H;'SALLE 9'!A:H;'SALLE 10'!A:H};"select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8 where (Col5='X' or Col5='x')")
no, that is not possible to do in Google Sheets. you can't reference the reference nor create two-directional references and create paradoxes

How to create a Hierarchical menu in iOS?

In my application, I have a menu that is defined as follows. Each item on the menu is a node that has the following data attributes:
MenuText : (the text that would appear for that item)
isView : Whether this item is a leaf level item or not
subMenus : if isView is false, then there are multiple menu items under this attribute.
Thus, it is a tree structure that can go till any depth. The items in the menu can change periodically and hence the implementation has to be kept flexible. This data is stored in a plist file and read into an NSArray in the code (already implemented).
I now need to create a slide out menu on the left that will be populated by this data hierarchy. I have created the menu pane and added swipe gestures to it, all of which work fine. The menu has to be a collapsible one where clicking on one menu item expands the subViews below it. If the item clicked on is a view, then a new view is loaded on the rest of the screen with appropriate data.
The problem I am facing is the logic to populate the menu (which is a UITableView) from the NSArray data. The following are the two approaches I came up with.
Create a UITableView with as many sections as there are items at the top level of the menu. Then iterate through the menu items recursively. For each menu item that is not a view (i.e. it has subMenus), create a new section with number of rows equal to the number of subMenus under it. When I come across a menu item that is a view and has no further subMenus, add it as a row to the subsection created for the menu one level above it.
Create a menu with one section and as many rows as the number of menu items at the top level. When a menu item is clicked, insert rows under it to represent its sub-menus. When another menu item on the same level is clicked, collapse the previously expanded menu by deleting the inserted rows. When a menu item with no sub menus is clicked, the rest of the screen is populated with data.
I have tried both the approaches and not been able to go beyond the initial steps. For the first method, I understand that I need to add a UITableView as a part of UITableViewCells, which is good, but I need to do that recursively. For the second approach, I need to know the indexPath of each item clicked which can go to many levels.
I would like some suggestions here about which approach I should take and some guidance over how to go about it. Also, if there is any better way to do this, kindly advice. Thanks.
In my opinion, using UINavigationController is the easiest way. You can push as many UITableViews as you want.
If it doesn't fit your design requirement, you can try expandable UITableViews. There are few open sources:
JKExpandTableView
SDNestedTable
iOS-Tree-Component
Thanks for the responses. I ended up doing this using the following control:
Accordion for iOS
It has served my purpose beautifully and I posted it here so that someone with the same requirement may find it.
Take a look at TLIndexPathTools. It has a "Tree" extension that can do this. Try running the Outline sample project. The main task in adapting the sample project would be to write a recursive function to convert your array of nodes into an array of TLIndexPathTreeItem objects. All of the code in the controller:willChangeNode: method is examples of lazy loading and it doesn't sound like you'd need any of that.

how to do drag and drop of record from one list view to another kendoUI

I have different list views,
I want to drag and drop of record from one list view to another.
I have seen a link in regarding this,
"http://jsfiddle.net/MZxQu/36/"
I have implemented this in list view,with this I am able to drag the list view content,but I am not able to drop it on another list view.
can u help me
Thanks..
Use this instead of grid it will be better i guess:
http://demos.kendoui.com/web/treeview/dragdrop.html

How to hide a column in TListview?

I am using a listview to store and show data.
How can i hide and show a column in listview?
Dont tell me to set the column width to 0 please!!!!
In the Delphi TListView you can't hide columns in vsReport view style. Your only option is to delete the column when you need to hide it, and create it again when you need to show it.
This is yet another example of why virtual list views are much more desirable than non-virtual list views. With a virtual list view you can insert new columns without having to iterate across all items in the list and re-populate their sub items.

Resources