Results 1 to 2 of 2

Thread: Javascript error when click on disabled column menu in grid header

    You found a bug! We've classified it as EXTJS-25837 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2011
    Location
    Trieste, italy
    Posts
    16
    Vote Rating
    1
      0  

    Default Javascript error when click on disabled column menu in grid header

    Hi Mark,
    to disable grid headers menu I use columnMenu={null} as reported by docs.
    However if I click on arrows in the grid header I receive an error in browser console:
    Code:
    Error: [Ext.create] Invalid class name or alias 'undefined' specified, must be a non-empty string
    A simple example to reproduce error:
    Code:
    import React, { Component } from 'react'
    import { Grid, Column } from '@extjs/ext-react';
    
    export default class MyExample extends Component {
    
        store = new Ext.data.Store({
            data: [
                { "name": "Lisa", "email": "lisa@simpsons.com", "phone": "555-111-1224" },
                { "name": "Bart", "email": "bart@simpsons.com", "phone": "555-222-1234" },
                { "name": "Homer", "email": "home@simpsons.com", "phone": "555-222-1244" },
                { "name": "Marge", "email": "marge@simpsons.com", "phone": "555-222-1254" }
            ]
        });
    
        render() {
            return (
                <Grid store={this.store} columnMenu={null}>
                    <Column text="Name" dataIndex="name" flex="1"/>
                    <Column text="Email" dataIndex="email" flex="1"/>
                    <Column text="Phone" dataIndex="phone" flex="1"/>
                </Grid>
            )
        }
    }

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,984
    Vote Rating
    292
      0  

    Default

    Thanks for the report. Looks like this is an Ext JS bug being tracked as EXTJS-25837.

    Lifecycle management for your web apps

Similar Threads

  1. Replies: 2
    Last Post: 11 Jul 2014, 9:25 AM
  2. How to call a javascript function on column header click in ext js grid?
    By ketanmulay in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 21 Jan 2010, 9:36 PM
  3. QuickTips disabled after Grid header click
    By reawilliams in forum Ext 1.x: Bugs
    Replies: 4
    Last Post: 14 Sep 2007, 2:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •