Re: cfgrid flash href
Right after you are closing your cfgrid you can do something like that: http://mygrid.selecteditem.id/>}'>Edit"> ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfgrid flash href
Right after you are closing your grid you can do something like that: On Thu, Feb 4, 2010 at 1:18 PM, Paul Ihrig wrote: > > "if" i was using an html cfgrid i would just use the href attribute > inside cfgridcolumn > but i am not. am using cffrom type flash > > any how.. > appreciate it. > > > On Thu, Feb 4, 2010 at 8:34 AM, Martin Franklin > wrote: > > > > You might consider getting the underlying ext using > > ColdFusion.Grid.getGridObject("myGrid") and attaching to appropriate > logic > > to do this. Of course you would have to use an html grid in lieu of > flash. > > > > Maybe something like this? > > > > > attributeCollection="#Application.Settings.GRIDFORMAT#" pageSize="12" > > > bind="cfc:CoreComponents.searchService.RWSgetData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{rwsfindForm:l...@none > },{rwsfindForm:date_fl...@none},{rwsfindForm:date_ceil...@none > },{rwsfindForm:opera...@none},{rwsfindForm:st...@none > },{rwsfindForm:status_va...@none},{rwsfindForm:sva...@none})" > > selectonload="true"> > > > > > > > > > > > > > > > > > > > > > width="149"> > > > width="55"> > > > > > > > > > > > > > > > > > > > > > > JS... > > /*initalize grid*/ > > initrwsGrid = function(){ > > var gridObj = ColdFusion.Grid.getGridObject("rwsGrid"); > > var cm = gridObj.getColumnModel(); > > cm.setRenderer(2,render); /*Format date in column 2 to look like a > > hyperlink*/ > > gridObj.reconfigure(gridObj.getDataSource(),cm); > > gridObj.addListener("cellclick",gridfunc); > > } > > > > /*Render data as link*/ > > render = function(data,cellmd,record,row,col,store) { > > if(data != null ){ > > return '' + data + ''; > > } else { > > return data; > > } > > } > > > > /*called by init for grid render on cellclick*/ > > gridfunc = function(grid,rowIndex,columnIndex,e){ > > var record = grid.getDataSource().getAt(rowIndex); > > var fieldName = grid.getColumnModel().getDataIndex(columnIndex); > > /*On Cell Click logic*/ > >if(record.get(fieldName) != null){ > >/* Build hyperlink */ > >window.location.href = > "somepage.cfm?urlval="+record.get('NUMBER');; > >} > > } > > > > - Original Message - > > From: "Svetlin Roussev" > > To: "cf-talk" > > Sent: Wednesday, February 03, 2010 6:25 PM > > Subject: ***SPAM*** Re: cfgrid flash href > > > > > >> > >> You can do optionitem and bind it with the href. > >> > >> On Wed, Feb 3, 2010 at 7:10 AM, morchella > >> wrote: > >> > >>> > >>> hey guys. > >>> i know cfgrid flash doesn't support href in cfgridcolumn > >>> but there has to be a way? > >>> > >>> >>> height="210" width="800" rowheaders="no" > >>> onchange="getUrl('_edit_hoverArea.cfm?ha_1Id=' + > >>> hoverArea.dataProvider[hoverArea.selectedIndex]['ha_Id']);" > > >>> > >>> make the entire row a link. > >>> but i only want a link in the id column, since the other columns are > >>> for editing data. > >>> > >>> has any one done this. > >>> i have googled till i can google no more.. > >>> so i come here =] > >>> > >>> cf8 > >>> > >>> thanks! > >>> -m > >>> > >>> > >> > >> > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfgrid flash href
"if" i was using an html cfgrid i would just use the href attribute inside cfgridcolumn but i am not. am using cffrom type flash any how.. appreciate it. On Thu, Feb 4, 2010 at 8:34 AM, Martin Franklin wrote: > > You might consider getting the underlying ext using > ColdFusion.Grid.getGridObject("myGrid") and attaching to appropriate logic > to do this. Of course you would have to use an html grid in lieu of flash. > > Maybe something like this? > > attributeCollection="#Application.Settings.GRIDFORMAT#" pageSize="12" > bind="cfc:CoreComponents.searchService.RWSgetData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{rwsfindForm:l...@none},{rwsfindForm:date_fl...@none},{rwsfindForm:date_ceil...@none},{rwsfindForm:opera...@none},{rwsfindForm:st...@none},{rwsfindForm:status_va...@none},{rwsfindForm:sva...@none})" > selectonload="true"> > > > > > > > > > > width="149"> > width="55"> > > > > > > > > > > > JS... > /*initalize grid*/ > initrwsGrid = function(){ > var gridObj = ColdFusion.Grid.getGridObject("rwsGrid"); > var cm = gridObj.getColumnModel(); > cm.setRenderer(2,render); /*Format date in column 2 to look like a > hyperlink*/ > gridObj.reconfigure(gridObj.getDataSource(),cm); > gridObj.addListener("cellclick",gridfunc); > } > > /*Render data as link*/ > render = function(data,cellmd,record,row,col,store) { > if(data != null ){ > return '' + data + ''; > } else { > return data; > } > } > > /*called by init for grid render on cellclick*/ > gridfunc = function(grid,rowIndex,columnIndex,e){ > var record = grid.getDataSource().getAt(rowIndex); > var fieldName = grid.getColumnModel().getDataIndex(columnIndex); > /*On Cell Click logic*/ > if(record.get(fieldName) != null){ > /* Build hyperlink */ > window.location.href = "somepage.cfm?urlval="+record.get('NUMBER');; > } > } > > - Original Message - > From: "Svetlin Roussev" > To: "cf-talk" > Sent: Wednesday, February 03, 2010 6:25 PM > Subject: ***SPAM*** Re: cfgrid flash href > > >> >> You can do optionitem and bind it with the href. >> >> On Wed, Feb 3, 2010 at 7:10 AM, morchella >> wrote: >> >>> >>> hey guys. >>> i know cfgrid flash doesn't support href in cfgridcolumn >>> but there has to be a way? >>> >>> >> height="210" width="800" rowheaders="no" >>> onchange="getUrl('_edit_hoverArea.cfm?ha_1Id=' + >>> hoverArea.dataProvider[hoverArea.selectedIndex]['ha_Id']);" > >>> >>> make the entire row a link. >>> but i only want a link in the id column, since the other columns are >>> for editing data. >>> >>> has any one done this. >>> i have googled till i can google no more.. >>> so i come here =] >>> >>> cf8 >>> >>> thanks! >>> -m >>> >>> >> >> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330403 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfgrid flash href
You might consider getting the underlying ext using ColdFusion.Grid.getGridObject("myGrid") and attaching to appropriate logic to do this. Of course you would have to use an html grid in lieu of flash. Maybe something like this? JS... /*initalize grid*/ initrwsGrid = function(){ var gridObj = ColdFusion.Grid.getGridObject("rwsGrid"); var cm = gridObj.getColumnModel(); cm.setRenderer(2,render); /*Format date in column 2 to look like a hyperlink*/ gridObj.reconfigure(gridObj.getDataSource(),cm); gridObj.addListener("cellclick",gridfunc); } /*Render data as link*/ render = function(data,cellmd,record,row,col,store) { if(data != null ){ return '' + data + ''; } else { return data; } } /*called by init for grid render on cellclick*/ gridfunc = function(grid,rowIndex,columnIndex,e){ var record = grid.getDataSource().getAt(rowIndex); var fieldName = grid.getColumnModel().getDataIndex(columnIndex); /*On Cell Click logic*/ if(record.get(fieldName) != null){ /* Build hyperlink */ window.location.href = "somepage.cfm?urlval="+record.get('NUMBER');; } } - Original Message - From: "Svetlin Roussev" To: "cf-talk" Sent: Wednesday, February 03, 2010 6:25 PM Subject: ***SPAM*** Re: cfgrid flash href > > You can do optionitem and bind it with the href. > > On Wed, Feb 3, 2010 at 7:10 AM, morchella > wrote: > >> >> hey guys. >> i know cfgrid flash doesn't support href in cfgridcolumn >> but there has to be a way? >> >> > height="210" width="800" rowheaders="no" >> onchange="getUrl('_edit_hoverArea.cfm?ha_1Id=' + >> hoverArea.dataProvider[hoverArea.selectedIndex]['ha_Id']);" > >> >> make the entire row a link. >> but i only want a link in the id column, since the other columns are >> for editing data. >> >> has any one done this. >> i have googled till i can google no more.. >> so i come here =] >> >> cf8 >> >> thanks! >> -m >> >> > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330400 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfgrid flash href
You can do optionitem and bind it with the href. On Wed, Feb 3, 2010 at 7:10 AM, morchella wrote: > > hey guys. > i know cfgrid flash doesn't support href in cfgridcolumn > but there has to be a way? > > height="210" width="800" rowheaders="no" > onchange="getUrl('_edit_hoverArea.cfm?ha_1Id=' + > hoverArea.dataProvider[hoverArea.selectedIndex]['ha_Id']);" > > > make the entire row a link. > but i only want a link in the id column, since the other columns are > for editing data. > > has any one done this. > i have googled till i can google no more.. > so i come here =] > > cf8 > > thanks! > -m > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330396 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfgrid flash href
hey guys. i know cfgrid flash doesn't support href in cfgridcolumn but there has to be a way? make the entire row a link. but i only want a link in the id column, since the other columns are for editing data. has any one done this. i have googled till i can google no more.. so i come here =] cf8 thanks! -m ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4