Link to home
Start Free TrialLog in
Avatar of tharun27
tharun27

asked on

cfgrid format issue and columns missing

Below is my current code, i recently changed the format set to html from flash to render in html.
but i noticed from the time, i changed the format = html, the first and last row columns are not showing or generating, especially with the format as flash, i see the id column present, but when i change it to html, the id column is missing, to which i cant edit any row details further.
    <cfgrid name="Setup_grid" height="200" width="900" align="LEFT" autoWidth="yes"  
        query="Finalquery"  
        insert="No" delete="No" sort="Yes" fontsize="14"  
        bold="No" italic="No" appendkey="Yes"  
        griddataalign="LEFT" gridlines="Yes"  
        rowheaders="Yes" rowheaderalign="CENTER" rowheaderitalic="No" rowheaderbold="No"  
        colheaders="Yes" colheaderalign="CENTER" colheaderfont="Arial" colheaderfontsize="12"  
        colheaderitalic="No" colheaderbold="Yes"  
        selectmode="Row" picturebar="Yes"  
        format="html" >  
      
        <cfgridcolumn name = "KeyID" Header="Key ID" bold = "No" italic = "No" select = "Yes" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">  
        <cfgridcolumn name = "Step" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">  
        <cfgridcolumn name = "Operation" dataAlign = "LEFT" bold = "No" italic = "No" select = "No" display = "Yes" headerBold = "Yes" headerItalic = "No" width = "75">  
        <cfgridcolumn name = "RevCode" display = "No">  
        <cfgridcolumn name = "StatusID" display = "No">  
      
    </CFGRID>  
    <script type="text/javascript">  
    document.getElementById("Setup_grid").setAttribute("type", "application/xhtml xml");  
    </script>  

Open in new window

html.PNG
Avatar of _agx_
_agx_
Flag of United States of America image

Haven't used cfform in a while, but that 1st column is a row number.  Something flash forms generate automatically, but html forms don't. AFAIK, it's not supported out to the box.  Though you might be able to add it through the underlying ExtJS library, or ... simulate it by adding a row number column to the query data. Then adding it as a grid column.

>    <cfgridcolumn name = "StatusID" display = "true">  

The last column isn't showing up because it's set to display="no". Change it to "yes" or "true" and it will display.
Avatar of tharun27
tharun27

ASKER

thank you, will sure try. thanks again
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you, that helps.