Jump to content
Software FX Community

catching commandIds within the properties window


Recommended Posts

 Hi Guys,

 I'm trying to handle the stacking of bar charts in javascript.  I've got a chart wrapper control that sets data into groups for stacking.  Since stacking will not be displayed correctly if there is a line chart inbetween stacks, reordering of the series is required. 

I've attached the javascript code to the InternalCommand to try and capture the commandId and also to see what stacking choice was selected, see code below:

  <script language="JavaScript" for='<%=mChart.UniqueID %>' event="InternalCommand(sender, args)"> <!-- alert(args.CommandId);   var chart = document.getElementById('mChart');   if (chart.Chart)   chart = chart.Chart;   alert(chart.AllSeries.Stacked); -->   </script>

The commandId is always 29696 which is the id for the "Apply" button.  What I want is the CommandId of the stacked options i.e. stacked, stacked100.  Also, is there anyway to get the type of stack selected from the chart object?  The AllSeries.Stacked only returns true and false.

Not sure if this is the best approach to take.  Ajax is not an option so it's either reorganising the data through javascript or handling the chart on a postback.

Is there any documentation available on what JavaScript objects, functions and properties are available for use?


Any help would be appreciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...