Aspnet chart control goes away after close of Modalwindow - bar-chart

I have a page which has Usercontrol , and 2 divs (one ASPnet(bar)chart and another grid). When i click on a particular bar in the chart control,i open a page in a modal window with Chart and Grid.All works fine. When i tried to close the modal window, the parent page chart goes away but user control and grid remains as is. What would be problem for the chart not showing on close of Modal window?

The problem was because, using chart series.postbackvalue , makes the chart to postback. Set the value to a string and assign the string value to the chart series URL, will ensure the chart remains static and does not disappear.

Related

paper-dialog: How to properly set backdrop overlay for stacked dialog

How do I set multiple backdrops for stacked paper dialogs?
Only the first dialog shows a backdrop. The second dialog doesn't show one
and I have set with-backdrop on both of them. How do I overlay the first dialog when the second dialog opens because I don't want the first dialog to be clickable when the second dialog opens?
Unfortunately not possible at the moment, but they seem to be working on it. See https://github.com/PolymerElements/iron-overlay-behavior/issues/124

modal window to open when icon is clicked

I have a couple of form definitions in my main HTML file.
I would like to display these forms in a modal window, when the user performs certain action, such as click on an icon.
I have followed an article on how to do it for links (hrefs). But now my requirement is to get the same working for clicking on an icon.
Thank you,
Harriet
The answer is to write a java function, that will explicitly set the location of the window to where you want the url to point - example:
function openPreferences() {
window.location = '#openPreferences';
}
I think the most simple solution would be to create a LinkBlock Element and set the Background to the Icon's Image, which will allow you to turn it into a Link, thus further allowing you to open your Modal Window with it.. Simply create your Modal as Display None, and upon clicking the LinkBlock (with your Icon as the Background), make it change the Modal property to Display Block, etc.

page controller with tab control

I'm using a tabbed application. I want to have a page control in one of my tab views. When I place the page control and link it to another view controller, I can change pages like I want too, but the tab bar disappears completely from the bottom. How can I keep my tab bar to stay even in a different page control view?
Assuming you're doing this in storyboard:
Option-drag from the tab view controller to the target view controller.
A pop up will appear - make sure you pick the 'View Controllers' option under 'Relationship Segue' rather than anything under 'Manual Segue'.

JavaFX TabPane: separate tabs from their content

I would like to create a tabbed JavaFX layout like on the picture below (this is a recent Firefox version window):
Is it possible to somehow insert fixed content between tabs and tab contents when using javafx.scene.control.TabPane? The same fixed content (e.g. address bar and favorites panel on the screenshot) should be shown for each selected tab.
You can share the node with the "fixed" content between tabs, and reparent it to the selected tab's content each time a tab is selected.
Please note that TabPane doesn't seem to be designed with browser-kind usecase in mind. For example, its tabs are not draggable.

Windows Phone Application Bar Instance Remaining Same When Back Key Pressed

I Have Created an application bar in the First Page and when a click occurs, it navigates to the Second Page and creates a new Application Bar in CodeBehind c#.
Till here it is Working fine but when i press the Back Hard Button while on the second page, the application bar instance is still remaining and appearing in first page.
In the ONNAVIGATEDTO method i'm making the instance of the first page appbar as null but it is not working and the previous application bar (of the Second Page) is still showing in the firstPage.
The application bar is different for each page. No need to create it in code behind.
The null assignment does not work because the appbar is not rendered yet. If you insist of doing it in code behind, which is not recommended, do it on page load. There is also an Items.Clear() method you can use to remove the app bar items. You should do it in XAML though.