Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 523751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:29:41+00:00 2026-05-13T08:29:41+00:00

On CF9, a CFGridcolumn with type=combobox will have typeAhead set to false in the

  • 0

On CF9, a CFGridcolumn with type=”combobox” will have “typeAhead” set to false in the underlying javascript. typeAhead is the auto-complete effect for a combobox, which you can see here, in the “Light” column: http://www.extjs.com/deploy/dev/examples/grid/edit-grid.html

I’d like to know how to add this typeAhead functionality into an EXTJS-based grid using ColdFusion 9 and CFGrid/CFGridColumn along with the associated Coldfusion.Grid functions.

Thanks for guidance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:29:42+00:00Added an answer on May 13, 2026 at 8:29 am

    Here’s how:

    you create a js function that looks something like this:

        function formatGrid(){
        var grid = ColdFusion.Grid.getGridObject("configgrid");
        var colModel = grid.getColumnModel();
    
        colModel.setRenderer(1,function(value, p, record, rowIndex, colIndex){
            var val = "";
            var editor = colModel.getCellEditor(colIndex,rowIndex);
            Ext.apply(editor.field,{typeAhead:true,editable:true});
            return value;
        });     
    
    }
    

    In the setRenderer call, the “1” refers to the zero-based index of the column you’re modifying. If you had multiple combobox columns, you could easily extract this function to be more generic and accept a column model and column index.

    Then, to call the function, on CF8 you can use

    <cfset ajaxOnLoad("formatGrid")>
    

    On CF9 you can use the onload attribute of the CFGrid tag, and set it to “formatGrid” (or whatever you wish to call your function)

    For what it’s worth, I finally saw the light after watching Cutter’s presentation on CF9/Ajax here: http://experts.na3.acrobat.com/p62805180/

    That gave me what I needed to get the renderer applied to the column model. Then, I looked in the source for what ColdFusion is creating for the column model, and I saw “editable:false” for the dropdown field. Turning editable:true on was the missing piece for getting typeAhead:true to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can function argument have hint in cfscript (CF9)? CFML style: <cffunction name=myFunc output=false returntype=void>
CF9, Windows Server 2008 Standard, IIS7, mySQL 5.1.48 community. I have managed to get
I've only just started out with CF9's ORM features, and have run into a
Recently CF9 released Hibernate Support. One thing that I cant grasp is the diiferences
In CF9 doc: Defining components and functions in CFScript , it says: /** *Comment
When I use CF9's ORM feature and generate an explict setter for my ORM
I'm used to setting up CF9 (Dev edition) on my Windows machine, using Apache.
With the new ways of writing CFC in CF9, what are some of the
We've run into a serious issue with CF9 wherein values for certain struct keys

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.