All Answers

0 votes

Make sure you are using the latest ribbonbar or recompile the ribbon bar project.

  • Luca answered Sep 22, 2020 - 11:28 am
0 votes

yes! solved with upgrade,

thank you

Cristian

0 votes

You need to enable IIS WebSocket on the server. See windows -> features. IIS Express has it built in.

  • Luca answered Sep 21, 2020 - 9:00 pm
0 votes
0 votes

I can reproduce with the 2.2.8 in the distribution. Sorry about that, looks like a build problem…

  • Luca answered Sep 21, 2020 - 4:46 pm
0 votes

The problem is olso in the server:

try it http://test.eprime.it/wisej2409/

Cristian

0 votes

Hi.

I think I have got something new to add to this issue.

In my application, the user lands to a Login Window first. From there, I go to the Main Page on the user’s click to the Login button. This way, the Page gets cropped on the device, but once there, if I Reload the page through the Chrome Reload menu, it refreshes on a proper way and the entire page is shown. So, I changed the application to skip the Login Window and go straight to the Main Page and in this way, the page just loads correctly the first time.

So, there is something here when navigating from the Login Window to loading the Main Page.

As a workaround, I thought of programmatically calling a Reload after the Main Page is “Shown” in case of Phone Profile, but haven’t found out how.

Hope this helps in getting to some solution.

Cheers.

Ivan

0 votes

if I remove the readonly attribute on column0, the error don’t show

0 votes

if I remove the readonly attribute on column0, the error don’t show

0 votes

Hi Luca,

now I have 2.2.8.0

unfortunately the error it comes out to me, and it does it on both my computers. Windows 10 and Visual studio 2019 updated

have you try to enable all exceptions in Visual studio?

 

Riferimento a un oggetto non impostato su un’istanza di oggetto in Wisej.Web.DataGridViewCell.set_ReadOnly(Boolean value)
in Wisej.Web.DataGridViewRow.DetachFromDataGridView()
in Wisej.Web.DataGridViewRowCollection.RemoveAtInternal(Int32 index, Boolean bulk)
in Wisej.Web.DataGridViewRowCollection.RemoveAt(Int32 index)
in Wisej.Web.DataGridViewRowCollection.Remove(DataGridViewRow row)
in dgvreadonly.Window1.Button1_Click(Object sender, EventArgs e) in C:\Users\Predator\source\repos\dgvreadonly\dgvreadonly\Window1.vb:riga 12
in Wisej.Web.Control.OnClick(EventArgs e)
in Wisej.Web.Button.OnClick(EventArgs e)
in Wisej.Web.Button.PerformClick()
in Wisej.Web.ButtonBase.ProcessExecuteWebEvent(WisejEventArgs e)
in Wisej.Web.ButtonBase.OnWebEvent(WisejEventArgs e)
in Wisej.Web.Control.Wisej.Core.IWisejComponent.Event(WisejEventArgs e)
in Wisej.Web.Application.ProcessWebEvent(WisejEventArgs e)
in Wisej.Web.Application.OnWebEvent(WisejEventArgs e)
in Wisej.Web.Application.Wisej.Core.IWisejComponent.Event(WisejEventArgs e)
in Wisej.Core.ComponentManager.DispatchEvents(Session session, ICollection events)
in CallSite.Target(Closure , CallSite , ComponentManager , Session , Object )
in Wisej.Core.ResponseManager.&lt;&gt;c__DisplayClass25_0.<onevent>b__0()
in Wisej.Core.IWisejSynchronizedImplementation.Lock(IWisejSynchronized target, Action action)
in Wisej.Core.ResponseManager.OnEvent(Session session, Object message)
in CallSite.Target(Closure , CallSite , ResponseManager , Session , Object )
in Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message)

 

 

0 votes

I cannot reproduce with 2.1 and 2.2. Is this the right sequence?

2.1

https://drive.google.com/file/d/1QO5GszD4wU5Crsg0H-QKZrYl3r8OrVJ-/view

 

2.2

chrome-extension://mmeijimgabbpbgpdklnllpncmdofkcpn/ng/app/app.html#/files/bfcb45a0-2173-4650-y1d4-4251af0f5843

  • Luca answered Sep 21, 2020 - 2:01 pm
0 votes

Hi Levie,

Issue #2409 si closed, today I have update to 22.8.0 but the bug is still present.

I can not use datagrid

bye

Cristian

0 votes
In reply to: Migration guides

We have updated the Migration Whitepaper to cover Wisej 2 and added a few more hints:

http://wisej.s3.amazonaws.com/downloads/Tutorials/Migrate_From_WinForms_To_Wisej.pdf

Best regards
Frank

0 votes

Thank you. It seems to be a bug in the repositioning of an  overflowing menu based on an already overflowing menu in the js library. The best fix in your case I believe it’s to change the position of the child menu to align bottom left. See screenshot.

This is the theme mixin:

{
 "appearances": {
 "menu": {
 "inherit": "menu",
 "states": {
 "submenu": {
 "properties": {
 "position": "bottom-left",
 "placementModeX": "best-fit"
 }
 }
 }
 }
 }
}

If you are using a custom theme just add/change the properties in the “submenu” state under “menu”.

 

  • Luca answered Sep 19, 2020 - 9:49 pm
  • last active Sep 19, 2020 - 9:49 pm
0 votes

Here is your sample after my changes, if you would like.

0 votes

Got both working! Small adjustments for VB syntax. Thank you, Luca

0 votes

We finally figured this out. Just in case anyone else runs into this – and I can save you ALOT of time….we had something missing from the webconfig file in the </WebGUI> section.

You need to make sure this entry exists:

<UseFlashForUpload Mode=”false”/>

Compared to several other apps that we had used the file upload control and discovered this missing from the webconfig on our dev machine. Once we added this back – no error and the control rendered in the page. Also – make sure you go into the properties of the Web Gui project and make sure the Upload Control is registered as in the screenshot attached.

 

 

  • edmond girardi answered Sep 19, 2020 - 6:02 pm
  • last active Sep 19, 2020 - 6:05 pm
0 votes

Send me the screenshot of my sample in your emulator please. And if possible send me your sample stripped down in a way I can run it. Check also on a another machine or see if your emulator has a zoom factor that is not 1.

  • Luca answered Sep 19, 2020 - 3:43 pm
0 votes

See attached sample. Shows several concepts:

  • How to add and load a plain .js file to a page, see the JavaScript1 component on Page1 and see the JavaScriptSource property added to the page linking the JavaScrip1.cs file.
  • How to pass a Wisej server control to a Wisej client widget as a parameter in a js call! Sounds impossible but in Wisej it’s as easy as Call(“methodName”, this.progressBar1). Wisej converts the control into an id and back into a widget transparently.
  • How to call a server side function from javascript as if it was a javascript function.

There are 2 buttons. The first starts a javascript interval loop and passes the progressBar to update to the function:

 private void button1_Click(object sender, EventArgs e)
 {
   Call("runUpdateLoop", this.progressBar1);
 }

The javascript function starts a timer and simply uses the progressbar widget on the client directly:

 progressBar.setValue(++value);

The second button calls a different js function that starts the timer and receives the maxim value of the progress bar instead:

 Call("runUpdateLoopWithCallback", this.progressBar2.Maximum);

The js function calls back the page server method to update the progress bar just like any other javascript function:

 // this is a web method call.
 me.UpdateProgressBar(++value);

On the page we have the C# method that updates the progress bar.

 [WebMethod]
 public void UpdateProgressBar(int value)
 {
   this.progressBar2.Value = value;
 }

In the first case the client updates the progress bar without notifying the server app. In the second case it’s the server side that receives the progress updates.

There are several other ways to do this too in Wisej depending on the requirements of the app.

 

  • Luca answered Sep 19, 2020 - 3:41 pm
0 votes

Hi Luca.

Thanks for all your attention on this.

I will have a look at your sample and see if I can come out with something. The thing is, I am not doing anything special, at least I think so. And by the way, in this case, the screen shots I attached are not from my iPhone, but from the Chrome device emulator, I will attach another one here for you to check. Hopefully I will find a way around it or this will become a real issue for the application. My Default.html is apparently set properly, and the device viewport width is set to device-width. Is there anything else I should try?!

Cheers.

Ivan

Showing 4501 - 4520 of 11k results