-
3 Jan 2007 10:14 PM #1
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.
-
4 Jan 2007 9:02 AM #2
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)
Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
4 Jan 2007 10:03 AM #3
like this:
Originally Posted by tryanDLS
the function:
when to call it:Code:function href(value){ return '' + value + '' }
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});
-
10 Jan 2007 3:18 AM #4
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
-
Grid: Paging of JavaScript Array already in memory
By Preston in forum Ext 1.x: Help & DiscussionReplies: 34Last Post: 1 Oct 2012, 4:40 AM -
Array-grid example, maximum column allow is 21?
By eric_sato in forum Ext 1.x: BugsReplies: 1Last Post: 28 Mar 2007, 8:19 PM -
Populating Array Grid with one column hidden
By rahulmca1@gmail.com in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 16 Feb 2007, 8:15 AM -
How to call array-grid?
By sailaja in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 16 Jan 2007, 6:56 AM -
Array Grid Example
By qintnt in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 4 Dec 2006, 5:06 AM


Reply With Quote