<< BACFUG

Discussion Area

ask questions, discuss topics, solve problems

Discussion Home | About | Threads By Date | Search

cfgrid combobox


Thread posted 03/15/10 by moiraine88 last edited 03/15/10
9,723 views, 1 comments.

Title
cfgrid combobox

Content

Hi, I'm having difficulties getting my cfgrid to refresh with the option selected from a combobox, and was hoping someone could point me in the right direction or even know how to fix it.

Included in the code snippets: 1) init function from .cfm, 2) getData function from .cfc

The combobox works and everything, but just doesn't refresh the grid with the selected item.

Comments

posted 03/15/10 by Sid Maestre | Report Abuse

<p>Are you having the combo box trigger a "refresh" with Javascript?</p> <p>ColdFusion.Grid.refresh('myGrid',false);</p> <p>Also, are you binding your combo box value to the method that is populating your grid?</p> <p>I use this syntax for my CFgrid</p> <p>&lt;cfgrid</p> <p>.......</p> <p>&nbsp;&nbsp; bind="cfc:mycfc.getCompany({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{cfgridfilter})"&gt;</p> <p>Just saw you posted this to bacfug@vfive.org.&nbsp; Good, this will yield more responses for you.&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;</p>