All Answers

1 vote

Hi Tung,

using Tools in DataGridView cells is similar to using Tools in TextBoxes:

screen

To define the tools, open the designer, Edit columns and set the properties:

designer

You can handle the Tool click by attaching to the CellToolClick event. ColumnIndex and RowIndex will be included in its event args.

I have put together a small sample that shows all your 3 points listed above:

http://wisej.s3.amazonaws.com/support/attachments/DGVTool.zip

Hope that helps.

Best regards
Frank

0 votes

I’m not sure I understood. When you say “I go back to set ReadOnly=false” do you mean that you set the property back to false and then it disappears from the designer code? If that’s the case it’s normal since the default value is false.

I just tried to set a column ReadOnly=true by hand in InitializeComponent(), opened the designer, and the property is correctly shown to be true. Did I miss something?

  • Luca answered Dec 6, 2017 - 7:34 pm
1 vote

Hi Shawn,

we fixed the problem with disposed controls bound to ListView items (logged as WJ-8597) and the fix will be included in the next Wisej build.

However in your scenario we recommend to precreate the items and progress bars and then just set the value instead of destroying and recreating everything on each tick.

We´ll inform you when the new release is online.

Best regards
Frank

0 votes

Can you send a small test case? The code in the message seems to indicate that on every tick the controls are recreated but never disposed.

  • Luca answered Dec 6, 2017 - 4:20 pm
0 votes

Hi Edmond,

you can host and personalize the viewer simply by copying pdf.js and use the custom option.

Use code like this:

this.pdfViewer1.ViewerType = Wisej.Web.PdfViewerType.Custom;
this.pdfViewer1.ViewerURL = “pdfjs-1.9.426/web/viewer.html?file=[source]”;

This is for the Mozilla Viewer:

MOZILLA_VIEWER_URL: “//mozilla.github.io/pdf.js/web/viewer.html”,

Hope that helps.

Best regards
Frank

1 vote

This one https://mattketmo.github.io/darkroomjs/ seems to be simple.

There are many.

  • Luca answered Dec 6, 2017 - 4:15 pm
1 vote
In reply to: Wisej vs VisualWebGui

No guarantees, like anything else. We use Wisej in our projects, we use a lot of open source code, Wisej js is open source, and we provide the full source code to companies that license it or for free in the event we are unable to maintain it (see https://wisej.com/license-information/).

  • Luca answered Dec 5, 2017 - 5:01 pm
0 votes

Wisej doesn’t generate the designer code, it’s the Visual Studio designer. The warning icons indicate that the html renderer didn’t respond in time for the designer to draw the control. The error you are seeing are coming from the html renderer and it may happen when wisej is trying to “stitch” together additional javascript libraries after the designer has been loaded.

The only thing to worry about is Visual Studio itself.

  • Luca answered Dec 5, 2017 - 4:58 pm
0 votes

That is helpful thanks. So for solution 2, we call Application.StartTask with a lambda expression.  I’m guessing the code can’t be in an external module then? Still figuring out lambda expressions/nested sub syntax in VB — it’s one of those things that code converters do not handle well.

 

0 votes
  1. Application.Eval(“toastr.info(‘Uploading photos…hang tight.’);”) ‘Show toast notification
  2. PhotoEngine.ResizeAndUploadImages(strImageTemporaryFileName, p) ‘Resize and upload files … takes 6 to 10 seconds
  3. Application.Eval(“toastr.clear();”) ‘Fade out toast notification if still there.
  4. Application.Eval(“toastr.success(‘Success, the photos are now live!’);”) ‘Show success toast notification

When you get to step 2, the machine is processing the resize code, which means that the client is not receiving anything until it’s all done. It’s still a request/response cycle. Web workers cannot interact with the html elements at all.

Solution 1: you can add at step 1a Application.Update(this) but it will work only if the client supports WebSocket since it’s a push update and will send back every pending update.

Solution 2: you can process the file in a background task, see: http://demo.wisej.com/ProgressSample and https://wisej.com/blog/progress/, or http://demo.wisej.com/codeproject and related source code. There is also a background task example here: https://wisej.com/examples/

We also have the built-in toast boxes: AlertBox.Show().

I’d go for solution 2.

HTH

 

  • Luca answered Dec 4, 2017 - 9:56 pm
0 votes

Hi Felix,

thanks we fixed that issue (logged as WJ-8591) and it will be included in the next Wisej release.

Best regards
Frank

0 votes

HI Luca!
thanks again for your kind help.

I’ve checked your fixes and they are work just fine for one control.

There is a new problem when i’m adding more then one control.in that case just the last control that renders gets the tooltip value

Thanks for you help again

 

Orel

0 votes

It’s not that easy with ASP.NET forms. It used to drive me crazy and I always ended up having to add javascript to find the submit button using a custom property and make it the default one. https://forums.asp.net/t/985791.aspx?ASP+NET+2+0+Enter+Key+Default+Submit+Button

With Wisej you can decide what to do when the user presses Return in several ways, here are two:

 

  1. Set the AcceptButton property of the form to the button that you want to click when pressing Return. There is also the CancelButton property for the Esc key.
  2. Use the Accelerators property on a container (any container) and the Accelerator event. The Accelerators collection lets you define a number of keys that when pressed in any of the child controls at any level trigger the Accelerator event at the container level. The event’s args contain the key and the control that had the focus when the key was pressed.

HTH

 

  • Luca answered Dec 2, 2017 - 11:00 pm
0 votes

Session cookies are deleted when the browser is closed. Closing a tab is the same hitting refresh for the browser. There is no type of cookie that is removed when closing a browser tab. This same behavior is present with ASP.NET/MVC when using the ASP.NET session.

With Wisej you can change it in two ways:

  • Clear the session cookie when the tab is closed by adding:

<script>
window.onunload = function () {
document.cookie = “Wisej.SessionId=;”;
}
</script>

The downside is that a simple refresh will also delete the cookie and create a new session.  Adding an argument to the URL will also be perceived by the brower as a tab being closed so the session will be lost as well with the code above.

  • Add “cookieless”:true to Default.json.

Wisej will add the session id to the URL and ignore the cookie. A refresh will preserve the session. Closing the tab will lose it.

 

 

  • Luca answered Dec 2, 2017 - 10:54 pm
0 votes

Solved the issue -and I should have looked here much earlier – in Windows Event Viewer – I was able to see the full stack trace. An exception was logged regarding the webconfig file.

Webconfig had an extra bracket at the end of one line.

0 votes

Hi,

The problem is solved by cleaning the solution manually, remove all files having DLL / PDB extension, and delete the “.vs” subfolder.

Regards,

Felix CHAN

0 votes
In reply to: DesktopTaskBarItem

Also You can add a desktopTaskBarItem. On your Desktop click event do something like this:

 


private void MyDesktop_ItemClick(object sender, DesktopTaskBarItemClickEventArgs e)
{
try
{
switch (e.Item.Name)
{
case "desktopTaskBarItemFacturacion":
Facturacion.WindowFacturacion Facturacion = new WisejEscritorio.Facturacion.WindowFacturacion();
Facturacion.Show();
break;
case "desktopTaskBarItemCompras":

break;
default:

break;
}
}
catch (Exception ex)
{
MessageBox.Show("Error en la aplicación." + ex.Message);
}

}

0 votes
In reply to: Trial License Expired

Hi,

can you also extend my trial license? I´m also not able to do it by myself.

Thanks.

0 votes
In reply to: Office 365 Viewer

Thank you.

0 votes
In reply to: Office 365 Viewer

Hi Arturio,

if you´re using Visual Studio 2012 or 2013 you need to install this addition to compile our extension as it uses C#6 syntax:

http://alextselevich.com/2015/08/using-c-6-0-in-visual-studio-2012-and-2013/

Hope that helps.

Best regards
Frank

Showing 8101 - 8120 of 11k results