All Answers

0 votes

Levie (ITG)

Thank you.

0 votes

Yes, I can reproduce. I was looking at the responsive properties of the DataRepeater itself. Logged as bug #2096. Should be fixed in the next dev build. Thanks!

  • Luca answered Dec 21, 2019 - 12:33 am
0 votes

mmm no, all at right. But I’d like to know how to do that too

thank you

0 votes

Like Node 5 in the image attached or aligned all the way to the right?

  • Luca answered Dec 19, 2019 - 10:12 pm
0 votes

It is marked as EditorBrowsableState.Advanced. You can enable advanced properties using Tools->Options->Text Editor->C#->General. See “Hide advanced members”.

  • Luca answered Dec 19, 2019 - 6:43 pm
0 votes

Hi Luca ITG,

This is link: https://www.aspsnippets.com/Articles/Print-Crystal-Report-on-Client-Side-on-Button-Click-using-JavaScript-in-ASPNet.aspx

I want to do using iframe to quick print crystalReportViewer:

<script type=”text/javascript”>
function Print() {
    var dvReport = document.getElementById(“dvReport”);
    var frame1 = dvReport.getElementsByTagName(“iframe”)[0];
    if (navigator.appName.indexOf(“Internet Explorer”) != -1) {
        frame1.name = frame1.id;
        window.frames[frame1.id].focus();
        window.frames[frame1.id].print();
    }
    else {
        var frameDoc = frame1.contentWindow ? frame1.contentWindow : frame1.contentDocument.document ? frame1.contentDocument.document : frame1.contentDocument;
        frameDoc.print();
    }
}
</script>
Do you have demo using this code to quick print crystalReportViewer with  wisej framework?

Thank you so much.

0 votes

Thanks.

If the issue is:

drCatalog.ItemTemplate.ClientSize = new Size(300, 300);

You should use:

drCatalog.ItemSize = new Size(300, 300);

 

 

  • Luca answered Dec 17, 2019 - 6:21 pm
0 votes
document.getElementById() returns the dom element used by the widget to render itself. If you want to use the element you can do this:
var dom = document.getElementById(widget.getId());
or
var dom = widget.getContentElement().getDomElement();
Keep in mind that the widget (javascript object) may override your changes to the dom. Also our widgets don’t update the dom directly, they all have an “shadow” dom element that is flushed in sync with the browser (aka: fast dom). That’s why there is the getContentElement() before getDomElement(). If you want to change the style, you can also use
widget.getContentElement().setStyle(name, value);
or
widget.getContentElement().setStyle(map);
  • Luca answered Dec 17, 2019 - 6:12 pm
0 votes

Attached

0 votes
Hi Luca ITG,
When using document.getElementById(id). I want to get id of control in javascript for document.getElementById function.
How to get id of control when using ClientEvents of control?
Thank you so much.
0 votes

Hi Luca,

Well, that’s what I had in mind.
To have this hybrid app’s, ways live from the “internet/server”, that’s great.

– How can i know the price for this premium extensions?
– Would it be possible to provide a sample app for the android webview?

0 votes

Yes it does. The responsive properties are cloned together with the other clonable properties. You can always override the cloning process using the ItemCloning or ItemCloned events.

  • Luca answered Dec 16, 2019 - 5:02 pm
0 votes

You can build a reusable component by deriving from the DataRepeater class or putting it into a UserControl. But you cannot change the internals of a precompiled component using the designer, just like the UserControl. You can provide your own properties and events, similar to the RibbonBar or NavigationBar (see source code in GitHub).

 

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

Hi Jorge, see below:

  • You cannot deploy iOS applications without a mac and without XCode. It is simply impossible.
  • We will provide two ready-made projects, one in XCode/Swift and one with Android Studio. However, these will be available as premium extensions for Technology Partners.
  • The projects (XCode and Android) are so-called hybrid mobile apps. The application itself is a web application but it is tightly integrate with the mobile device. It is a WebView at the core, but it also provide a bidirectional integration with: Authentication (TouchID and FaceID), Native Tabbar and Toolbar, Native prompts, Native Foreground, Background and Terminate events, Push Notifications, Device information, Statusbar (battery, etc) control, Orientation control (lock, allowed, …), Location, Camera, etc. Brightness control, Sleep control, and so on. All things that are impossible from a webview but are possible with our native modules.
  • Additionally, the packages are open and can be further customized on demand through our professional services.
  • Apps built like this are available to test using TestFlight and can be deployed on the AppStore, Google Play, or the Apple Enterprise services and all the other similar features for Android.

See screenshot of an internal test app running on an iPhone. The top blue area is the native status bar + toolbar, the bottom tab is the native tab bar, all controlled from the Wisej app (buttons, events, colors, visibility). The middle part is a Wisej app that is integrated with the device’s FaceID for authentication.

 

HTH

  • Luca answered Dec 16, 2019 - 4:42 pm
0 votes

App.Window1.button1 is already the widget: i.e. App.Window1.button1.hide(), App.Window1.button1.show(), App.Window1.button1.execute(), …

You can retrieve a widget using the unique id like this: widget(“id_22”);

When calling from the server, simply use “this”: i.e. this.button1.Eval(“this.hide()”), or this.button1.Call(“hide”). You can also pass widgets as parameters from the server, Wisej takes care of marshalling the reference to/from the server/client. i.e.: this.Call(“doSomething”, this.button1).

From javascript on the client you can also call [WebMethod] methods directly and pass maps and even other widgets, again Wisej marshals the reference:

App.Window1.SomeServerMethod(App.Window1.button1);

=>

[WebMethod]

public void SomeServerMethod(Button button) {}

If you have a specific requirement, please send sample code to show what you need to do.

 

HTH

  • Luca answered Dec 16, 2019 - 3:54 pm
0 votes

See attached sample with the CheckStateMember bound property (read/write).

  • Luca answered Dec 16, 2019 - 3:47 pm
0 votes

Hi Nick,

Thank you for the explanation of the ValueMember.

It would be nice if the control also had a databinding property called “CheckedMember” for binding to a property in the datasource.

Best regards,

Wilfred

0 votes

Any thoughts?

0 votes

I have attached the project, when I scroll through the datarepeater I can see that images are replaced by other images and while
scrolling I can see the image changing to prior images and then truning back to the relevant image.

P.S
You need to a add a reference to:
Newtonsoft.Json.12.0.3
RestSharp.106.6.10

0 votes

The purpose of ValueMember is to assign a value to each item in the list. When the user selects a list item, checkedListBox.ValueMember determines what checkedListBox.SelectedValue is. For example, if the DataSource objects have a property called ID, then SelectedValue can be used to get the ID of the currently selected value when checkedListBox.ValueMember = “ID”.

You can set the checkbox values to match bools in the DataSource using a for-loop and checkedListBox.SetItemChecked(int index, bool isChecked). The indices in the CheckedListBox match the ones in the DataSource.

i.e. :

for (int i = 0; i < dataList.Count; i++)
{
checkedListBox1.SetItemChecked(i, dataList[i].someBooleanValue);
}

Hope this helps,

Nick

  • Guest answered Dec 15, 2019 - 7:24 pm
  • last active Dec 15, 2019 - 7:25 pm
Showing 5301 - 5320 of 11k results