1. #1
    Ext User sreenija's Avatar
    Join Date
    Aug 2007
    Posts
    29
    Vote Rating
    0
    sreenija is on a distinguished road

      0  

    Default Right Click on Grid header and i can't find checkboxes to hide/show column names

    Right Click on Grid header and i can't find checkboxes to hide/show column names


    hi !

    I have a grid when i right click on column header

    it shows me columns option -> then list of columns
    but in the drop down i can see only column names but no check boxes are visible beside them

    i included ext-all.css

    Thank You
    sreenija

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    are you getting 404's in your firebug console?

  3. #3
    Ext User sreenija's Avatar
    Join Date
    Aug 2007
    Posts
    29
    Vote Rating
    0
    sreenija is on a distinguished road

      0  

    Default


    No i am not getting any 404's
    Please help me
    even my column header is not showing up/down arrows when hit it to sort

    Thanks for replying
    sreenija

  4. #4
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    can you paste your code in php or code tags please?

  5. #5
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    The references to your css are not correct. Use firebug to inspect your XHR images...it will show all images downloaded, etc. Some are likely red (meaning it couldn't find them).

    You may have a correct link to your css file, but if you moved it, you may have screwed up the relative references inside that file to default images used in grid.

  6. #6
    Ext User sreenija's Avatar
    Join Date
    Aug 2007
    Posts
    29
    Vote Rating
    0
    sreenija is on a distinguished road

      0  

    Default


    i followed scott walter's demo and build the project

    into my project folder:
    i copied css and images folders of ext 1.1
    also ext-all.js and ext-all-debug.js
    then parallel to them i placed my javascript file

    some code of my javascript file:
    Code:
    <link rel="stylesheet" type="text/css" href="./css/ext-all.css"/>
    <script type="text/javascript" src="ext-all-debug.js"></script>
    <script type="text/javascript" src="ext-all.js"></script>
    
    friendcm = new Ext.grid.ColumnModel([
    		    {header: "Friend Name", width: 75, sortable: true, dataIndex:'friends'},
    		    {header: "VN",hidden:true, width: 75, sortable:true, dataIndex:'viewname'},
    		    {header: "Status", width: 75, sortable: true, dataIndex:'status'}
    		    ]);
    		
    		dsforgrid = new Ext.data.Store({
    			proxy:  new Ext.data.HttpProxy({url:'/listfriends.do?username='+uname}),
    			reader:  new Ext.data.JsonReader({root: 'data'},[{name: 'friends'},{name:'viewname'},{name:'status'}])}); 
    
    grid = new Ext.grid.EditorGrid('NewDiv'+l, {ds:dsforgrid, cm:friendcm,autoSizeColumns:true,enableRowHeightSync:true, 
                   selModel: new Ext.grid.RowSelectionModel({singleSelect:false})});
    var gridFooter = grid.getView().getFooterPanel(true);
       // add a paging toolbar to the grid's footer
       
       var paging = new Ext.PagingToolbar(gridFooter, dsforgrid, {
            pageSize: 25,
            displayInfo: true,
            displayMsg: 'Displaying friends {0} - {1} of {2}',
            emptyMsg: "No Data To Display"
        });
    my grid footer is fine displaying all images like naxt page,lastpage,first page,loading e.t.c

    but i wonder why the check boxes are not showing up if i want to show or hide a column
    i can see only column names but no check boxes left side of colmn names
    and another crucial thing i observed is :
    when i right click on my column header the images in the menu seem like trying to load but the options in the menu are moving to most left
    i.e., i think they are occupying the space given to images like
    column names sitting on check boxes


    I even don't have any 404's in my firebug
    is this the problem
    please let me know
    how to fix this
    Please see the attachment in my next reply
    Thank You
    sreenija

  7. #7
    Ext User sreenija's Avatar
    Join Date
    Aug 2007
    Posts
    29
    Vote Rating
    0
    sreenija is on a distinguished road

      0  

    Default


    Please see the Attachment
    I have attached a screenshot
    You will get a clear idea why check boxes/icons are not visible beside column names/options
    in the menu when i right click on column header

    as mjlecomte said:
    Use firebug to inspect your XHR images...it will show all images downloaded, etc. Some are likely red (meaning it couldn't find them).
    My fire bug is showing all images.nothing is marked red.
    ThankYou
    sreenija
    Attached Images

  8. #8
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,509
    Vote Rating
    374
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Quote Originally Posted by sreenija View Post
    i followed scott walter's demo and build the project

    into my project folder:
    i copied css and images folders of ext 1.1
    also ext-all.js and ext-all-debug.js
    then parallel to them i placed my javascript file

    You cannot do this. Ext 2.0 has its own set of css and images that have to be included for UI to show properly. Do it standard way taking an example as a model.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #9
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by sreenija View Post
    Please see the Attachment
    I have attached a screenshot
    You will get a clear idea why check boxes/icons are not visible beside column names/options
    in the menu when i right click on column header

    as mjlecomte said:
    Use firebug to inspect your XHR images...it will show all images downloaded, etc. Some are likely red (meaning it couldn't find them).
    My fire bug is showing all images.nothing is marked red.
    ThankYou
    sreenija
    When you go Firebug, Net, Images, all images used to render page should show.

    In that list of images should be for example checked.gif. Is it there? Is it red?

    When you go Firebug, Net, CSS, all css files referenced by the page should show. Do you see ext-all.css? Is it red?


    First answer on both needs to be yes. Second answer should be no, if it's red then your relative references are screwed up or you need to manually move images around accordingly.

  10. #10
    Ext User sreenija's Avatar
    Join Date
    Aug 2007
    Posts
    29
    Vote Rating
    0
    sreenija is on a distinguished road

      0  

    Default


    Please see the attachment
    it's a screen shot of my firebug. it is looking at all the image files.
    Nothing is marked red.
    please help me.
    i still wonder why the column names in the menu are sitting over the check boxes
    Attached Images