Jump to content
Software FX Community

.Net Component DataEditor being displayed on fallback image.


User (Legacy)

Recommended Posts

I am using the .Net component and would like to also use the DataEditor.

This all works fine. The problem that I have is that when my user does not

have .Net on there box they get the image. This is good behavior. I rather

have my user get the image then a broken (like you get if you select .net

not auto) but I would also expect that since the DataEditor is likely to

have to relay on scrolling that it would also not be displayed when an image

is displayed.

post-2107-13922365183019_thumb.gif

Link to comment
Share on other sites

The data editor is still display in images. In some cases, this is useful

for people as a "Data View".

If you want to be able to scroll the data editor when generating an image,

you will have to have some interface in your page (e.g. push buttons) to

scroll it and they do a PostBack using the Scroll method in the Data Editor

object.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

I completely agree with what you are saying with the image version of the

"Data View" if the developer has selected IMAGE over AUTO for the HTML tag

property.

In this case the developer always knows that the image will be displayed and

for this reason is responsible for creating the additional interface to

re-post the image and get the next set in the "Data View".

The problem with having the "Data View" always display in AUTO is that when

it cannot display the .NET component it require the developer to detect

whether the client has the .Net framework installed. Why use AUTO if you

have to detect .NET anyhow.

In this case I need to detect for .NET before hand and then render code with

either the HTML tag set to .NET or with the HTML tag set to IMAGE with an

additional interface as you say to scroll the data view using a post back.

So my question is not whether to have the data editor in the IMAGE display

but whether to have it in AUTO when it chooses to display an image.

Some developers may decide that they need to detect and manually set the

HTML tag but others may be happy (myself since only 5% of my users would see

the image) with not having the data view show when an image is displayed.

Iow though I need to take the first rout and am forced to do more work

because even for the 5% I cannot display a partially working "Data View".

I am not looking to argue I just thought I should clarify my point.

I love the work you guys do.

George.

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

news:rrb9%23N%23dDHA.3828@WEBSERVER1...

> The data editor is still display in images. In some cases, this is useful

> for people as a "Data View".

>

> If you want to be able to scroll the data editor when generating an image,

> you will have to have some interface in your page (e.g. push buttons) to

> scroll it and they do a PostBack using the Scroll method in the Data

Editor

> object.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

I'm afraid that will be too arbitrary for us to decide not to display the

data editor when images are generated and the mode is set to auto.

Most people that displays the data editor don't need a scroll bar. What you

are suggesting will mean that then the developers that DO want to display

the data editor when for both IMAGE and .NET will have to do the work. I

think this would be inconsistent.

So, I think it is your case that is special, so you will have to write the

code for detection to hide the data editor when IMAGE is going to be

generated.

It is not that hard to write though. Here is how we do it:

HttpBrowserCapabilities browser = request.Browser;

if (browser.ActiveXControls) {

Version version = browser.ClrVersion;

if (version.Major != 0)

// .NET IS supported

}

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...