All Answers

0 votes

The svg you are using in monochrome. Wisej detects that it’s monochrome and sets the color to match the theme or the ForeColor of the control or the color specfied when picking the image. It’s similar to using font images except that it’s a lot better.

See screenshots attached. I get always the same colors on first load and refreshes. The top 3 are PictureBox with ForeColor changed (the first is the theme). The bottom 2 boxes are panels with BackgroundImageSource, the second on the right changed the color using the image picker.

You can preserve the original color by using the color picker when selecting the image: i.e. image.svg?color=#E7E7E7

Or you can make ths svg not be monochrome. Just change one of the fill to “#E7E7E6”. Or add an empty <path fill=”#E7E7E6″></path>.

  • Luca answered Nov 6, 2021 - 5:05 pm
0 votes

Try

var data  = await this.ejQueryBuilder1.Instance.getSqlFromRules().

Or attach a small runnable test case showing the issue.

  • Luca answered Nov 6, 2021 - 3:15 pm
0 votes

The signature

public void ShowPopup(int x, int y, Action<UserPopup> onclose = null);

Means there is an argument

Sub (popup as UserPopup) End Sub

or

(popup) => {}

 

  • Luca answered Nov 6, 2021 - 3:12 pm
0 votes

Hi Carlos,

You were missing the “requestLengthDiskThreshold” attribute in the “httpRuntime” Tag in your web.config file.

“requestLengthDiskThreshold” Specifies the limit for the input stream buffering threshold, in bytes. and its default value is 256.

So essentially, when you get the “Cannot access a closed file” exception, it’s just that the file in question was exceeding the limit.

I have modified the sample you provided, and I suggest that you take a look here: httpRuntime Element (ASP.NET Settings Schema) | Microsoft Docs for more info.

Please note: TherequestLengthDiskThreshold” should not exceed the “maxRequestLength” value.

HTH,
Alaa

0 votes

Hi Cristian,

I just tried with this and it seems to work correctly. Can you attach a small sample?

private void button1_Click(object sender, EventArgs e)
 {
 this.chartJS2.DataSets[0].Hidden = !this.chartJS2.DataSets[0].Hidden;
 AlertBox.Show(this.chartJS2.DataSets[0].Hidden.ToString());
 this.chartJS2.Update();
 }

 

Thanks!

Levie

0 votes
In reply to: ListView Binding event

Hi,

thank you for your help. listView.Fill(dataSource) solves many our simple forms. We will move some others to DatGridView. Will you fix the problem with NewIndex?

Best regards,

Page

0 votes

The answer was in the assignment of a WiseJ’s Textbox’s InputType.Step, which is a nullable double.

The line was

_txtPhotoScanNudityRejectionThreshold.InputType.Step = 1;

 

Changing it to

_txtPhotoScanNudityRejectionThreshold.InputType.Step = 1.0;

 

solved the problem.

 

 

In VB I believe a whole number is automatically converted to a double, in C# it needs to be cast or specified with the “.0” at the end.

0 votes

Hi Andrew,

Doc has move there https://docs.wisej.com/docs/controls/general/application#javascript

You function must be like this
Application.Eval(“window.navigator.standalone”, (a) => // Type of 'a' is dynamic
{
if (a == true)
{
Application.Session.isIOSstandalone = true;
} else
{
Application.Session.isIOSstandalone = false;
}
});

Happy codidng,

Kevin (ITG)

  • Kevin answered Nov 3, 2021 - 7:55 pm
  • last active Nov 3, 2021 - 8:20 pm
0 votes
In reply to: ListView Binding event

Hi,

I added an example, when I edit description textbox, all listView refresh.

Page

0 votes
In reply to: ListView Binding event

Please attach a small runnable test case that shows the issue.

  • Luca answered Nov 3, 2021 - 12:03 am
0 votes
In reply to: HtmlPanel Print

Application.Print() is for Wisej widgets and uses the browser’s window.print(). For custom HTML you  have to create a window and print it.

See https://stackoverflow.com/questions/2255291/print-the-contents-of-a-div

 

  • Luca answered Nov 2, 2021 - 11:59 pm
0 votes
In reply to: Run on mobile devices

Hi Justice,

yes Wisej applications can run as connected web apps on any mobile device.

By using ResponsiveProperties you can adapt you UI depending on the devices the user have.

We also support “real” Mobile Apps that offer easy access for all kind of device operations (authentication, haptic feedback, photo etc.)
through our Wisej Mobile integration package.

Learn more about that here: https://docs.wisej.com/mobile

Best regards
Frank

0 votes

Hi Luca

I tried with the changes you mentioned. But this.getParent().GetSigString(“hello”) gives error “getParent() is not a function”. Tried with just this.parent, no erorr but it didn’t seem to execute the web method.

Is there a way that i can call a method in Javascript from the C# and get a return value. When the dialogs OK button is clicked and if I have a JS method in my html file that returns a value like below.

function OkButtonClick() {
var value = window.document.getElementById(‘hiddenTextField’).value;

return value;
}

Is there a way that i can call the method from C#  when the OK button is clicked and obtain the value returned ?

I am just trying to think of options to get the signature string on the server side for further execution. So if we can get one of these options- either from JS to C# or C# to JS working, that should be good.

 

thanks

praveena

 

0 votes

Looking at the sample you attached:

Remove this override. It’s not needed and the wiredEvent is not declared correctly.

 //Register the WebMethod
 protected override void OnWebRender(dynamic config)
 {
 base.OnWebRender((object)config);

  config.webMethods = new[] { "GetSigString" };
 config.wiredEvents.Add("changeSig(Text");
 }

This is almost correct and it’s all you need. Simply remove “static”. In Wisej web methods work in the instance (which is quite hard if not impossible with other web frameworks.)

 [Wisej.Core.WebMethod]
 public static void GetSigString(string sigString)
 {
 //// System.IO.File.WriteAllText(@"C:\temp\TEST_Filled_FORM.html", CKData);
 AlertBox.Show(sigString);
 //SignatureString = sigString;
 }

Then in your js code I did’t find any call to the web method. In Wisej the server side C# web methods are automatically mapped to the client side java script.

Since your js code is running in he HtmlPanel (a child of TopazHtmlDialog) simply call the web method like this:

 

this.getParent().GetSigString("hello");

If it doesn’t work add a “debugger;” statement in javascript and debug using chrome dev tools. Check that “this” is the html panel.

 

  • Luca answered Nov 2, 2021 - 12:33 am
  • last active Nov 2, 2021 - 12:34 am
0 votes

Hi Levie

Adding the iframe panel helped in activating the topaz signature and i was able to capture the signature successfully.  Now i am trying to see how to get the signature string back to the server so that it can be saved and used to render in future.

In the attached project, when Save is clicked the onDone  JS function will be executed. I added a web method on the C# side and I was trying to call it from the JS (Lind 2183 in HtmlPage1.html).  I tried it while in the OnDOne method or with the click of OK button.

But somehow i am not able to do it successfully. Could you please check and advise what i am doing wrong here.

The plan is to use the signature string to display it on the widget control on the main form.

thanks

praveena

 

0 votes

Hi Carl,

For starters, the HtmlPanel has an ElementClick event that fires when the user clicks an HTML element.

The ElementClickArgs has two properties, the Element and Role properties.

You can go here for more information:

Also, I have attached a small sample that demonstrates all of the above.

HTH,
Alaa

0 votes

Hi Ewan,

thanks for letting us know. It´s already fixed internally and will be deployed with the next Wisej release.

Best regards
Frank

0 votes

Hi Andrew,

Wisej’s extensions are now exclusively available on nuget.org .

You can go here: What’s new in 2.5 – Wisej API for more info!

HTH,
Alaa

0 votes

Turns out you need to set both the minimum and maximum size of the Drop Down control and the Data Grid View within it now takes care of itself size wise

Showing 3121 - 3140 of 11k results