Slider bar with text values - asp.net

I'm doing a permissions screen that could use a slider bar- for each section of the site, I want to be able to give users permissions easily, using a horizontal slider bar that has text values defining the different levels of permissions, meaning what they can do in each section of the site, increasing in permissions to include abilities like reading data, writing, deleting items, adding them etc. Every level includes the previous levels, so a slider bar seems the logical choice to show that's what's going on.
Unfortunately, looking around, the only slider bar with good ASP integration (this is part of an ASP web form) is the AJAX one, SliderExtender, but that only uses numbers as values. Is there a way to use text values as the labels for this control, or is there another (free) one that I can use for this purpose?
Thanks in advance for the help.

Why not just use numeric values and handle convert the numbers to text values in your code?
1 = Admin
2 = Power User
3 = User
4 = Other User
Hope this helps

Related

Application Insights Dashboard - Set Graph Dimensions?

I am currenty setting up a new dashboard in application insights to monitor our applications in detail. To do so, I am logging custom events from my application, and using a log query, I generate a Stacked Column Chart. Like so:
Chart. Notice that I am grouping on multiple dimensions, and the generated chart lets me pick which Dimension I want. (As documented here: https://learn.microsoft.com/en-us/azure/azure-monitor/log-query/charts#multiple-dimensions)
Now, when I pin this chart to my dashboard, I lose the ability to pick the dimension I want to see there. (Dashboard chart) Is there some way to retain this, or do I have to create and pin multiple charts, one for each dimension?
You are right. Changing the dimensions of existing parts are not supported yet.
We plan to support this in the future.
I'll ask here once we add this support.

Making independent graphs for different event types

The application insights APIs let you record custom events for user-defined purposes. They also let you record custom properties on those events.
The Application Insights chart control on the Azure Portal however, appears to have some annoying limitation.
Let's say we have two event names:
Login: A user logged in.
Work: The application started some expensive background job, which happens independently of any user action on various conditions.
Then I likely don't want those event types to be series in the same chart. In particular, I may want to do a grouping by user or something similar in case of Login, but that would make no sense for the Work type.
They really have nothing to do with each other and I'd like to have them in different charts.
I do, however, want them to be in the same chart control (the whole white rectangle thing that groups charts together and where you set the time scope and filters on).
The following missing features would each solve the problem:
If it was allowed to set a filter on individual charts rather than only the chart control as a whole.
If each event name would appear as a distinct metric to select.
I know there's also Analytics, but then I still don't have the new chart in the same old chart control.
Is there another option I overlooked?
There's no way to do this in any one specific metrics explorer window, like you said, filters apply to the whole window.
But you can do this by creating a dashboard, and pinning individual metrics explorer charts (or grids, or whatever) to that dashboard.
make a new dashboard, and name it something distinctive
create one of the charts you want with the right filters in a standard metrics explorer part.
pin that chart to the dashboard created in step 1.
repeat steps 2 and 3 to create each chart with its own settings
go to that dashboard, and resize / configure each chart the way you want it

How to do Grafana Dynamic Singlestat Panels?

I've got metrics in Graphite showing response time for various organizations. The list of organizations can change on the fly. I want panels in Grafana to appear for any origanization who's response time is over a certain threshold. Was thinking the Singlestat panels was the right panel to use. Question is how to make them appear dynamically? Is a scripted dashboard the right approach?
If a scripted dashboard is the correct solution, can anyone recommend a Grafana cloud/service provider that supports scripted dashboards? The current one I have been testing out does not support scripts. Note that I am not really tied to Graphite as the backend since this project is in proof of concept phase. Just need the backend to also be a service. Don't want to roll the backend myself. Thanks.
As far as I know, it is not possible right now.
We had a similar use case in my organisation, and here is what we did.
You can define a template variable for your organizations, and then use SingleStat panel with “Repeat Panel” on this variable, but that will display panels for all of your organizations. Filtering based on a criteria is a requested feature.
Alternatively, you can use the Table panel for your use case.
Choose Table panel
In “Metrics”, enter your metric organizations.*.response_time (or whatever more complicated you need, applyByNode can be handy for such cases)
In “Options”
“To Table Transform”: choose “Time Series aggregations”
“Columns”: Avg, or Current (depending on your needs)
“Coloring”: use thresholds to paint in red or something anything above your desired response-time threshold.
Sort the Table per the Number column.
Ta-da! Your organisations needing attention will be at the top of the table and highlighted.
In the lack of true filtering, this worked for us. Hope it will work for you too :)

input controls for easy filtering in kibana dashboard?

I have successfully used kibana (4.3.1) to make a dashboard with several visualizations. Great! Now I would like to add some input controls to allow filtering. I know that you can manually enter filters in the query bar, for example 'myCol:[low TO high]' but this is problematic for a couple of reasons. First, the syntax is a little too advanced for casual users (although I could use the metadata visualization to document the syntax). Second, the query bar goes away when exporting the dashboard via iframe.
I have tried using the metric visualization to display a min and max values. Unfortunately, the metric visualization is read only.
I have tried a bar chart to allow range filtering but my users will need to select very specific ranges that result in selection areas of only a few pixels. This is error prone and not precise enough.
Any other ideas on how to create input controls for easy filtering? I was hoping find some sort of dial that is tied to a column to allow users an easy way to apply filters.
Thanks,
Nathan
Check working with filters section in the documentation. Selecting a filter changes dashboard URL and includes snippet like (filters:!((meta:(disabled:!t,index:'myIndex_*',key:MyTermToFilter,negate:!f,value:'MyValueToFilter'). Once you have all the filters you want your users to change in the URL, after they navigate to that URL they will be able to enable/disable them in the UI

Visio 2013: Limit displayed lines in a shape

Visio 2013: Create scrollbar for hidden overflow
.
I have a list of over 112 items. Which, is extensive for a simple diagram. I would like to have only 4 lines viewable and have a scroll bar to view the overflow.ties.
e.g.
I have a list of sites that are hosted on each server. To have all the sites for all servers displayed will decrease diagram readability. I need to set the max displayed lines to 4. The rest needs to be hidden. You should be able to view these by using a scroll bar.
This is a common practice in HTML. Hoping to find a way to do this with Visio 2013 also.
For example:
domain1.com
domain2.com
domain3.com
domain4.com
--Overflow--
domain5.com
domain6.com
andmanymore.com
Instead of doing the filtering in visio, provide already filtered data. ie: fill the list field already with a string, where the domains are separated by CHR(10).
This operation is easier to realise in excel/access/VBA.
I would send a draft, but I don't see a possibility to add attachments to answers.
HTH, otherwise don't hesitate to ask for details.
I guess that you have the list of domains in a user defined field.
Now add another field with the following formula mid(prop.yourlist,controls.start,prop.numberOfCharactersToDisplay)
where:
controls.start would be a control added to scroll your list and
prop.numberof.. the number of characters to display.
Insert now the new field to be displayed in your shape. Done.
These formulas will of course truncate your domains at any place in the string. If you want it to show always full lines, you should look for the line breaks (find(char(10), yourList)
HTH

Resources