[CLOSED] [#1463] [4.2.0] ResponsiveConfig gives js error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] [#1463] [4.2.0] ResponsiveConfig gives js error

    Hi All,
    ResponsiveConfig based on https://examples4.ext.net/#/Miscella...ponsive/Basic/ fails on Ext.Net.Mobile,
    because of in generated js plugin config has ptype property ( plugins:[{ptype:"responsive"}] ) but createPlugin function waits 'type' property

    @(
      Html.X().Viewport()
      .Items(
              Html.X().Panel()
                .ResponsiveConfig(rules =>{
    
    				   var r = new ResponsiveRule();
    				   r.Rule = "tall";
    				   r.Config.Add(X.Panel().Title("tall"));
    				   rules.Add(r);
    
    				   var r2 = new ResponsiveRule();
    				   r2.Rule = "wide";
    				   r2.Config.Add(X.Panel().Title("wide"));
    				   rules.Add(r2);
    
    			})
              .Items(
    			  Html.X().Panel().Html("1. part"),
    			  Html.X().Panel().Html("2. part")
              )
      )
    )
    Ext.onReady(function(){Ext.create("Ext.net.Viewport",{items:[{xtype:"panel",plugins:[{ptype:"responsive"}],responsiveConfig:{"tall":{title:"tall"},"wide":{title:"wide"}},items:[{xtype:"panel",html:"1. part"},{xtype:"panel",html:"2. part"}]}]});});
    Uncaught Error: [Ext.create] Invalid class name or alias 'null' specified, must be a non-empty string
        at Object.create (ext-mobile.axd?v=4.1.0:9512)
        at Object.factory (ext-mobile.axd?v=4.1.0:5851)
        at constructor.createPlugin (ext-mobile.axd?v=4.1.0:47429)
        at constructor.applyPlugins (ext-mobile.axd?v=4.1.0:47415)
        at constructor.setter [as setPlugins] (ext-mobile.axd?v=4.1.0:6567)
        at Ext.Configurator.configure (ext-mobile.axd?v=4.1.0:7070)
        at Ext.Configurator.<anonymous> (ext-mobile.axd?v=4.1.0:4609)
        at Ext.Configurator.configure (ext-mobile.axd?v=4.1.0:4662)
        at constructor.initConfig (ext-mobile.axd?v=4.1.0:7963)
        at constructor (ext-mobile.axd?v=4.1.0:13033)
    Last edited by fabricio.murta; Apr 03, 2017 at 6:44 PM.

Similar Threads

  1. [CLOSED] responsiveconfig reliable?
    By mirwais in forum 4.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 10, 2016, 8:50 PM
  2. Replies: 1
    Last Post: Dec 19, 2015, 11:14 AM
  3. responsiveConfig is problem
    By aimboss in forum 3.x Help
    Replies: 2
    Last Post: Mar 16, 2015, 2:43 AM
  4. Replies: 2
    Last Post: Mar 06, 2015, 2:21 PM
  5. Replies: 2
    Last Post: Jul 29, 2009, 1:57 PM

Posting Permissions