All Answers

0 votes

I believe that parent strategy can work!

I gonna check it!

Tks

0 votes

Hi Ruben,

the code you posted cannot work as is.

  • If you are using the stream twice you need to rewind it to position 0 before the 2nd call
  • If you do that, does the image show in the picturebox?
  • If it does not show you could try with a real image file first and see if that works
  • If it does work, please store your byte array to a file and see if that shows up

Best regards
Frank

 

0 votes

Hi Luiz,

(User)Popups don´t have a parent to be able to show over all other controls.

But there are 2 easy ways to resolve this:

  • Store your parent in a variable of the UserPopup
  • Use the Opener property

Best regards
Frank

0 votes

You could listen to the CurrentItemIndexChanged event.
To know the previous item you can save CurrentItemIndex property in a local variable.

Best regards
Frank

0 votes

I know I can implement anything inside userpopup (I’ve done), but i need to interact with his parent (viewport).

When I click in something inside Userpopup, I lost my viewport. (Could see the example attached?)

Should I implement tabpages with pages inside them?

Tks

0 votes

I tested the example but the userpopup should be inside the page1.

I have a Viewport with a toolbar, this toolbar will open an userpopup and open all the pages or windows without losing the main toolbar.

How can I do that?

Tks

 

0 votes

Hi Luiz,

please find a sample attached. You can use it as a base and adjust it as you want.

popup

Best regards
Frank

0 votes

Hello

I’ve tried to use the UserPopup with no success, and I didn’t find an example in the GitHub, can you send me one?

Tks

 

0 votes
In reply to: UserPopup Animation

Hi Angelo,

Thanks for finding this.

It looks like a bug in the UserPopup! We logged the issue as #2574 (wisej.com/issues) and have a fix in place for the next build.

As a workaround, you can also add the attached mixin as an Embedded Resource to your project.

To add a mixin to your project:

  1. Create a new directory “Platform” at the root of your project.
  2. Add the .js file under it.
  3. Set the Build Action to Embedded Resource.
  4. Navigate to AssemblyInfo.cs
  5. Uncomment the line: // [assembly: Wisej.Core.WisejResources(ExcludeList: “”)]

You can apply the animation in the designer using the appear or disappear event or use:

this.animation1.GetAnimation();

in the Appear event of the UserPopup.

 

Please let me know if you have any questions!

Best,

Levie

  • Levie (ITG) answered Feb 15, 2021 - 10:31 pm
  • last active Feb 18, 2021 - 12:32 pm
0 votes

Hi Luiz,

you can use a UserPopup for that. It can contain any controls you like.

Please let us know if you need a sample.

Best regards
Frank

0 votes

Hi Ruben,

I have created a small demo application where you can upload images to a Custom Wallpaper.
It should help you to transfer the logic to your requirement.

Please let me know if you have any further questions.

Best regards
Frank

0 votes
In reply to: UserPopup Animation

Hi Levie

Thanks for reply.

For the moment I use your solution waiting the new release.

Best

Angelo

0 votes

Thank you Luca!
It worked like a charm.
I was trying to set the control.Value at the DropDown. Using your JS was exactly what I needed.

I tried using the NullableValue to start with, but got many exceptions thrown while doing that. Maybe I didn’t do it the proper way. I will check further.

1 vote
In reply to: Closing AlertBox

AlertBox and MessageBox don’t exist on the server. When you call the static Show() method the widget is sent to the client and immediately disposed. If you use the close callback to get notified when the AlertBox is closed, and only in that case, Wisej registers a “proxy” component that will receive the “close” event and then gets disposed. Basically the AlertBox is simply a less intrusive alternative to the MessageBox.

You can use the new Wisej.Web.Toast component instead. It lets you create a reference, reuse it and even update it live while it is shown.

var toast = new Toast("Test");
toast.Show();
toast.Close(); // this doesn't dispose it, you can reuse it and call Show() again. When done use Dispose().

 

In the theme it uses the “toast” appearance.

HTH

 

  • Luca answered Feb 17, 2021 - 4:03 pm
0 votes

Ivan,

You can use this in the DropDown event that Alaa mentioned.

this.dateTimePicker1.Eval($”this.getChildControl(‘list’).setValue(new Date(‘{new DateTime(2021,1,15).ToString(“yyyy-M-d”)}’))”);

Or you can use the NullableValue property and set it to null or set Text to “”. The DateTime.MinValue  is 1/1/0001 so 1800 is a valid date.

HTH

 

  • Luca answered Feb 17, 2021 - 3:58 pm
  • last active Feb 17, 2021 - 3:58 pm
0 votes

Hi Levie.

Thank you!
The funny thing is… still not quite there. But definitely a lot better.

Cheers.

Ivan

0 votes

Ciao,

When I click on a datarepeaterItem I make one or more buttons visible. How do I hide them when I switch from one datarepeaterItem to another? (i.e. in datarepeaterItems that lose focus?)

Grazie

Alessandro

0 votes

Hi Ivan,

Thanks for your patience.

It looks like iOS Safari adds a default opacity of 0.4 to disabled inputs. If this isn’t overridden, you’ll see the faded textbox like you mentioned.

We’ve put in a fix for the next build.

As a workaround, you can add the following CSS to your Default.html:

 <style>
 input[disabled] {
 opacity: 1;
 }
 </style>

Please let me know if you have any questions or issues!

Best,

Levie

 

0 votes

Yep, it’s fixed internally. This dev build was problematic.

  • Luca answered Feb 16, 2021 - 2:06 pm
0 votes

Hi again, Alaa.

I was able to accomplish showing a blank box on a pre-set datetime using the Custom Format.

Now I have a side-effect, which happens once the user goes to the control to Enter some date. All fine if they type it, but if they choose to use the Calendar tool on the box, it will show a date way behind, in 01/01/1800. 😀
OK, this might be one of those “you can’t have the cake and eat it too”, but would you know of a way to set this Calendar to Todays date programmatically when the user enters it, if necessary?

  • Ivan Borges answered Feb 15, 2021 - 7:10 pm
  • last active Feb 15, 2021 - 7:11 pm
Showing 4041 - 4060 of 11k results