See What’s Cooking: New extensions for mobile-friendly and responsive applications in Wisej.NET 3.5

Introducing MobiScroll for Wisej.NET

Starting with Wisej.NET 3.5, a new Premium Extension, MobiScroll, will be available for developers to use in their projects. The new extension will allow Wisej.NET developers to build mobile-friendly and responsive applications using a number of new controls and components.

 

Components

Selector

Advanced select component for single and multiple value selection. Provides a great alternative to the native dropdown with enhanced UX. Renders a scroller on touch and a dropdown on desktop.

The Select component can be added from the Toolbox or programmatically using the following:

var select1 = new Wisej.Web.Ext.MobiScroll.Select();

// attach to an existing TextBox control.
select1.Control = this.textBoxSelect;

// provide the options.
select1.Options.showGroupWheel = true;
select1.Options.data = new dynamic[] {
  new { text = "United Kingdom", value = "GB" },
  new { text = "France", value = "FR", group = "Europe" },
  new { text = "Hungary", value = "HU", group = "Europe" },
  new { text = "United States of America", value = "US", group = "America" },
};

mobiscroll-select-windows

Select Component on Windows

 

mobiscroll-select-ios

Select Component on iOS

 

mobiscroll-select-ios-anchored

Anchored Select Component on iOS

 

DatePicker – Range

Let’s look at a date picker. For example, the range picker supports start & end selection for date, time and combined date & time. Choose between a calendar view with one or more months, week view with single or multiple weeks or date and time scrollers and dropdowns.

The DatePicker component can be added from the Toolbox or programmatically using the following:

var datePicker1 = new Wisej.Web.Ext.MobiScroll.DatePicker();
datePicker1.Options.select = "range";

// attach to an existing TextBox control.
datePicker1.Control = this.textBoxSelect;

rangepickerwindows

Range Picker on Windows

 

rangepickerios

Range Picker on iOS

 

rangepickerandroid

Range Picker on Android

Composite Controls – DateTimePicker

The date picker ships with five built-in variations for rendering the UI. The controls option supports the following:

  • date – renders a date-only scroller or dropdown control
  • time – renders a time-only scroller or dropdown control
  • timegrid – renders a time grid for time selection
  • datetime – renders a date & time scroller or dropdown
  • calendar – renders a calendar view for date picking

Use controls: [‘datetime’] for rendering a date & time picker within the same control, tied to the same input, or use them separately for two inputs – controls: [‘date’] and controls: [‘time’]. It will render a scrollers for touchUi: true and a dropdowns for touchUi: false.

The DatePicker component can be added from the Toolbox or programmatically using the following:

var datePicker1 = new Wisej.Web.Ext.MobiScroll.DatePicker();
datePicker1.Options.controls = new[] { "date", "time" };
// attach to an existing TextBox control.
datePicker1.Control = this.textBoxSelect;

 

datetimepickerwindows

DateTimePicker on Windows

 

datetimepickerios

DateTimePicker on iOS

 

datetimepickerandroid

DateTimePicker on Android

Theming

The theme for each control can be set in the Options property:

this.select1.Options.theme = "ios";
this.select1.Options.themeVariant = "light";

 

Events

Attaching to events works the same way as any other premium extension:

this.select1.Instance.onChange += new WidgetEventHandler(select1_onChange);
...
private void select1_onChange(object sender, WidgetEventArgs e)
{
    AlertBox.Show(e.Data.ToJSON(true));
}

 

Please note that the Wisej.NET Premium Extension will require a commercial license from MobiScroll that can be purchased directly from their website.