Jump to content
Software FX Community

some questions


User (Legacy)

Recommended Posts

Posted

A couple of questions:

Can the ChartFX chart be extended? (is it "sealed")

Is it possible to add a command to the web client control which causes a

postback to the server? I would like to make changes to my data and save it

back to my database.

Regards,

Chris

Posted

The Chart class is not sealed.

There might be licensing consideration when deriving a class from Chart.

If you are deriving it simply to use it in your own app then as long as you

have a license when you compile your app (exe) you are ok.

The client component gets a little tricky, because it is the server

component who generates the <OBJECT> tag, it will always generate a

reference to Chart FX client, not to your control.

All custom commands are client-side, they do not produce a postback.

What you can do is add your own command and then in the JavaScript

(client-side) capture the UserCommand event and make a postback to the

server as some other event (e.g. a push button).

--

FP

Software FX, Inc.

Posted

Thanks for the reply.

I will be deriving from the Chart class simply to set some properties that

are the same throughout my entire app. This will save me having to set them

every time. this should not affect the client control, should it?

Do you have a sample for the JavaScript postback?

Thanks again!

"Software FX Support" <support@softwarefx.com> wrote in message

news:1A0j%23WmVEHA.3292@webserver3.softwarefx.com...

> The Chart class is not sealed.

>

> There might be licensing consideration when deriving a class from Chart.

>

> If you are deriving it simply to use it in your own app then as long as

you

> have a license when you compile your app (exe) you are ok.

>

> The client component gets a little tricky, because it is the server

> component who generates the <OBJECT> tag, it will always generate a

> reference to Chart FX client, not to your control.

>

> All custom commands are client-side, they do not produce a postback.

>

> What you can do is add your own command and then in the JavaScript

> (client-side) capture the UserCommand event and make a postback to the

> server as some other event (e.g. a push button).

>

> --

> FP

> Software FX, Inc.

>

>

Posted

If you are talking about deriving a class form

SoftwareFX.ChartFX.Internet.Server.Chart (Web Forms component) that should

be no problem at all (provided that all servers using your component are

licensed to use Chart FX).

As for the JavaScript code, check out the following article for information

on capturing Client-Side events:

Q7121019. Accessing Chart Events from the Client-Side when generating .NET

Client Controls

Then to post-back, this is .NET stuff. If you see the source of any WebForms

page (where there are WebControls firing events), you can see that PostBack

is simply a call to a JavaScript generated by ASP.NET, you will see

something like this:

function __doPostBack(eventTarget, eventArgument)

There is a way to obtain this from the page: Page.GetPostBackClientHyperlink

you can read about this in MSDN.

--

FP

Software FX

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...