I have a bit of a 'what is it' question.
Currently, I am trying to create a page that will create teams, and allow the user to select the member for those teams.
So far, dynamically render ListBoxes (amount based on teams selected) to the page, then the user selects a member, and adds them to the team.
I want to allow for an x amount of teams added, but this will get messy with the amount of list boxers that could possibly be added.
I would like to know if there is a view that could represent that in once clean environment. I would like do display the team name, in the header, and its member beneath - with editing options on them. I've looked up the GridView and ListView, but I cant see how they could do exactly as i wanted. I have provided a highly refined picture to help elaborate.
Edit: This is not a 'how do I do this - gimmie code question. I would just like to know IF it could be done, and if so, what control I could use. Mayb even a reference to a page with something similar to give me a quick tutorial ^^
Have a look at the Repeater web forms control. You can nest them.
Related
I am making an app that tracks what a person eats. I want to have a listview that tracks all the food eaten during the day and lists it under what meal (breakfast, lunch, dinner, and snack) that the user ate it during.
I understand how to add the item to the list. The only problem is I don't know how to add headers like the ones shown in the XAML Gallery, and I don't know how to add items under a specific header. I've had some difficulty finding tutorials that explain how to do this and would like some input as to where I should look.
I've looked at these tutorials (tutorial 1, tutorial 2) but they are somewhat confusing and I'm honestly not sure if what they show is what I'm trying to do.
What is the name of what I'm trying to do, and how should I go about it? Any tutorials for what it is I'm trying to accomplish would be very helpful.
From your description, It seems you want to implement a grouping list. The recommended way is to use CollectionViewSource, which is very detailed in the tutorials you showed. You can create a class that includes time (breakfast...), food name, etc., then group them by time. For more information about collectionViewSource, you can refer to this document. If you are still confused, can you describe in more detail where is the problem?
I have a listbox in a winforms application that I would like to give a selection behavior that is different than the built in options for the control.If I choose multi-extended, I get what we are accustomed to - ability to use shift or control to select multiple items in the list. The multi-simple option lets you select individually and leave the item selected until you delect it. I'm trying to deal with a slightly different problem that could be solved by a combination of the two options. My users want to be able to use the shift key to highligh a long list and they don't want to accidentally lose their selection if they mistakenly click on one other item in the list. My thought was to keep everything hightlighted until they click a clear button. I kind of think they are asking for something that is not what Windows is meant to do and should not be allowed to do but I thought would post the question so see if anyone has done this before.
In a LightSwitch application I have the following three tables:
These tables are part of a bigger, already existing database that cannot be modified for this application.
I also have the following grid on the details page of a Post:
What's shown is the 'Tag' property of PostTag, filtered for just one Post.
So far so good. However, because there can be a lot of different tags, I want to allow users to create a new tag by simply typing in a non-existing tag into the AutoCompleteBox and then, in some way, create a new tag with the entered value.
I have found this blog post by Beth Massi explaining how one could do something like this, but the solution is for just a single AutoCompleteBox. It looks absolutely terrible in a DataGrid, because the button will be shown in all rows and I have not managed to find a way to disable them conditionally (in a DataGrid).
Another acceptable solution would be this one using a message box and LostFocus, but it, too, does not seem to play nice with a DataGrid.
Is there a way to get what I want, or do I have to add some other way of easily creating new Tags?
(C#/SQL/Approach-question)
This has to be one of the hardest nuts I've ever had to crack. So I sincerely hope one of you smart people out there have tried to solve this before! :)
I have a much of categories (A,B,C) with pictures.
For each picture I need to ascribe some information, based on some controls that have either no- or predefined options. For instance in category A I have a textbox where you can enter anything you want, and a dropdownbox where you can choose between 3 options.
Now, for each category I would like to be able to design (decide) which controls (text, select, checkbox, radio, etc.) I want to ascribe to a category, and I want also to be able to decide what values apply to that control. Let's say I have a select-control, and I want to be able to decide if multiple select are allowed, and which values are available.
So the end product would be:
I can administrate what categories have which controls in them, and which options are available (i.e. single or multiple select) as well as which values are ascribed or allowed.
I need to be able to store this information in a persistable fashion.
I need to be able to "easily" parse the return-data from the page where the controls are rendered.
I realize this is a complicated question, and I will be happy to answer any questions you might have to help clarify the problem.
Thank you in advance!
You could separate the render part (dynamically generated) apart from what to render(based on categories).
Assuming you will use winform controls.. you could have a config file or a simple SQL table that follows schema below:
Table_Category (CategoryName, nickNameOfControl, NotNull, OtherAttributes)
Table_Control (nickNameOfControl, ControlType, Values)
Based on your actual table design, you will be able to CRUD on the tables design time for administration, your render part of the program can read the ControlType information (TextBox, ComboBox etc) and dynamically generate the controls at run time.
Hope this helps.
Currently, I'm in the process of making a custom solution for invoicing. I have created multiple ways for customers to create their template (HTML, Word, LaTex) and get invoices according to their template. However, these invoices are party manually generated.
So, the process is:
Request to create a new invoice
An preliminary invoice is created
The user gets a chance to make changes (i.e. add, remove, change rows)
Create a pdf
Just to be clear, the preliminary invoice does not need to be formatted as the template is, but you should be able to add/remove/change rows and for every cell, indicate whether the value should be visible in the final result.
My problem is that i cannot find a suitable way to display the preliminary invoices. I tried a datagrid (default, telerik, devexpress), but it's too messy. Besides a datagrid, i have no idea what i can use.
What controls can i use best to have a nice and usable UI.
Please don't be like this:
alt text http://bitsandpieces.us/wp-content/uploads/2008/03/imagesapple-20google-20and-20you.png
A typical UI paradigm for this kind of thing is to view it as two separate problems: giving the user a way of viewing the elements that he can modify, and giving him the ability to modify any specific element. You use a list control (ListBox, ListView, maybe TreeView if the elements are organized hierarchically or need to be grouped into categories) to present the elements, and then when the user selects an element the program presents a tabular presentation of field names and editable value controls.
Basically, you're dividing the program's functionality into two categories: stuff that the user wants to do to rows (add, remove, re-order, select) and stuff that the user wants to do to the selected row's elements.
You can mush these two sets of functionality into one if you use a DataGridView, but as you've seen that gets pretty ugly if there's any complexity to the elements you're editing.
Two possible approaches to this: the property-sheet paradigm (select object, right-click, select "Properties", edit values in a modal dialog), or a paradigm where the window's split into two panels, with one being the rows and the other being the details of the currently selected row. There are lots of others.
What is your platform? Winforms? WPF?
What exactly did you dislike about using a datagrid for this? Part of the problem is that whether you like it or not, you're going to be coding a datagrid - you essentially described features of one. If at all possible try to use someone else's datagrid because it will save you a lot of work. Typically, 3rd party datagrids should be fairly customizable, and you should be able to make it look however you want - and take advantage of the built in sorting, editing, grouping, etc. Creating a datagrid-like control from scratch isn't easy and should be avoided if possible.
You don't have to have a plain giant datagrid - you can crate a custom control that displays the invoice formatted however you like, with a live datagrid appearing only where the invoice shows tabular data, formatted to appear as an integral part of the invoice itself.
I'm doing something similar, where the client can edit or even remove the line items for the invoice prior to sending it to the client.
The current app they run their business on is a WebForms Intranet application, so this is an extension to that. So they can add/remove/edit rows fairly easily.
But Egor is right. You're essentially talking about a datagrid no matter what you do. I take it you want something 'cleaner' and more intuitive?
Simplicity is difficult.
I would take a look at what is already out there, especially for invoices, and see how they are doing it.
Not sure how big your company is, but it never hurts to take advantage of the large company applications and user interfaces, the pour thousands/millions of dollars into user interface design and testing.
I would take a look at any of the following (most offer a free trial, or just try searching for screenshots):
www.freshbooks.com
www.invoicera.com
www.getcashboard.com
www.simplifythis.com
Just some ideas ... hope this helps!