Results 1 to 1 of 1

Thread: JS Error fires on row click

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Chandigarh (INDIA)
    Posts
    143

    Default JS Error fires on row click

    Hello Sir
    I am using Property grid and Json data to populate that grid now issue is when i edit a property grid by entering data in cells and then click on next row it is working fine but when i double click the property grid cell it enters into editable mode and if i do not put data in that cell and clicks on next row it fires a js error 'this.getRow(...)' is null or not an object .Rest of the information you can find in my screen shots.My code is given below

    PHP Code:
    GeneralpropsGrid code
    GeneralpropsGrid 
    = new Ext.grid.PropertyGrid(
                                                {
                                                    
    title 'General Properties',
                                                    
    isEditable true,
                                                    
    loadMask : {
                                                        
    hideOnReady false
                                                    
    },
                                                    
    listeners : {
                                                        
    beforeedit : function(
                                                                
    rowIndexgrid) {
                                                            return 
    this
                                                                    
    .checkIfEditable(rowIndex.record.id);
                                                        }
                                                    }
    .
    .

    PHP Code:
    Json data code
    grid
    .on('rowclick'updateProps);

                function 
    updateProps(griddataIndex) {
                    
                    var 
    dataRow grid.getSelectionModel().getSelected();


                    
    source "{" "\"Size\":\" " dataRow.data.size "\"," ""
                            
    "\"Author\":\"" author"\"," ""
                            
    "\"File Name\":\"" dataRow.data.fileName "\" ,"
                            
    "" "\"Title\":\"" title "\" ,"
                            
    "" "\"Extension\":\"" fileExtension "\" ," ""
                            
    "\"Release Date\":\"" releaseDate "\" ,"
                            
    "\"Expiration Date\":\"" expirationDate "\" ,"
                            
    "" "\"Searchable\":\"" dataRow.data.searchable
                            
    "\" ," "" "\"Tags\":\"" tags
                            
    "\" ," "" "\"Content Category\":\""
                            
    dataRow.data.contentCategory "\" ," ""
                            
    "\"Comments\":\"" comments "\" ,"
                            
    "" "\"Websites\":\"" dataRow.data.websites
                            
    "\" " "}";
                

                  

                   
                    
    GeneralpropsGrid.setSource(eval('(' source ')'));
                } 
    Attached Images Attached Images

Similar Threads

  1. [OPEN] [2.3.0] Grid Row Click runtime error
    By rpiwonka in forum Ext 2.x: Bugs
    Replies: 2
    Last Post: 2 Sep 2009, 11:43 PM
  2. Checkbox click event fires twice!
    By Chods in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 May 2009, 7:15 AM
  3. dblclick in DataView, also fires click
    By symfony in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 7 Apr 2008, 6:17 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
  •