1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    19
    Vote Rating
    0
    dflkid is on a distinguished road

      0  

    Default Grid no longer works with .33 Beta?

    Grid no longer works with .33 Beta?


    My grid stopped working when I started using the Beta yui-ext.js. I can switch to .33 and it works fine, then to .33 Beta and it doesn't render (Only columns). Were there any changes to the grid? My code is below...

    Code:
    	var DataGrid = {
        	init : function(){
    		
    			//Set up grid headers
    			var urlColList = [
    				{header: "ID", width: 30, sortable: true},
    				{header:"CDRL #", width: 90, sortable: false},
    				{header:"SubTitle", width: 150, sortable: false},
    				{header:"Type", width: 60, sortable: true},
    				{header:"Submittal Author", width: 90, sortable: false},
    				{header:"Event", width: 75, sortable: false},
    				{header:"Freq", width: 60, sortable: false},
    				{header:"IPT", width: 60, sortable: false},
    				{header:"Due to DM", width: 60, sortable: true},
    				{header:"Submitted to DM", width: 90, sortable: true},
    				{header:"Due To Customer", width: 90, sortable: true},
    				{header:"Submitted To Customer", width: 90, sortable: true},
    				{header:"Current Status", width: 75, sortable: true}
    			];
    			var urlCM  = new YAHOO.ext.grid.DefaultColumnModel(urlColList);
    			
    			//Set up remote data format
    			var urlSchema = {
    				tagName: 'cdrl',
    				id: 'use-index',
    				fields: ['CDRLID', 'CDRLNUMBER', 'CDRLSUBTITLE', 'CDRLTYPE', 'SUBMITTALAUTHOR', 'EVENTENDDATE', 'FREQ','IPTABBREV', 'DAYSDUETODM', 'AuthorSubmitDate', 'DuetoCust', 'CustSubmitDate', 'StatusText']
    			};
    			urlDM = new YAHOO.ext.grid.XMLDataModel(urlSchema);
    			urlDM.setDefaultSort(urlCM, 1, 'ASC');
    			
    			urlSM = new YAHOO.ext.grid.SingleSelectionModel();
    			urlGrid = new YAHOO.ext.grid.Grid('feed-list', urlDM, urlCM);
    			urlGrid.render();
    			urlDM.load('cdrl_xml.cfm');
    		}
    
    	}
    	YAHOO.ext.EventManager.onDocumentReady(DataGrid.init, DataGrid, true);
    [/code]

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Your code looks fine. All my grids on this site are rendering properly. Can you put up a link where I can see the problem?

    Thanks,Jack

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    19
    Vote Rating
    0
    dflkid is on a distinguished road

      0  

    Default


    Unfortunately it's on our intranet, so there's no public access. The grid is in a borderlayout and I just discovered that the grid appears if I resize the browser. I know that's not much to go on, sorry.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    AHHH, that is a bug in the GridPanel I just fixed. I will have a build up shortly with the correction.

    Can you try plugging in this file:

    http://www.jackslocum.com/build/yui-ext_33-beta3.2.1.js

    and tell me if it fixes it?

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    19
    Vote Rating
    0
    dflkid is on a distinguished road

      0  

    Default


    No dice.

  6. #6
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Grab the new build I put up (beta 4).

  7. #7
    Ext User
    Join Date
    Mar 2007
    Posts
    19
    Vote Rating
    0
    dflkid is on a distinguished road

      0  

    Default


    Still no luck. I'll play around with it some more tomorrow and look for anything boneheaded I may be doing to cause this.

  8. #8
    Sencha User digerata's Avatar
    Join Date
    Mar 2007
    Location
    Clarkston, Michigan
    Posts
    61
    Vote Rating
    0
    digerata is on a distinguished road

      0  

    Default


    I wasn't having a problem with grids, but this beta4 fixed a bunch of layout issues with tabs and the borderlayout under IE.

    Nice Jack!

  9. #9
    Ext User
    Join Date
    Mar 2007
    Posts
    19
    Vote Rating
    0
    dflkid is on a distinguished road

      0  

    Default


    So I found the solution, and I'm not sure if it's intended functionality or not. In my code I also had some container layout code and the...

    Code:
    YAHOO.ext.EventManager.onDocumentReady(DataGrid.init, DataGrid, true);
    was above the container bit...

    Code:
    YAHOO.ext.EventManager.onDocumentReady(Example.init, Example, true);
    So the fix was putting the datagrid onDocReady below the container onDocReady like so...

    Code:
    	YAHOO.ext.EventManager.onDocumentReady(Example.init, Example, true);
    	YAHOO.ext.EventManager.onDocumentReady(DataGrid.init, DataGrid, true);
    Now the grid shows up on page load.

  10. #10
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Good catch. You may want to consider having a single initialization point that calls to the other spots.

Similar Threads

  1. Tree Menu no longer working 1.0a
    By alanwilliamson in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 22 Feb 2007, 9:12 AM
  2. Yui-ext works on IE6
    By khnle in forum Ext 1.x: Bugs
    Replies: 5
    Last Post: 3 Feb 2007, 1:20 PM
  3. Replies: 2
    Last Post: 24 Nov 2006, 10:32 AM
  4. Maskable Text Editor works in and out of grid
    By ericwaldheim in forum Community Discussion
    Replies: 2
    Last Post: 8 Nov 2006, 7:33 PM
  5. Beta 2 is up
    By jack.slocum in forum Community Discussion
    Replies: 1
    Last Post: 3 Nov 2006, 6:25 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi