Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

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

      0  

    Default In Grids, does not work function "focusRow" :(

    In Grids, does not work function "focusRow" :(


    This my code:
    Code:
    var XmlExample = {
        init : function(){
            var schema = {
                tagName: 'item',
                id: 'uid',
                fields: ['id', 'name', 'producer']
            };
            this.dataModel = new YAHOO.ext.grid.XMLDataModel(schema);
            this.dataModel.onLoad.subscribe(this.onLoad.createDelegate(this));
    
            var myColumns = [
    			{header: "ID", width: 21, sortable: true}, 
    			{header: "Name;", width: 21, sortable: true}, 
    			{header: "Prod", width: 20, sortable: true}
    		];
    		var colModel = new YAHOO.ext.grid.DefaultColumnModel(myColumns);
    		var sm = new YAHOO.ext.grid.SingleSelectionModel(); 
    
            this.grid = new YAHOO.ext.grid.Grid('xml-grid-example', this.dataModel, colModel, sm);
    	this.grid.addListener('rowdblclick', this.dblclick); 
            this.grid.render();
        },
        dblclick : function(grid, rowIndex){    
    	var id = grid.getDataModel().getRowId(rowIndex); 
    	grid.getView().focusRow(20);	
        },
        
        onLoad : function(){    
    
        },
        scroll : function(idRow){
    	grid.getView().focusRow(20);	//  don't worked
    
        }, 
        search : function(mid, wfilter){
            getEl('load-ind').show();
            var params = {'mid': mid, 'wfilter': wfilter};
            this.dataModel.load('/catalog/getlist.php', params, this.clearIndicator);
        },
        
        clearIndicator : function(file){
            getEl('load-ind').hide();
        }
    }
    YAHOO.util.Event.on(window, 'load', XmlExample.init, XmlExample, true);
    I have made function "Scroll" with parameter idRow and I wish it to cause after filling grids. But function don't work. How it correctly to make? And second question: How to find out number of the necessary line on entrance parameters from a server?

    Thanks for the answers.

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

      0  

    Default


    Have you tried grid.scrollTo(20)? That is the preferred way to scroll to a row and doesn't use focus.

    You may end up with conflicting operations though because when a row is selected it is focused. You are trying to focus a different row at the same time. I'm not sure what the results would be.

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

      0  

    Default


    Yes, I tried grid.scrollTo() - this work, but I need allocation of a line instead of is row scrolling to it. It is necessary for search.

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

      0  

    Default


    What do you mean allocation of line? Selecting the row? That's is done through the grid's selection model.

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

      0  

    Default


    And how then to selecting the row?

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It's right there in the documentation at http://www.yui-ext.com/deploy/yui-ext/docs/

    You need to get the SelectionModel from your grid, and ask that to do it.

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

      0  

    Default


    Quote Originally Posted by Animal
    It's right there in the documentation at http://www.yui-ext.com/deploy/yui-ext/docs/

    You need to get the SelectionModel from your grid, and ask that to do it.
    Many thanks. Excuse, has badly read through the instruction.

Similar Threads

  1. Where are animate classes: "Actor" , "Animato
    By Young in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 25 Jul 2007, 4:00 AM
  2. "FireFox2 kills cursor" and text-select in toolbar
    By brian in forum Ext 1.x: Bugs
    Replies: 8
    Last Post: 7 Jun 2007, 12:12 AM
  3. Firebug and enctype="multipart/form-data"
    By Domitian in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 21 Feb 2007, 2:56 PM
  4. "alert()" interrupts function
    By nora in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 22 Dec 2006, 10:52 AM
  5. Replies: 2
    Last Post: 20 Dec 2006, 6:48 PM

Thread Participants: 2