All Answers

0 votes

Hi Shahbaz,

if this action is triggered by a button you might want to use the
AutoShowLoader property.

Otherwise you can use ShowLoader e.g. like this

https://wisej.com/support/question/wait-cursor

If you want to customize the loader you will also find information
here, just search for ShowLoader.

Best regards
Frank

1 vote

Hi Christian,

Thank you but… 🙂

  • You can enable the unload confirmation using Application.EnableUnloadConfirmation = True
  • Chrome sometimes completely ignores it and doesn’t show any alert.
  • You cannot display a message anymore, only old IE shows the string.
  • “beforeunload” and “unload” are also fired when refreshing the page (F5 or change the URL with a parameter)
  • Using ajax in “unload” doesn’t work, the browser kills the communication. It may appear to work at times, but it doesn’t because the unload event terminates all ajax requests and you can’t block it. You could use async ajax, but it’s deprecated. Same issue in “beforeunload”.
  • Also, you don’t need jQuery for your test, you can simply put the code in LeavePageQuestion() outside of the function.

Basically it is unfortunately established that it is impossible to detect when the user closes a tab or the browser versus when the user hits refresh or simply navigates or changes the parameters. All browser makers (basically chrome and firefox) have been clear that they do not allow that distinction.

HTH

 

 

 

  • Luca answered Jan 23, 2020 - 3:49 pm
0 votes

Hi Andi,

did you try PerformClick () method.

It should do what you want.

Best regards
Frank

1 vote

Hi Jorge,

To disable:

DataGridView.ShowColumnVisibilityMenu = false;

To disable per column:

DataGridViewColumn.ShowInVisibilityMenu = false;

 

HTH,

Levie

 

0 votes

Thanks Luca.

0 votes

Hi Shahbaz,

If you set Desktop.AutoHide = true and Form.ShowInTaskBar = false, you can make the TaskBar disappear whenever you want.  This should give you the desired behavior!

Best,

Levie

0 votes

The size of the icons is set the theme and since we use svg icons they usually scale wall. Scaling of png images is not done by Wisej, all scaling of all images is done by the browser. Most theme use 20×20, some use 18×18. You can check in the theme on github.

However, when using an ImageList, you can set the scaling image in the ImageList. The TreeView only accepts images from the image list. I tried with a 16×16 png and it’s not scaled at all, which is the correct behavior since the image list is set to 16×16. See attached.

  • Luca answered Jan 21, 2020 - 6:20 pm
0 votes
In reply to: Window AutoClose - Bug

You have Me.AutoClose = True. AutoClose = “Automatically closes the form or dialog when the user clicks anywhere on the browser outside of the form.”

  • Luca answered Jan 21, 2020 - 6:11 pm
0 votes

Hi Adil,

currently it is not possible to set the header text directly
(if you´re referrring to the > as the header).

You can however hide it in the DataRepeaters setting
and define your own header inside the DataRepeaterItem template
and dock it e.g. to the left or wherever you want to show it.

Best regards
Frank

0 votes

Thanks Levie, really appreciate.

0 votes
In reply to: Button rounded corners

Thanks Frank!!!

I know nothing about css/html!
I whish i knew more about it, works perfectly!

0 votes
In reply to: Button rounded corners

Jorge,

the easiest way is this:

this.button1.CssStyle=”border-radius:5px”;

Best regards
Frank

0 votes

Hi Shahbaz,

If you want to disable closing the Window via the TaskBar preview you need to set myWindow.CloseBox = false.

You can hide the TaskBar when it doesn’t contain any windows by setting MyDesktop.AutoHideTaskbar = true.

If you want to completely hide the TaskBar in general, you might find that there is a better solution than using the Desktop control, such as using multiple windows (one acting as a background), but i’ll add the suggestion to manually control the TaskBar visibility as an enhancement and we can try  to get you the feature!

Please let me know if you have any other questions!

Best regards,

Levie

0 votes

Hi Frank,

Ignore my report, i had a DNS issue after i changed one think, so it didn’t loaded the images..

Ignore my report!

0 votes

Hi Dmitry,

You’ll need to convert the mouse coordinates to be relative to the parent control.  I’m attaching a small sample demonstrating both: a chart inside a panel and a chart without any panel.

To convert the coordinates it would look something like this:

private void chartJS1_Click(object sender, EventArgs e) {

        if (this.myLabel.Bounds.Contains(this.myPanel.PointToClient(Control.MousePosition))) {

                AlertBox.Show("Clicked the label!");
        }
}

Let me know if this helps or you need more clarification!

Best,

Levie

0 votes

On IIS

  • Disable Anonymous Authentication
  • Enable Windows Authentication

(Do not enable ASP.NET Impersonation since it doesn’t work any in ASP.NET with the integrated pipeline, it was deprecated long ago).

In Default.json add

“impersonate”: true

In your app check Environment.UserName or Application.UserIdentity. It will be the windows user of the client, if it’s logged in the same AD as the server of course. You can use AD to discover anything you can discover in .NET about the user, the app will act as the user logged in the machine with the browser. So any database connection can use integrated authentication, file system, etc.

 

  • Luca answered Jan 16, 2020 - 7:16 pm
0 votes

Luca

Thank you. I will need to see how to make this work.

Thanks

Ray

0 votes
In reply to: AspNetWrapper - Events

The aspnet check box doesn’t fire the event when it’s checked, it’s all based on a form and post of the data. The asp net wrapper is mean to be used for complex controls like a spreadsheet, chart, word editor. Simple editing controls in asp.net are supposed to work in a <form> and with an the wrapper you end up creating an iframe for each control. Additionally you lose all the focus/enter/leave/validation infrastructure that is not supported in asp.net.

  • Luca answered Jan 16, 2020 - 6:58 pm
0 votes
In reply to: AspNetWrapper - Events

Checkbox example.

  • Ulisses answered Jan 16, 2020 - 6:53 pm
0 votes
In reply to: AspNetWrapper - Events

It works for me. Press enter.

BTW, you don’t need to use Application.Update(), the event is coming from a request therefore anything you do will be sent back to the browser.

  • Luca answered Jan 16, 2020 - 6:33 pm
Showing 5221 - 5240 of 11k results