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

      0  

    Default Array-Grid in YUI

    Array-Grid in YUI


    How to give anchor(href) tag to one coloumn in array-grid in YUI.So that when click on that coloumn element it navigates to another grid.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    Add a renderer for the column to wrap the text in a link element. See the grid examples which use renderers to change data formats (e.g. numeric to money, or string to date)

  3. #3
    Ext Premium Member BernardChhun's Avatar
    Join Date
    Mar 2007
    Location
    Quebec, Canada
    Posts
    831
    Vote Rating
    2
    BernardChhun will become famous soon enough

      0  

    Default


    Quote Originally Posted by tryanDLS
    Add a renderer for the column to wrap the text in a link element. See the grid examples which use renderers to change data formats (e.g. numeric to money, or string to date)
    like this:

    the function:

    Code:
    function href(value){
    	return '' + value + ''
    }
    when to call it:

    Code:
    // CALLBACK HERE
    var colModel = new YAHOO.ext.grid.DefaultColumnModel([
    {header: 'source', width: 150, sortable: true, renderer: href}]);
    
    var grid = new YAHOO.ext.grid.Grid('myGrid', {
            dataModel: dataModel,
    	colModel: colModel});

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

      0  

    Default YUI

    YUI


    Hi,
    Thanks alot for ur code.It helped me lot and i solved my problem.
    Once again thank you for ur help.

    Regards,
    sailaja.

Similar Threads

  1. Grid: Paging of JavaScript Array already in memory
    By Preston in forum Ext 1.x: Help & Discussion
    Replies: 35
    Last Post: 27 Nov 2013, 10:26 AM
  2. Array-grid example, maximum column allow is 21?
    By eric_sato in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 28 Mar 2007, 8:19 PM
  3. Populating Array Grid with one column hidden
    By rahulmca1@gmail.com in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 16 Feb 2007, 8:15 AM
  4. How to call array-grid?
    By sailaja in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 16 Jan 2007, 6:56 AM
  5. Array Grid Example
    By qintnt in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 4 Dec 2006, 5:06 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar