All Answers

0 votes
In reply to: Direct Print

It’s not possible to print directly in JavaScript without the print dialog with any browser.

  • Luca answered Jan 3, 2017 - 4:30 pm
1 vote

Hi Alexander,

Try the attached sample. It shows how to dynamically create a cell editor and how to store the custom value in the cell. It displays 10 columns and 1000 rows and creates 5 different cell editors on different rows: DateTimePicker, ComboBox, NumericUpDown, TrackBar and TextBox with auto suggest list.

The sample is somewhat rudimentary since it creates a new editor each time edit mode is started. You can cache editors or create new ones according to your requirements.

You can also assign the Column.Editor property only once instead of recreating the editor each time.

Additionally, if your editor implements the IDataGridViewEditingControl interface you don’t have to store the custom value in EndEdit.

HTH

Best,

Luca

 

  • Luca answered Dec 30, 2016 - 11:29 pm
  • last active Dec 30, 2016 - 11:30 pm
2 votes

Hi Adil,

Looks like an error being returned by a proxy on your network. You need to login and allow your machine to reach the internet.

Best,

Luca

  • Luca answered Dec 30, 2016 - 10:40 pm
0 votes

Hi Chris,

thanks, we already noticed this problem and fixed it in our build but it is not yet released.

We´ll keep you updated.

Best regards
Frank

0 votes

Hey Luca,

Just updated to the latest build and it seems to have broken the alignment part of this.  It’s fine when it loads, but messages added afterwards end up outside the bounds of the control.  It will fix the alignment if I resize the panel, but then will resume adding messages down beyond the control bottom.

Any ideas on how to fix that?

Thanks,

Chris

1 vote

In addition to Tiago’s answer, Visio should be able to save to SVG or HTML. If you save to SVG you can assign the SVG file to a Wisej.Web.PictureBox controls.

If you still want to use the ActiveX viewer (IE only), add this to Web.config:

<system.webServer>
...
<staticContent>
  <mimeMap fileExtension=".vsdx" mimeType="application/vnd.visio" />
 </staticContent> 
</system.webServer>

Needed to serve vsdx files.

Then in a Wisej.Web.HtmlPanel add this HTML:

 

<object classid="clsid:279D6C9A-652E-4833-BEFC-312CA8887857" width="500px" height="500px">
 <param name="BackColor" value="FFFFFFFF">
 <param name="AlertsEnabled" value="0">
 <param name="ContextMenuEnabled" value="1">
 <param name="GridVisible" value="1">
 <param name="HighQualityRender" value="1">
 <param name="PageColor" value="16777215">
 <param name="PageVisible" value="1">
 <param name="PropertyDialogEnabled" value="1">
 <param name="ScrollbarsVisible" value="0">
 <param name="ToolbarVisible" value="1">
 <param name="SRC" value="[Name of the vsdx file]">
 <param name="CurrentPageIndex" value="1">
 <param name="Zoom" value="-1">
</object>

The options are probably documented somewhere on MSDN. This is what I get in a Wisej sample app:

  • Luca answered Dec 23, 2016 - 7:29 pm
0 votes

ActiveX is supported only by Internet Explorer (IE supports about all legacy stuff). I guess ActiveX isn’t a good choice.

There are free plugins/addins for Chrome and Firefx by https://www.lucidchart.com/ They also have free online Visio Viewer solutions. I don’t know how free they are but I guess that’s the best bet.

  • Tiago (ITG) answered Dec 23, 2016 - 5:40 pm
  • last active Dec 23, 2016 - 5:41 pm
0 votes

Hi Luca

and thanks again for the answer. This really helped a lot.

Best,

Marcel

0 votes

You can handle the session timeout by handling:

Application.SessionTimeout += (s, e) => {

     e.Handled = true;

    // Show your message (not modal).

};

When the session timeout event is fired, the session is already timeout out. You still have the “session timeout” period until it is disposed and everything is lost. You can also force a session to terminate by calling Application.Exit().

You can handle any exception fired on the server side before it is sent back to the client:

Application.ThreadException += (s, e) => {


   // Display the error, or do anything you need to do.
   // Once the event is handled (attached), the system will not
   // send the exception back to the client.

};





 

  • Luca answered Dec 23, 2016 - 12:01 am
0 votes

Thanks it worked!

But how about other forms like

–Session timeout form– “Your session has expired” “Please close the browser”

–Invalid session form

  • Ser Gar answered Dec 22, 2016 - 11:26 pm
0 votes

Although this might look like an innocuous change, I’m not sure that changing the Windows Forms behaviour is a good idea.
I think the principle should be: keep Windows Forms behaviour unless there is a very good reason to change.

Examples of very good reasons:

  • make the behaviour Web compatible
  • implement DataBinding (Windows Forms has some inexplicable shortcommings on this field; the “new” MVVM development model depends on DataBinding)
  • expand control features

 

  • Tiago (ITG) answered Dec 22, 2016 - 8:00 pm
  • last active Dec 22, 2016 - 8:01 pm
0 votes
In reply to: Gridlines in ListView

It’s a theme property. I can send you a mixin.theme definition. Vertical, horizontal or both?

  • Luca answered Dec 22, 2016 - 7:56 pm
0 votes

Nope, need to correct myself. It’s not a bug, it’s the correct behavior – can see the same in WinForms. The (Name) property in the designer is the name of the object, not the name stored with the MenuItem instance.

I can log an enhancement to see if changing this creates problems.

Best,

Luca

  • Luca answered Dec 22, 2016 - 7:19 pm
0 votes

Looks like a new (old) bug. The Name is not serialized in Designer.cs. It may be related to an intermittent bug that caused the loss of child menu item relationship when using the designer. This could be the reason – and we had not noticed this before.

Thank you!

Luca

  • Luca answered Dec 22, 2016 - 7:08 pm
0 votes

Hi Marcel,

I have attached your sample app modified to use infinite scrolling. You can also easily change it back to use a button at the end of the scrolling. Notice that instead of disposing and recreating the button (now a label) I have simply re-added it to the Controls collection after adding the additional child panels – it will go to the bottom automatically.

HTH

Best,

Luca

  • Luca answered Dec 22, 2016 - 7:04 pm
0 votes
In reply to: view questions

Hi Franck & Luca,

thank’s a lot! It’s perfect with the new version.

It’s nice to see how fast you improve your solution.

Best regards,

Henry

0 votes
In reply to: view questions

Hi Stéphane,

can you please retry with the latest build (1.3.18)

Best regards
Frank

0 votes

Hi Alex,

fix for WJ-7894 is included in the latest build (1.3.18).

Best regards
Frank

0 votes

Hi Alex,

WJ-7891 fix is included in the latest build (1.3.18).

Best regards
Frank

Showing 9861 - 9880 of 11k results