• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hide/Show cfgrid

Guest
Aug 09, 2010 Aug 09, 2010

Copy link to clipboard

Copied

Is there any way to show a hidden cfgrid based
on an OnChange event from another cfgrid? I've tried using

a javascript function call.

<!--- First grid excerpt  --->...

bind="cfc:ATC._cfc.GetRCPsForFTEs.GetFTEs({cfgridpage},
       {cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{RCPs4FTEs.RCP_ID})"
      onChange="javascript:toggleEdit(EditTog)">

<!--- 2nd grid excerpt  --->

<!--- hide/show grid  --->
<script language="JavaScript">
function ChangeGrid(obj) {
   if (document.getElementById(obj).style.display == ")
   {document.getElementById(obj).style.display = 'none';}
   else
   {document.getElementById(obj).style.display = ";}
  
   alert("function ran");
}
</script>

If not,
any suggestions on how I could show the hidden
cfgrid from another cfgrid by some other method?

Thanks

TOPICS
Advanced techniques

Views

496

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 09, 2010 Aug 09, 2010

Copy link to clipboard

Copied

LATEST

Sorry. My previous post was incomplete.

This should be the full message:

Is There any way to show a hidden cfgrid based on an OnChange event from another cfgrid?

I tried using a javascript function:

<!--- show/hide cfgrid  --->
<script language="JavaScript">
function ToggleEdit(obj) {
   if (document.getElementById(obj).style.display == ")
   {document.getElementById(obj).style.display = 'none';}
   else
   {document.getElementById(obj).style.display = ";}
}
</script>

<!--- 1st grid excerpt  --->

...

bind="cfc:ATC._cfc.GetRCPsForFTEs.GetFTEs({cfgridpage},
       {cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{RCPs4FTEs.RCP_ID})"
      onChange="javascript:toggleEdit(EditTog)">

...

<!--- 2nd grid excerpt  --->

<div id="EditTog" style="display:none">

   <cfform  name="FTE_EDIT">
   <!--- 7/12/10 Update an FTE chosen from the 2nd grid.  --->
<!---                 values="#ValueList(qChosenFTE.Cat_Name)#"
              valuesdisplay="#ValueList(qChosenFTE.Cat_Name)#" --->
       <cfgrid name= "FTE_EDIT"

...

Any suggestions on what might work?

Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation