How do I insert icons in the delete popup confirmation buttons?
Thanks
The is no special event in Kendo Scheduler that will be triggered when the confirmation Popup is shown so I would rather recommend handling the click event of the delete icon as for example it is done in this dojo page.
Related
I have a custom button placed in the ribbon menu. I have observed that when ribbon menu is in simplified view and the visibility of my custom button is set to false (not show it), then my button continues showing instead of hiding. Why?
Use the IRibbonUI.Invalidate or IRibbonUI.InvalidateControl methods to update the ribbon controls when you changed the control's state. The add-in can also then force an immediate update of the UI by calling the Refresh method.
I have a custom TaskPane in Outlook. When the user toggles the visibility, I record it in the settings object so that the next time Outlook starts it will be shown/hidden as the user left it.
CustomTaskPane.VisibleChanged is raised in each of the following scenarios
The user clicks the X in the top right corner of the task pane
TaskPane.Visible is set in response to the user pressing a toggle button in the ribbon
The user presses the File menu button on the top left
The first two ways, the user clearly meant to hide the task pane. The third way the user was just trying to go to the menu screen (perhaps on their way to hit the Exit button).
Question
Is there anyway to determine that the event was raised because of the File Menu? Any way to programatically determine if the File Menu is currently open?
Here's what I mean by the File Menu Screen:
The Backstage UI provides two callbacks that can be used for tracking when the File menu is open and closed:
onShow - The Backstage view is displayed which triggers the OnShow callback procedure.
onHide - when the Backstage view is not longer visible.
The onShow attribute and the onHide attribute of the element can point to code that performs that kind of action.
<backstage onShow="OnShow">
See Customizing the Office 2010 Backstage View for Developers for more information.
I am using the Yii CActiveForm widget to create a form. On the same page, but separate from the form, I have a button that pops up a JQuery modal dialog box.
Here's what I would like to do (but cannot figure out how to do): When the button is pressed, I would like to validate the form using Ajax before popping up the modal dialog box. If the form has an error, I would like to display all the errors and prevent the modal dialog from opening. If there are no errors, then the modal dialog box should open.
How can I call the Yii ajax validation from within a button click event?
My task is to implement a file upload form in a popup sub-menu panel. I am using XmlHttpRequest, so it's important to keep that popup opened until I receive an event status that file loading completed/failed. Onmouseover and onmouseout events are used to show/hide the popup.
On "hide" the popup panel is detached from the DOM, and cannot be used anymore as a listener for XHR events.
When I click form's "Browse" button, a system dialog window is opened above the browser. In IE, Chrome and Firefox in Windows the system dialog disables events handling by page. Which means if you move a mouse cursor out of the dialog window on one of the page element, the page won't do anything like reacting on mouseOver/mouseOut events. Unfortunately, in case with Chrome/Firefox on Mac (Safari is OK) the page elements do react on mouse over/out. And my popup menu becomes closed (due to mouseOut event handler for the popup) -> XHR response is not managed properly.
Assuming having an upload form in a popup is a must, what are the possible ways of keeping that panel/form visible while system Upload File dialog window is up? Probably a Mac specific solution.
Sample code can be seen here http://jsfiddle.net/xqvXG/
Solved this by freezing popup panel and covering the whole page with transparent div ('glass').
In case if user chooses file(s) and upload starts, I remove the glass and unfreeze the popup using the XHR function readyStateChangeHandler (or may do that in handler of load event).
If user clicks Cancel in system dialog window or closes it with "X" button - no events passed to the page and 'glass' remains on screen. Then any click on the 'glass' causes its removal and unfreezing (or simple hiding) the popup menu.
'Glass' is required to make a single one-click point (panel) for unfreezing the popup in case if Cancel/Close were pressed.
I wouldn't say this is a perfect solution (sometimes required extra action), but very close to what I was looking for.
I am implementing Drag & Drop in windows application. I have
Main Form (Has a toolbar with Search, Open, Print etc) - MdiContainer
On Search - Open a child - Search form.
Drag and Drop a file to a Grid on this search form.
In DragDrop event of the Grid - Call a Modal form.
I am having trouble here.
When i drag and drop a file on to a selected record in the grid, i am able to call a modal form in Grid_DragDrop event. But this modal form blocks everything until it is closed instead of just blocking access to the application. Also when i move this modal form around, i see trail of form moving and it does not go away until i close the form.
I am able to call the same modal form on a button click and able to move it around. No trail of form and it refreshes fine. It only blocks the application and not the desktop.
I am clueless about why this is happening only when i call modal form in DragDrop event?
Showing modal forms from DragDrop event is REALLY bad idea. Basically you make your app go haywire because it cannot do what windows require of it during DragDrop (including redrawing both DragDrop source (desktop?) and target).
Use DragDrop event ONLY to register what is being dropped and then process it afterwards.