All Answers

0 votes
In reply to: DataGridView scrolling

Hi Luca,

the listview too scroll by row units… if we use high rows, it is difficult to see well when scrolling.

have you an alternative suggestion to datagridview or listview, a grid that can contain controls and have the header row?

 

0 votes

The fore color  is gray at any theme. You can try it.

  • wzhou answered Aug 3, 2018 - 2:57 am
0 votes

OK, I figured out that I need to pass the WiseJ GoogleMap widget into external Javascript, because “Google doesn’t provide any way to retrieve a map from an id or an element.” (Luca 4/27/18)

External Javascript:

//pass in a WiseJ googlemap object. call getbounds on it and return value
function getMapBounds(googleMap) {
var map = googleMap.map;
return map.getBounds();
}

 

.NET

”Call gmapHelper javascript, function getMapBounds. Pass in our GoogleMap WiseJ widget, have a callback that can access the return value.
Application.Call(“window.getMapBounds”, Sub(a As Object)
AlertBox.Show(a.ToString)

End Sub, Me.mobjGoogleMap)

 

I imagine I can do the same thing with .getCenter() , and I’ll have to detect when it might be updated by some other event than MapPropertyChanged().

So I think this might be sufficient, but I definitely appreciate you guys updating and continuing to improve the WiseJ GoogleMap component so it is as useful as possible

 

–Andrew

0 votes

On another note, it would also be useful to know the boundary of the map viewport at any given point in time.  This can be done in Javascript by calling map.getBounds()

Question is, what’s the best way to make use of that server side?

I know how to call it in an external JavaScript file, and then pass the value back in a WebMethod, but that would be a somewhat sloppy way of doing it as it would interrupt the flow of code.

Should I use a Javascript extender , with callback Action(Of Object) like

mobjGoogleMap.Call(“this.getBounds()”, Sub()
(somehow receive the LatLng result object here?)
End Sub)

 

I tried this and got a stack overflow.
mobjGoogleMap.Call(“this.getBounds()”, Sub(latLngAs Object)
AlertBox.Show(a.ToString)

End Sub)

 

 

thanks for bearing with me.

0 votes

Hi wzhou,

The fact is that – unlike WinForms – in Wisej the DataGridView control can act as a container for other controls. This gives DGV an extra level of flexibilityas as controls can be docked into th DGV, etc.

The DGV with embedded navigator sample is just plain visual, in the sense the sample doesn’t do anything. It just shows how to embed other controls into a DataGridView.

On one windows you hava a DGV with an embedded BindingNavigator. On the other window, you have a FlowLayoutPanel embedded. Why a FlowLayoutPanel and not a plain Panel? Because you want the buttons on the right side of the “of {0}” label to move as the text label gets longer or shorter.

From the visual point of view, I prefer the FlowLayourPanel over the BindingNavigator. But that’s up to you.

If you like the FlowLayourPanel, you can use the sample as a starting point to make a re-usable control of your own, add navigation functionalities , etc.

  • Tiago (ITG) answered Aug 2, 2018 - 4:22 pm
  • last active Aug 2, 2018 - 4:23 pm
0 votes

well, the bouncing in Iphone is fixed with css.

in Android with firefox there is a little problem of scrolling, but with chorme it is impossibile to scroll

is it fixable?

thanks

Cristian

0 votes

Hi Tiago,

thank you, not bad! it is displayed well

with Samsung Galaxy S7 is a bit flicker, with Iphon 8 it’s smooth but when you scroll down, the whole page goes down next bounces

is it possible to improve these things?

very thank you

Cristian

0 votes
In reply to: Camera Access

It’s a skeleton project not implemened yet. You can use the webrtc camera library directly in Wisej without a specific extension. Most extensions are just a way to make it easier to use third party widgets. Otherwise they can all be used directly.

  • Luca answered Aug 2, 2018 - 3:03 pm
0 votes
In reply to: Mixins and Polymer

They are referring to their mixins. Mixin in javascript is something that adds/overrides the members of an object. The technique used to apply  mixins is specific for each framework.

Wisej has javacript mixins (usually the class name starts with M) and theme mixins.

Wisej themes can be used easily to style any third party widget but you need something in between. You can create a wisej javascript class with themeable peoperties and use the apply function to transfer the theme to the imported widget. Or use the simpler theme resolvers to read theme values.

If you attach a small sample and indicate what you’d like to theme using Wisej themes I can put together a sample.

  • Luca answered Aug 2, 2018 - 2:58 pm
0 votes

Hi Mark,

What Wisej version are you running?

0 votes
In reply to: FolderBrowser

Hi Angeles,

I’m sorry but it’s difficult to read your message. I quote it below to make it easier to follow up

Ggood day

I’m passing a form to wisej

in this form I use folderbrowser but I realize that wisej does not have this,

could you help me solve this problem, thanks.

 

Wisej has OpenFileDialog controls as well as a SaveFileDialog.

HTH

1 vote

Hi Cristian,

Please have a look at Responsive example in GitHub.

0 votes
In reply to: Theme mixin

Hi Tiago,

Here are the two appearances for two different tree view.

 

 

0 votes

Hi again,

There is another possibe approach. An example will be posted on GitHub examples repository. Will notify when ready.

0 votes

Hi wzhou,

Tools (aka ComponentTool) have no Text property.

For the functionality you describe, you should use a BindingNavigator.

0 votes
Hi Luca
 I found that this works with the context variable being set during the page load event.
  private void textLat_TextChanged(object sender, EventArgs e)
{
if (textLat.Text != “”)
{
Staffgeolocation.PositionChanged -= Staffgeolocation_PositionChanged;
context.ClearError();
    context.Items.Add(“Sent”, “Message Sent”);
obj.ProcessRequest(context);
textResult.Text = context.Items[“Str”].ToString(); [One of a set of response values]
   }
}
I could not get the ASHX to make any changes to the context, except by the addition of Items, so by adding items before calling the hander I can process them in the handler and add new items in the handler which the client can receive. I am probably missing something somewhere.
However this also works:
    WebClient webClient;
using (webClient = new WebClient())
{
string test = webClient.DownloadString(@”Http://” + context.Request.Url.Authority + “/PPapiHandler.ashx?P=New Message”);
}
Which will result in the API calls originating from the server?
< If you mark the handler as reusable, the server will always use the same instance so you don’t even need statics.>
Does this mean that the handler executes in a new thread but retains the previously set variable values contained within it?
  • Ewan Walker answered Aug 2, 2018 - 12:50 pm
  • last active Aug 2, 2018 - 2:13 pm
0 votes

Hi wzhou,

What theme are you using? Did you try other themes?

0 votes
In reply to: Camera HelloWorld

Hi David,

It looks like you found the Wisej.Ext.Camera extension 🙂

1 vote

Hi Diwakar Padmaraju,

As Luca said

For the server side we are going for mono (Linux and MacOS) next year and then for .NET Core.

So you can not do it until next year…

0 votes

Thank you for your reply @Luca . I have a Wisej OWIN self hosted service which uses Wisej web forms for display(based on Wisej OWIN Self Hosted Service). It works fine in Windows. Could you pl give some references or notes on how to build and deploy it in Linux and MacOS?

Showing 6981 - 7000 of 11k results