How do I remove the percentage complete label from a Kendo Upload control? - kendo-asp.net-mvc

We are upgrading our old Telerik Upload control to Kendo Upload.
One additional functionality provided in the new control is percentage completion number.
We have decided that the progress bar is a sufficient indicator for the status bar.
Hence we plan to remove the percentage number that is actually displayed(right corner in the screenshot). How can it be removed?
function onProgress(ev) {
var progress = ev.percentComplete;
}
the above property gives the number. I am not sure how do I disable it entirely!
fyi - Without even having onProgress function, the percentage is gettign dispalyed by default

Try hiding this by overriding the style of the <span> that contains the progress percentage using:
.k-upload-pct
{
visibility:hidden;
display:none;
}

Related

Oracle APEX - hidden regions flash on page refresh

On my page there are several region that are hidden or shown based on a condition.
I set a variable calculation before regions and then on change of that variable I show/hide various regions. Everything works as expected but I've noticed that when I refresh the page, for a split second I see the hidden regions flash and then disappear. Any way to fix that?
What happens is that the DOM is rendered and once the page is loaded, the dynamic action fires. There is a brief moment between the page fully rendered and the dynamic action firing and that is when you see the component flash. All a dynamic action of type "Hide" does, is set the css style display:none; on the component.
A very simple workaround to prevent the flashing is to set "Custom Attributes" to style=display:none; for the region that should be hidden on page load. That way the component will not show but immediately be hidden.

Is is possible to create a tabbarcontroller that does not have elements hidden within "More" section?

I'm currently running into issues similar to the ones described in this post and am wondering if it is possible in a tabbarcontroller to not show the "More" icon and display all of the view controllers in the tab bar?
The issue of reconciling the show and hide becomes problematic if I assume that some views have navigation bars and that a user may change the order of the tabs, so hiding and showing tab bars becomes another facet of the project I will need to keep track of in appearance and disappearance methods.
Per Apple's documentation, the morenavigationcontroller is something that does not is set in the tabbar's vc array, but is merely a property

Sitecore 8, MVC, Experience Editor: How to make a rendering refresh after a Field Editor Button has been used

We have a rendering listing the selected items in a TreeSelect in the current item. In our case we call them "Tags" (1)
We have added a Field Editor Button to the component to let the editor change selected items. (2) (As described on for example Adding a custom component)
When an editor clicks (2) the editor window (3) it is opened in a dialog. The editor may select different items(called tags in our case) using the TreeSelect.
When the editor presses the ok-button (4) the values are set.
Now to the problem:
The values are actually set as they get stored when the editor presses the Save button but we want our list on the page (1) to immediately reflect the set items when the editor presses the ok-button (4), i.e. before having to actually save the whole item.
How do we achieve that?
(I am in contacts with Sitecore support but so far I have not gotten any answers...)
Update
After a lot of conversation with the support we still have no useful solution.
We tried turning it into a field renderer displaying the links.
What worked was:
The field do get updated when you have edited it in the popup field editor. (but...)
It looks good the first time when page is loaded.
You can make a WebEdit button with commands to edit the field and add it as Custom button to the field (register <command name="webedit:fieldeditor" type="Sitecore.Shell.Applications.WebEdit.Commands.FieldEditor, Sitecore.Client"/> and set Click on the button to webedit:fieldeditor(command={3473DDA1-2983-493C-AF7A-054C75AA7AD3},fields=NameOfField where the guid points to itelf and an "Icon" is set on it.)
What didn't work was:
The field get updated by the raw value, not what I want to display. Server code is involved, but not in the rendering of html-code.
When I want to edit the value in the field editor, the value sent to the field editor is not the raw value but what actually is displayed on the page. (I guess this can be solved somehow)
The issue to the support turned into a feature request to let the server be involved in rendering the field, not just sending a new value to the JavaScript updating it. The server does the first rendering so when it already is involved in updating, it should be allowed to do the rendering the following times too.
We have decided to not spend more time on this right now (we have other things to do too.) and have a bad editor experience as the field not get updated until the editor actually saves the item.
Still we have no suitable solution for this issue. If you want to keep working on it and want a reference to my issue it is 439059.
This may not be useful here. I've done this in normal sites, but not in Sitecore. But, here's one possibility....
This is a situation where you would pass a callback function to the child popup window. This callback will cause the caller / parent window to re-read/re-load the information that was just updated by the child.
Example:
User presses (2) to open Editor Window(3) (Editor window is opened and the Callback function is passed as a parameter)
User presses "OK" button (4). The "OK" button event handler updates the changes, then calls the Callback function which re-loads the now updated information, and closes the popup window.
Once the popup closes, the parent window now displays the information that the popup/editor just updated.
This takes some client side javascript (jquery) development but it is quite do-able normally.

Horizontal scrollbar in APEX 4.2.1 Classic report

To enable horizontal scrollbars in a table I need to style the containing DIV with "overflow: auto", highlighted in blue.
I tried it with FireBug and got the desired result. Just can't figure out out how to put the setting into APEX.
Using the theme "Blue Responsive".
I've played with this a bit in Apex 4.2.2, it should work the same in 4.2.1 I think. That particular div doesn't come from any template but you can target it with some CSS.
In the page properties, for CSS Inline, I entered the following and it seemed to work:
#report_2583625959157728_catch {overflow:auto}
(I think I've transcribed the correct id from your screenshot - you may need to check)
Unfortunately this means you'd have to do this for each report in your application individually where you want the scrollbar to appear.
Note: I haven't tested this in IE, however - last time I was mucking around with scrolling areas I found it incredibly frustrating to get it working in IE without breaking other functionality in the region - especially for Interactive reports.
You can add to Region Header:
<div style="overflow:auto;">
and to Region Footer
</div>
You can also add your css line to a report region template, if you want the scrollbar to be added to each report.
Other wise you're better of putting the overflow on a class and add it to your application's stylesheet, eg:
.myClass {overflow:auto}
you get more flexibilty to style your region this way. You can add the class to your report by setting the region attributes to class="myClass".
Note that instead of "auto", you can also try to use the element option "scroll", check the w3schools docs: http://www.w3schools.com/cssref/pr_pos_overflow.asp

How do I reset MS Word toolbar button state on new document

I have a request from a User Group to implement the following:
Introduce a set of templates that
have some Hidden Text on the page as
instructions
Display the Hidden
Text the first time a document is
created using the templates
Introduce a custom button to toggle
the Hidden Text display
1) The templates are now created. Manual toggle of Hidden Text works.
2) should be dealt with using Auto_New to set the state of Hidden Text
3) is causing me grief. I have the code that toggles the Hidden Text and the State of the custom button when I am in the templates and the Auto New code is fine when I am in the templates covered in 1), however the state of the button also needs to be reset when I am in other templates.
What I need is something to set the status of the button depending on the Hidden Text setting whenever any document is created.
Any ideas?
I've created a macro under Normal that sets the button according to the status of HiddenText.
Not exactly what I want, in that the button may be in the wrong position when changing window views, but it's good enough...