Adding/Removing a pane from kendo splitter at runtime - kendo-ui

I want to be able add a new pane/ remove an exiting pane from a kendo splitter without reloading other remaining panes. Is it possible with kendo splitter?

No this is not supported. All the methods the Splitter has are covered here and there is no such method which allows you to insert/remove panes. You need to re-initiailze the whole Splitter.

Related

How to get any info when you click on TreeViewItem?

I have a problem with TreeView item in WPF. I need realize MVVM pattern.
How can I do some actions when I click on any tree element without using events?
For example, when I click on a TreeViewItem, I want add a text into a TextBlock element.

Is there a way to add a ToolTip to an MDI Parent Form in VB6?

I'm currently working on a project that utilizes an MDI Form. What I would like to achieve is that when the user hovers over one of the menu options in the MDI menu, a ToolTipText appears describing what can be found in said menu. I'm aware of the fact that in some options for VisualBasic 6, ToolTip is supported. However, I can't seem to add this to the MDI Form, or add a label control for that matter. Has anyone ever run into this problem, and if so, is there a workaround or a solution?
Please let me know if you have any additional questions or comments. Thank you in advance.
I'm not aware that any true menus on a VB6 for (even non-MDI) have a tool-tip property; hence, neither does the MDIForm when one its child forms has its menu displayed.
However, there are a few controls that can be put on the MDI parent form. The most useful of these is probably the PictureBox, into which you can then place any type of control, such as CommandButtons. It must be "docked" to either the top or bottom of the MDIForm, using the PictureBox.Align property. Controls within the PictureBox can be located any way you wish, and can have their normal ToolTip properties set.
Another MIDForm-usable control that I've had good luck with is the ToolBar control, which comes in as part of the CommonControls component. Like the PictureBox, it has a .Align property to set it to the top or bottom of the MDIForm. You can put any reasonable number of "buttons" on it, and have reasonable control over their appearance (graphics, etc.); apropos the OP's query, you can assign a ToolTip to each button. It wouldn't be difficult to have the buttons change depending upon the currently-active form, just as the MDI menus normally do.
One other alternative that can be considered (but may be quite tedious to implement) could be reading the Mouse.X and Mouse.Y properties for each MDI menu and setting the captions of a Label control (or TextBox) using the Mouse Hover event.
You'd need to find the top left and bottom right points for each MDI menu and if it is within the box, you can show your label control with the intended caption. But note that you can't just put any controls on an MDI Form except maybe PictureBoxes, Toolbars and Coolbars, etc.
So the Label or TextBox control would have to be first placed on top of a PictureBox control which can be top aligned.

Select a webview using applescript in an application

I'm using Applescript to open an application, said application has a webview. I'm trying to select only the webview. Structure of the application appears below. The "Hello" portion is the webview I want to select. I was trying 'UI element 9' but it appears sometimes the app opens and re-orders the controls. In the below iamge, I want the control whose text is 'Hello', which is a WebView.
I would like in the following script to know how to replace UI element 9 with web view 1 or something similar. I just don't know the way to target the webview element.
set i to scroll area 1 of UI element 9 of splitter group 1 of the front window
Looking for Applescript dictionary, I can't find 'web view', but only following UI elements :
browsers, busy indicators, buttons, checkboxes, color wells, columns, combo boxes, drawers, groups, grow areas, images, incrementors, lists, menus, menu bars, menu bar items, menu buttons, menu items, outlines, pop overs, pop up buttons, progress indicators, radio buttons, radio groups, relevance indicators, rows, scroll areas, scroll bars, sheets, sliders, splitters, splitter groups, static texts, tab groups, tables, text areas, text fields, toolbars, UI elements, value indicators, windows.
You can also call/refer to UI element by its name (if any) like :
click menu "File" of menu bar 1
instead of
click menu 3 of menu bar 1
(third menu is usually File menu, after "Apple" and "application")
However, it could be that your application did not defined a name for the relevant UI Element, then only index can be used !

Scroll management for LongListMultiSelector

In my WP8 application I use LongListMultiSelector and I would like to save it's scroll position when application is closed or tombstoned and then restore it when application is opened again. I will also need to scroll it programmatically to a specified item or specified position with animation when application is active.
The problem is that so far I can't find any methods on LongListMultiSelector that will allow me to scroll it with or without animation to a specified item or position. I also can't find methods that will allow me to get a list of all current items so I could choose of them to which one to scroll.
It can't be that scrolling is unmanageable on LongListMultiSelector so I'd like to get your advice on how I can get to this scroll functionality.
LongListSelector is kind of a "smart" controls. It means it has very complex behaviour but if you need to change it - better you shouldn't...
You have two options:
Write your own behavior on top of the content of the LongListMultiSelector. It contains primitives:ScrollBox control inside it.
Use standard LongListSelector and implement native ScrollTo method and your own multiselection. Multiselection is a simple task, ScrollTo is quite tricky since you basically can't scroll to position, only to item.

Sencha Touch 2 - Add (form) components in NestedList and scroll as one

I have a panel which displays three components:
Ext.field.Select
Ext.field.Search
Ext.data.NestedList
Component 1 and 2 are used by the end-user to filter the lists content.
Both component 1 and 2 are added to the NestedList items collection after the NestedList is initialized. This works perfect. The issue here is that only the data in the NestedList scrolls. The other components stay on-top.
What I would like to achieve is that both component 1 and 2 stay on top of the NestedList and scroll together with the list. So if you would scroll down vertically, they would scroll out-of-screen.
Making the panel where the items reside in scrollable: true does not work because then the NestedList itself is being moved up/down and not the lists data.
Does anyone have some Pseude-code how I could achieve this? Or a direction in where I have to look? I played around with docking and several layout but it does not seem to work out. Maybe this is not (easily) possible with the framework?
You can achieve this by setting scrollDock : 'top' in your components config section. If you then add the component to a NestedList (or normal List) item collection, the component will stay on top - and scrolls nicely with the other list items.

Resources