Multiple Windows in Extjs - extjs

I'm having a situation in Extjs where I have to display one window for 3 button clicks. Let me be clear, I have one window "A", that "A" window I have to show on click of Button 1, Button 2, Button 3. Is there any way to do this because of course, I'm getting the duplicate id error while I'm accessing the same window on Button 2 and Button 3 clicks. BTW I want to show all 3 windows on the page at a time.

Related

WPF check button command or click event is done

I have a WPF UserControl contain a button,
I want to when I click on button, button content change to other text and after run command or user click event, button content change to other text.
for example :
1- Button text = click me (before click)
2- Button text = please wait (after click)
3- run user click event Or command
4-Button text = it's done (before click)
I can pass step 1 and 2 using button click event,
also pass step 3 by UserControl ButtonBase.Click event.
I don't know how to pass step 4.

Click button until button disappears from webPage

I have web page in which it displays only 10 items if there are more then 10 items on the page then show more button displays, so need to click on show more button to see more then 10 items.
Problem is when I click on show more button it will display 10 more item and then again i have to click show more button to see next 10 more item and once all items are displayed on the page then show more button disappears from page.
Here I want to click show more button until all the items are displayed
How to achieve this using Selenium + Web driver?
Until "show more" button present keep clicking on that link in loop.
while(isElementPresent(By.linkText("Show more"))) {
driver.findElement(By.linkText("Show more")).click();
Thread.sleep(100);
}
Check here for isElemenetPresent() methods implimentation.
P.S : For safety break the loop after reaching some max limit.

Radio Buttons not passing tab order as expected

I have a group box containing 4 radio buttons and then 10 regular button. I have Visual Studio's "Tab Order" view enabled here in the screenshot below:
When I run the application and try to tab over everything, the GroupBox (3) gets focus, press Tab, 3.0 (Radio Button #1) gets focus, Press Tab then 4.0 gets focus, 4.1, 4.2 etc.
I tried to search around for a fix, but everything seems to be ASP related.

WPF window and element focus

I've got a WPF form inside a window and a short series of events like this:
1) 1st form has series of selection buttons
2) Clicking a button brings up a progress bar window over the existing window
3) Progress window closes and 1st form switches to a new 2nd form using page navigation
The problem is that the 2nd form (and the entire window) no longer has any focus and what's really killing me is that the window is no longer getting OnKeyDown() calls (it's still the top winow). If I hit the tab key the first menu option is highlighted and the following key stroke will fire a OnKeyDown(). Also, if I alt-tab to another app and then alt-tab back to my window it will begin receiving OnKeyDown() again.
How do I figure out where the focus is after the dialog?
If you are using navigation then the focus will have switched to the Page that you have navigated to, assuming that it is Focusable.
You can check that by setting up a breakpoint in a Focused event handle for the Page.
Alternatively you can use an explicit control.SetFocus() in the page.Navigated handler.

How to handle multiple usercontrols in windows 8?

In my mainpage i added around 15 user controls and 10 more button images.Whenever click on particular button image displaying corresponding usercontrol.usercontrol having close button to close that control.my question is if user not closing particular usercontrol and click on another button image it's displaying another usercontrol.How to close previuos usercontrol when click on another button image. general idea we can disabling usercontrols by it's visibilty property when click on other button.But in my case so many usercontrols and buttons are there.it's hectic to write code like that for close previous usercontrols .Any other ideas to close that ?

Resources