How to replace keen-slider [TimePicker] with widget control

Answered
0
0

Hello.

wisej widget control for TimePicker created by keen-slider
Please tell me how to replace it.

 

Attachment
  • You must to post comments
Best Answer
0
0

Hi Takao,

There are a few different ways you can do this from the client.

You can use fireWidgetEvent:

this.fireWidgetEvent("eventName", {any: "data"});

You can then handle it in Widget.WidgetEvent on the server.

You can also use fireDataEvent:

this.fireDataEvent("eventName", {any: "data"});

You’ll need to override the OnWebRender and OnWebEvent method in your Widget class (see attached project).

 

The important thing to note is that you need to retain the context of the client-side widget when you’re trying to use fireWidgetEvent or fireDataEvent.

For more info on events in Wisej, read this: https://docs.wisej.com/docs/controls/general/lazy-events.

 

I attached your project modified to use fireDataEvent. All it does right now is fires an event when the hour or minute changes to update HourValue and MinuteValue.

 

You can also use Call or Eval if you specify a function in the client-side widget’s context (see the attached sample).

Here is a little information on it: https://docs.wisej.com/docs/concepts/javascript

 

If you have any questions about it, please let me know.

Best,

Levie

Attachment
  • You must to post comments
0
0

Levie (ITG)
Thank you.
With this, various widgets of kenne-slider
To program the parts
I can do it.

  • You must to post comments
0
0

Levie (ITG)
Thank you

The implementation of MobiScroll library is included
I’m looking forward to it.
Check the time picker of keen-slider by yourself
I’ve almost done it in the widget,
If you change the hours and minutes with a swipe at the end
Get the hour and minute values at the right time.
Attach the program source that is halfway through
Please tell me how to do it.
* First, use CallAsync to get the value.
I went, but in the case of asynchronous, time
The value of the minute is different from that of the other.
“Wisej.Web.Ext.KeenSlider / JavaScript / InitScript.js”
Time at 127 lines in your Javascript program source
131 lines, minutes and values to widget side at the correct timing
Please tell me how to return it.
* TimePicker.cs 128 and 145 lines of time and minute acquisition properties
I want to return the value to.

 

Attachment
  • You must to post comments
0
0

Hi Takao,

If you want to use the native pickers of the device, you can use a TextBox and change the InputType Property to Time / Date/ DatetimeLocal, etc.

We’re actually working on a way to integrate Wisej’s TimePicker and DatePicker with the MobiScroll library by default, but this will take some time to implement.

We’ll let you know when it’s ready!

HTH,

Levie

 

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.