All Answers

0 votes

Hi Shawn,

Maybe the grid is sized outside of the user control and the scrollbar is outside? Check in Chrome with F12. I tried this as well and I don’t see any different with the grid being inside a container. See attached screenshot. The grid in the middle is in a user control.

Best,

Luca

  • Luca answered Mar 2, 2017 - 5:17 pm
0 votes

Hi Felix,

We have a LiveResize property that defaults to true for the ListView and false for the DataGrid where it can be changed. It’s not exposed for the ListView, will add. When LiveResize is false, you can move the splitbar without any event until the column is resized.

The ColumnReorderd event is fired twice, which is a bug, it should be fired only once. Will log and fix.

Thanks,

Luca

  • Luca answered Mar 2, 2017 - 5:04 pm
0 votes

Hi Felix,

We cannot render transparencies in the designer. Each control is rendered individually and when the color is transparent it will show the background of the design surface which if the inherited background. Otherwise the designer would have to render all the parents before finally rendering the single control. It can be done, but it’s complicated and we left it out for now.

In addition to that, the GroupBox control always inherits the background of the parent (or uses its own) for the label, otherwise you see the line of the frame going across the label. We couln’t use the <frameset> element because it renders very differently in different browsers and it’s close to impossible to style correctly with css. Other themes (or theme changes) may show the label above the frame, in which case the group box can be fully transparent.

Best,

Luca

  • Luca answered Mar 2, 2017 - 4:55 pm
0 votes

I played with it some more and I am not sure what is going on.

If I create a new DGV, and bind it to custom object it seems to work ok in my short test.

Is there any issue in the DGV being in a user control? (That is where it isn’t working).

I am not sure that there isn’t something else wrong with my form that the user control is in.  I can’t change the size of the form, maybe I used a popup template instead of a form template.

  • Shawn Ramirez answered Mar 2, 2017 - 2:29 am
0 votes

Hi John,

I don’t have a specific book to recommend. But to get into Wisej development your winforms C# experience is already a major advantage since 99% of the development and design is very similar if not identical.

To learn more about cookies, IIS and session variables I’d experiment with plain ASP.NET. Most of the features you mentioned are available with similar names and something using the same classes (i.e. CookieCollection).

In Wisej you will find everything application-related under the static Application class: Application.Session, Application.Cookies, Application.MapPath, Application.Browser, etc.

The rest is just C#/VB.NET and .NET bindings, data connections, connection pools. Obviously you have to code or migrate thinking that instead of 1 user, your app will have several. So if you may want to reuse some data sets, or make sure not to hold on too many open connections. Just like you’d do in a plain vanilla ASP.NET app.

One interesting feature is that you can share resources across users by saving them in static variables. To share variables across contexts save them in sessions (what was static should become session).

HTH a bit.

Best,

Luca

 

  • Luca answered Mar 1, 2017 - 10:23 pm
0 votes

Hi Shawn,

I quickly tested with a few samples here, but they all seem to work ok, i.e. they show the scroll bars if needed.

Are you using a standard theme ? If not, can you please retry with one of the standard themes.

Best regards
Frank

0 votes

Yesss all works!

my path are

..\Documents\Visual Studio 2013\Templates\ItemTemplates\Visual Basic\Wisej
..\Documents\Visual Studio 2013\Templates\ProjectTemplates\Visual Basic\Wisej

thank you!!!

0 votes

Yesss all works!

thank you!

0 votes

Yes of course, tomorrow I give a feedback

thanks!

Cristian Zerbinati

0 votes

Hi Frank,

thank you very much! Tomorrow I try it and I give a feedback.

thanks

Cristian Zerbinati

0 votes

Hi Cristian,

this seems to be related to: https://wisej.com/support/question/vbnet-template-web-page

Can you please retry with the latest templates, the error should not occur anymore.

Best regards
Frank

0 votes

Hi Cristian,

we have checked and updated our Visual Basic project templates.

You can find them here: http://wisej.s3.amazonaws.com/support/attachments/Wisej.VB.ProjectTemplates.zip

Please unzip and copy them to your user directory\Documents\Visual Studio 201x\Templates\ProjectTemplates\Visual Basic\Wisej

This update will also be included in the next Wisej installer.

Best regards
Frank

0 votes

Hi Ser,

I can’t reproduce. Wisej generates CheckBox columns for bool, bool? and CheckState types. If you have a custom theme try to remove it and use one of the built in themes. Check also if the generated class is DataGridViewCheckBoxColumn and the issue is that you don’t get the checkbox icon. If the generated class is wrong, then the data source is not returning the correct type, or you already have a column with the same data member name.

Let me know.

/Luca

  • Luca answered Mar 1, 2017 - 4:23 pm
0 votes

Thank you. I couldn’t reproduce because it happens when the Desktop (or Page) are inherited because the Dock=Fill is set too soon by the designer. It’s logged as WJ-8068.

  • Luca answered Mar 1, 2017 - 3:31 pm
0 votes

Hi Tung,

thanks for your kind words, that’s much appreciated!

Depending on what you’re after, the Watermark property of Textbox and ComboBox might be what you are looking for. I have used this in similar scenarios as those that you describe. Other than that, you could create your own class that derives from Textbox/ComboBox to handle the Get/Lost Focus events and adds a property for alternative text to show while focused. That way you don’t have to duplicate the code but keep it at one place.

Best wishes
Thomas

0 votes

Hi Luca,

 

I have the old 1.3.37 installed and now I have download and install the new 1.3.37.

However the problem is still here. Attached please find two set of screen captures in the zip file:

— Screen XX.JPGs were captured at the time I create my Desktop in the Designer screen in Visual Studio 2015,

— — Screen 01 show that the everything is centered in the screen,

— — Screen 02 show that the Label have Anchor = Left | Right and the Size is correct.

— — Screen 03 show that the project run in Debug mode, everything look good.

— while the second set of images, Error XX.JPGs, were captured after re-open the Desktop in the Designer.

— Error 01 show that the everything is moved to bottom right of the Desktop.

— Error 02 show that the Label is moved outside of the Desktop visible area and also the size is much bigger than before.

— Error 03 show that when run the project in debug mode, all controls moved to bottom right and some are out of the visual area.

 

I have clean the solution, rebuild, etc… But the problem is still here.

 

Regards,

Felix CHAN

0 votes

Thanks for the info, Luca.  I’ll keep experimenting with the extension.

0 votes

Hi Andrew,

The GoogleMaps extension allows you to read/set any property in the google maps widget without having to map them to a specific C# property, this gives you maximum flexibility with the google maps oobject. The Options object is a Wisej DynamicObject which is basically identical to a JavaScript object but on the server.

However, such a dynamic object doesn’t have any of the initial values unless you initialize those values. When you try to read the zoom property before it’s initialized it simply doesn’t exist. You can check if it exists by comparing to null (or Nothing in VB) or by using the null operators, in VB it’s the If expression: If (nullable, valueIfNull), or  in C# var zoom = Options.zoom ?? 4. In VB.BET Dim zoom as If (Options.zoom, 4) (or something like this).

Another way is to simply set the initial options on your google maps object including the zoom, like the example linked below.

You can also detect live when a property is changed by the user by attaching to MapPropertyChanged event. The event args carry the property name and the new value. I tried the example we have online (https://wisej.com/examples/) and when I zoom the map I get the MapPropertyChanged event and I can also read the new zoom value like this: this.googleMap.Options.zoom.

HTH

Best,

Luca

  • Luca answered Feb 28, 2017 - 3:47 pm
0 votes

Hello Felix,

It depends when the Eval with the javascript is called. If you place it in OnLoad it will be executed only once when the control is created. On refresh the controls are not re-created on the server, only on the client, therefore the Load event is not fired again, which is correct.

If you place the Eval code block like this, it will be executed when the control is created the first time or refreshed. You can place it either in the container or a subclass of the StatusBar:

protected override void Update()
{
   IWisejControl me = this;
   if (me.IsNew && !me.DesignMode)
   {
     // this is executed when the control is marked New which means that the widget is being recreated.
   }
   base.Update();
}

/Luca

  • Luca answered Feb 28, 2017 - 2:50 pm
  • last active Feb 28, 2017 - 2:51 pm
0 votes

This issue was connected to WJ-8063:Changing the Font of a container (Form, Page) causes controls with AnchorStyle = None to be misaligned. which is fixed in 1.3.37. I can’t reproduce anymore also with a Desktop control. Do you get the issue with a plain Desktop control and a single child control with Anchor = None?

Make sure you have 1.3.37, for 1 day it was not installable because the signing certificate expired yesterday and was updated at the end of the day.

  • Luca answered Feb 28, 2017 - 2:46 pm
Showing 9481 - 9500 of 11k results