FusionCharts Forum: Binding FusionWidget in codebehind - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Binding FusionWidget in codebehind

#1 User is offline   boby 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 10-February 10

Posted 10 February 2010 - 01:30 AM

Hi all,..



i had problem to bind FusionWidget in my project,..

may i know, could FusionWidget binding from codebehind(i use VS 2005)

like FusionChart..??



this my code:

--------

public string GetChart2()

{



try

{

StringBuilder xmlDatas = new StringBuilder();

xmlDatas.Append("");

xmlDatas.Append("");

xmlDatas.Append("");

xmlDatas.Append("");

xmlDatas.Append("");

xmlDatas.Append("
");

xmlDatas.Append("");

xmlDatas.Append("");

xmlDatas.Append("
");

xmlDatas.Append("
");



return FusionCharts.RenderChartHTML("/TestDrive2005/Charts/AngularGauge.swf", "", xmlDatas.ToString() , "myNext", "400", "200", false, false);

-------



Thank's



--sory if my english is bad
0

Other Replies To This Topic

#2 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 10 February 2010 - 04:58 AM

Hello,

You can bind XMl to FusionWidets from code behind. You can not, however, use the ASP class for Widgets, as can be done in case of FusionCharts.

Can you please tell us if you are getting any error or only a blank page is being displayed?

Awaiting your reply.

Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#3 User is offline   boby 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 10-February 10

Posted 10 February 2010 - 07:36 AM

yes, i see message error: Invalid XML Data.





thank you for your replay
0

Other Replies To This Topic

#4 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 10 February 2010 - 10:04 PM

Hello,



If you get an "Invalid XML Data" message, it means that the XML data document is malformed.



* Difference in case of tags. should end with and not or

* Missing opening/closing quotation marks for any attributes. e.g.,
* Missing closing tag for any element.

* If you're using any special characters in your XML, make sure they're properly encoded. Like, in dataXML method, % needs to be encoded as %25, & as %26 and so on. In dataURL method, you can provide most of the characters directly, without the need to encode.

* In dataXML method, check for conflict of ' (XML Attribute Character) and " (HTML Parameter Character).

* If you've quotes as part of your data, XML Encode them to ' Example:

* To get more information on what the error in XML is, you can either use the Debug Window (explained next) or open the XML in your browser.



You can also send us the XML you are building so that we can test it.



Awaiting your reply. :)
Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

#5 User is offline   boby 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 10-February 10

Posted 11 February 2010 - 07:34 PM

thank you fou your replay,... :)



in case, i try to take a sample in fusion widget, in fusion widget, this code put in file HTML,..



So.. i try to convert this code into codebehind, and i try to test debug/trace with F11, and i look into XML Visualizer, and result is nothing happen to my variable(xmlDatas)...





StringBuilder xmlDatas = new StringBuilder();



xmlDatas.Append("<chart lowerLimit='0' upperLimit='100' lowerLimitDisplay='Bad' upperLimitDisplay='Good' gaugeStartAngle='180' gaugeEndAngle='0' palette='1' numberSuffix='%' tickValueDistance='20' showValue='1'>");

xmlDatas.Append("<colorRange>");

xmlDatas.Append("<color minValue='0' maxValue='75' code='FF654F'/>");

xmlDatas.Append("<color minValue='75' maxValue='90' code='F6BD0F'/>");

xmlDatas.Append("<color minValue='90' maxValue='100' code='8BBA00'/>");

xmlDatas.Append("</colorRange>");

xmlDatas.Append("<dials>");

xmlDatas.Append("<dial value='92' rearExtension='10'/>");

xmlDatas.Append("</dials>");

xmlDatas.Append("</chart>");



return FusionCharts.RenderChartHTML("/TestDrive2005/Charts/AngularGauge.swf", "",xmlDatas.ToString() , "myNext", "400", "200", false, false);



could you help me for this problem..



thank you :)
0

Other Replies To This Topic

#6 User is offline   boby 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 10-February 10

Posted 12 February 2010 - 12:57 AM

hi,.. i'am just say sory, if i less carefully to read your last message in point 4



Quote


* If you're using any special characters in your XML, make sure they're properly encoded. Like, in dataXML method, % needs to be encoded as %25, & as %26 and so on. In dataURL method, you can provide most of the characters directly, without the need to encode.





i'am forgot if i had charater '%' needs to be encoded as %25.. i'am sory :)



thank you for your attention..



boby
0

Other Replies To This Topic

#7 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 12 February 2010 - 01:43 AM

Hey Boby,



No apologies required on this Forum. It's really our pleasure to assist you.



Happy FusionCharting. :)
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic