How do I dynamically hide empty categories in toolbox of rehosted designer - workflow-foundation-4

We are rehosting the designer and the System.Activities.Presentation.Toolbox.ToolboxControl in an application. We have very many activities, grouped into quite some categories in the toolbox (>300 activities in 50 categories...)
When I type some string into the toolbox search box, I would like to disappear all categories that have no entry shown due to the active search. At the moment, they all show up as headers without any content and more often than not, I have to scroll down to see the activity that I'm looking for - not really usable:
Is there any way to achieve that, e.g. by setting CategoryItemStyle or CategoryTemplate on the ToolboxControl?

Related

trouble with creating a breadcrumb in asp classic

I need advice on how to do breadcrumbs in asp classic
I have a company detail page - the thing is it could have been gotten to by a number of ways - through a area or through a list of categories and then companies
I want to show the breadcrumb that this user came to it
(and the same page can be gotten to in many ways)
I tried to build a session variable but if a user clicks the back key then it messed it up
any ideas?
When you design your site you need to work out, in your own mind (best to use a pencil and paper), just how the site links together and which pages can be considered to be related. I know this sounds pretty grey, but this is more a design principal than set in stone.
Word is a good tool to work this out. Flick into Outline View and use this to build up the structure. The arrows on the ribbon at the top left allow you to indent and outdent your structure, and the markers at the beginning of the line allow you to drag and drop sections from one place to another.
Once you're happy about the structure you can update your pages to contain the stepped breadcrumb. Unless you have heavily automated pages that change their structure vastly, or a site that is very fluid (changing it's structure frequently), I would simply hard code the breadcrumb in using an unordered list (<ul>).
It gets more complicated for Classic ASP if you want to be able to automate the breadcrumb. Firstly you'd need to decide what type of automation you want to use; for instance XML, like the .NET version, or a global.asa string/array version, or something that's read from your database... The list goes on.
If you still find it difficult to get around the user's landing page train of thought, try using the search page on a site like the NHS Data Dictionary, or even try navigating using the links on the left. The breadcrumb for this site is in the top banner - watch what happens when you switch between different links.
Hope this helps, but remember there's no right or wrong way to code up your links, it simply depends on the application or site you're creating.

ms project 2010 - how to show resources on a calendar?

I am using MS project 2010, I have added the required tasks and have allocated the resources.
Just wondering how I can get a view of a monthly calendar view that shows the resources allocated on each day?
I assume this would be a straight forward request?
Thanks
Original answer:
You can use the Calendar View and customize it to show Resources:
From the View tab, select More Views under the Other Views drop down.
Select Calendar and click Apply.
Right-click in the calendar area and select Bar Styles.
Under Task type, select All.
From the Field(s) drop-down list, select Resource Names and click OK.
Additional Information:
The Calendar View shows tasks--the bars displayed are the tasks, so you might see multiple bars showing the same resource.
Show resources at summary level:
One trick you can use to consolidate the resource information is to "roll up" the resource names to the summary level and only show summary tasks on the Calendar view. See this post: MS Project 2013: display resources on summary tasks for how to show the names of resources used on subtasks.
Then format the Calendar View like this:
From the Bar Styles box, select All and change the Bar type to None.
Select Summary and change Bar type to Bar, select a Pattern and Color and select Text1 from the Field(s) list; click OK
Right-click in the Calendar area and select Layout Now
The result will be a calendar view showing summary task bars displaying the names of resources assigned to the subtasks.
For this purpose, I suggest you modify the macro in the link above so that resource names are not rolled all the way up, but only show for the direct summary tasks (e.g. comment out the block that starts with "If child.Summary...").
Have you tried the Resource Usage view? This is arranged with time along the X-Axis and Resources on the Y-Axis. If you choose to display in days you will see the amount of hours any resource spends on that day, either broken down by all their tasks or aggregated across all their task if you roll it up.
Not quite a calendar view, but commonly used to determine resource loading on a daily basis.

Best way to show a lot of data on ASPX web page (Drop down list,

I am doing simple web application with a little business logic. Now I have Drop down list with about 25 000 product and user can choose it.
The application will be probably slow for users who has slow internet speed. (in company it`s ok)
Is there any component (in Visual Studio) or what is the best way to server so many product to users?
I also try with ComboBox ajax, but in IE 8 CPU was unable to process.
Is there a reason that you need to display all 25,000 items at once? I imagine that this will be a usability issue even if it works flawlessly. With such a massive list, users already must have some sort of idea of what they are choosing.
How about a simple text box that uses ajax to drop down suggested results (similar to google search)?
Edit
You could also break your items into multiple categories and then have a drop down list of categories. Once the user chooses a category, a second drop down list can display all items in that category or maybe something to break the category down even more. Similar to: http://www.kbb.com/whats-my-car-worth/

how to organize my menu, taxonomy, views, pages in drupal 6

i am try to build a web site, it has a 2 level menu.
global|asia|euro|u.s (this is locaion menu)
about|home|news (this is content menu)
if a web site user clicks on global, it will show global|home page, if
the user clicks euro , it will show euro|home page, clicks on u.s it shows u.s|home page.
global|home , euro|home, u.s|home, all 3 have same format but different content.
for global|about, euro|about, u.s|about, if a user clicks on global , then clicks on about, it shows global|about page, clicks on euro, then clicks on about, it shows euro|about page, etc.
page content is different , but format same.
all things (items, nodes) in this web site have a location taxonomy attached to it.
for example, for home page,we have to show a picture, the picture has location attached to it.
so , when a user click on euro|home, the picture should comes from euro location , for asia|home, the picture should comes from asia location.
My question is, in drupal 6, how to organize my menu, taxonomy, views, pages to achieve the result.
A way to look at this problem would be to think of this as a multi lingual site. You have different languages:
global
asia
euro
u.s
Even if all the actual text is written in english, you can setup your site as though the languages are different. You can make different versions of english, so all the other text doesn't get translated to other languages. What's smart about this, is that you can translate your nodes, like the about page, and Drupal would show the one from your active language. This would be one way of fixing this, and clicking the different regions, would just change the language.
Another way to do this, would be to use taxonomy. Some of the things, like the menu system would be a bit more different to fix. There would be different solutions to solving your problem this way. In some ways, it would be more simple than making your site multi lingual. I think the easiest way would be to make a 4 different menus, one for each menu. Then you could make some logic in your template, that fx looked at the args, or looked at the taxonomy term you had associated to the node being displayed, and based on that, you would display the different menus. It would require much more coding, to get it to do what you want, and it's not exactly an ideal solution, but would make your site less complex.
Another way to solve this problem, could be using sub menus. So you made children to each region in your main menu. Then you could simply show the menu of the active one. This would probably be the easiest and most simple solution to your problem. Most of it, would be purely styling that would be needed to make it work like you wan to. There might be some issues making the right menu show all the time, but depending on how complex your site are, this shouldn't be a big deal.
These are 3 ways to solve your problem, each has it pros and cons, and the best is very much dependent on the nature of your site.

Listing Items and Displaying Data Inline

I use asp.net 3.5 and have also begun looking at 3.5 sp1
I like the clean urls that mvc tends to have but use asp.net webforms for my primary development. I normally use a url rewriter in order to accomplish this type stuff. When I say clean urls I mean like /products to get a list of products and /products/Product_One to look at the info about product called Product_One. I've used this on sites where the listing is on one page and when you pick the item it goes to a different page that shows the info about the item selected.
but
I also like the way that the update panel works and changing stuff on screen with out flashing the screen. When I do this I tend to have a list on the left with the different items that are selectable and then have on the left the data about the selected item, then I use an update panel so that when the item on the left is selected it's data shows up on the left without flashing.
I need opinions on what you all think of the two different methods of displaying a list and seeing the item that is selected's data.
1) Which is better in your opinion?
2) What do you all do to display a list and show the data on one of the items?
3) Is there another way of doing this?
4) Is it possible to combine the update panel method and the nice urls? (i.e. change the url to match the url that would get you to the current displayed data even though the update panel was used, and add to the history the new clean url for the current page)
What you are referring to is AJAX URL history management but you will not be able to modify the URL besides the "#" anchor.
At least not without reloading the page.

Resources