Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
Author | Forum: PowerWEB LiveControls for ASP.NET Topic: Live Wrapper & dotnetCHARTING |
Metrakay From: Hugo, OK USA Posts: 29 Member Since: 02/24/05 |
posted April 29, 2005 1:34 PM Every time I try to use the wrapper around a dotnetCharting chart, I get errors. Apparently I'm not referring to the interior element correctly. Could someone please tell me the correct syntax? For example, I have the following lines of code, and I get the error message that says "Type 'dotnetCHARTING.LegendBox' does not have a property named 'DividerLine'" However, if I remove the lines relating to the wrapper, it works correctly. (dnc is the alias for dotnetCHARTING) <cc1:LiveWrapper id="LiveWrapper2" runat="server"> <dnc:Chart id="Chart1" runat="server" TempDirectory="\Temp" Type="Scatter" style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP: 88px" > <TitleBox Position="Left"></TitleBox> <DefaultLegendBox Visible="True" CornerBottomRight="Cut"> . . . </dnc:Chart> </cc1:LiveWrapper> Thanks, Metra |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted May 2, 2005 9:52 AM Here are the steps I would suggest when attempting to interop with a 3rd party control. 1) Make sure you have the latest version. We just released an update on Friday. You can do this at http://www.dart.com/support/updatecenter.asp 2) Start by adding the attribute LiveControlUpdate="true" to the server tags of the 3rd party control, for example: <dnc:Chart id="Chart1" runat="server" LiveControlUpdate="true"> 3) If this doesn't work, try using LiveWrapper as you did in the example below. 4) If this doesn't work, try replacing the LiveWrapper with a LivePlaceholder If none of these steps work, it is likely that the LiveControls are unable to interoperate directly with the 3rd party control. However, depending on what you want to do, you could add custom javascript to the LiveControl.BufferedScript to update the 3rd party control. |
Metrakay From: Hugo, OK USA Posts: 29 Member Since: 02/24/05 |
posted May 2, 2005 4:19 PM Hi, Jeff. 1) done. 2) done. 3) done. The visual representation of the chart in design mode is gone. BUT, using the view in browser mode, the chart now shows up (first time to get this far), but with errors. 4) done. Still no design representation, still shows up in browser with errors. Same error as before, except before couldn't get the chart to show on the browser and now it does. The error in design view is 'The active schema does not support the element "DefaultElement"' or "DividerLine" or whatever, depending on which line of the build errors you look at. Next? Thanks, Metra |
Hammurabidoug From: Fredericksburg, VA USA Posts: 2 Member Since: 05/09/05 |
posted May 9, 2005 3:45 PM I have a similar problem and it appears to stem from the way 3rd party controls register startup and client script blocks. In my case the 3rd party control registers with events when the page renders (onmousedown, onmouseover, etc.). The LiveControl, then, rewrites the control when making server trips. But, since the client-side event wiring is outside the control in a page-level script, the events are no longer wired to the rewritten control. How can we take advantage of startup and client script blocks that are written outside the controls tags? |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted May 9, 2005 5:00 PM Yes, this is one of the more difficult scenarios to handle when attempting to update 3rd party controls. I would try to use LiveWrapper for the 3rd party control, which attempts to reinitialize the control and rewire any events. If this doesn't work, I would remove the LiveWrapper, and try to figure out how I needed the 3rd party control updated. Then, I would add the custom JavaScript to update what I needed to the BufferedScript of a LiveControl LiveButton1.BufferedScript.Write("document.getElementById('my3rdpartycontol').style.color = '#ff0000';"); |
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
![]() |