ENART.POLALA.COM
welcome to my space
X
Coffee | Sexuality | Medicine | Elderly Care | Soccer | Insurance | Small Business | Exotic Locations | Related articles

[SOLVED] Grid headers broken when within border layout

Published by: wktd 2010-03-15
  • Please see attachment headers.jpg

    column separators are out of allignment wit columns. Columns themselves are clickable and sortable, data can be fetched all right but. Header/Data allignment is completely lost as well as resizing functionality.

    Same grid rendered directly to a tab panel (without corder layout) seems to work properly

    Here is code snippet
    peopleAssignmentsGrid = createAssignmentsTable('people.center');
    peopleLayout.beginUpdate();
    peopleLayout.add('west', new Ext.ContentPanel('people.west', {autoScroll:true, fitToFrame:true}))
    peopleLayout.add('center', new Ext.GridPanel(peopleAssignmentsGrid, {autoScroll:true, fitToFrame:true}))
    peopleLayout.endUpdate();
    peopleAssignmentsGrid.render();

    which is called from Ext.EventManager.onDocumentReady()

    where

    function createAssignmentsTable(inPanel) {
    var ds = new Ext.data.Store({
    proxy: new Ext.data.HttpProxy({url: '../oxtree'}),
    reader: new Ext.data.ArrayReader({id: 0},
    [{name: 'name', mapping: 1},
    {name: 'title', mapping: 2},
    {name: 'team', mapping: 3}])
    });
    orgAssignmentsStore = ds;

    var colModel = new Ext.grid.ColumnModel([
    {header: 'Name', width: 160, dataIndex: 'name'},
    {header: 'Title', width: 160, dataIndex: 'title'},
    {header: 'Team', width: 40, dataIndex: 'team'}]);


    colModel.defaultSortable = true;

    var grid = new Ext.grid.Grid(inPanel, {
    ds: ds,
    cm: colModel
    // autoExpandColumn: 'name'
    });
    return grid;
    }


  • Hello mystix,

    Thanks to referring me to this forum gudelines. Would you like me to submit all the missing info or is it a known bug?

    Thank you

    Alex


  • Thanks to referring me to this forum gudelines.
    and yet your posted code remains as pigeon scratchings... /:)

    switch to alphanumeric ids and try again.


  • and yet your posted code remains as pigeon scratchings... /:)
    switch to alphanumeric ids and try again.

    Yeah, it was my first post to bugs forum and 4th to your forums all together and I was not thinking straight - it was 4am and I ran out of ideas with this issue. Will be more careful in the future. :">

    Sorry, may be I am missunderstanding meaning of "alphanumeric ids" but do you refer to grid row IDs which come in data? If so, the header layout is broken for me even before I load data (I do not load data untill a click even in Tree which drives this table occured) after I render it empty. I did try to change ID in my data to string - no difference.

    BTW I would like to congratulate your team on your product. It is a very well designed and coded framework. We will do a small pilot project with it and if all goes well and it suits our need we will definetely purchase maintenance and support for it.

    Thank you

    Alex


  • AFAIK, dot is not allowed in id per html spec.

    According to 4.01 specs:

    ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").


  • :(( i also got this bug when i use ie6.
    it's ok with firefox.


  • I solved the issue. It was caused by my using periods in DOM element IDs

    ie

    and subsequently using these elements for layouts and tables. Those names probably then blead to CSS and caused the breakdown.

    I do not know if it should be considered a bug or not.

    Thank you

    Alex


  • Sorry, I was too lazy to lookup myself...;)


  • @roytmana: 8887
    (note section 1a - 1e)

    also refer to http://extjs.com/forum/misc.php?do=bbcode for this forum's formatting commands.


    [edit]
    also noticed you're using numeric ids (i see an id of 0 somewhere in your code chunk) -- avoid this.


  • ~o)

    by alphanumeric ids, i meant non-numeric ids.

    i.e. try using ids like 'ext-0', as opposed to an id of 0.


  • AFAIK, dot is not allowed in id per html spec.


  • ~o)

    by alphanumeric ids, i meant non-numeric ids.

    i.e. try using ids like 'ext-0', as opposed to an id of 0.

    Sorry for bugging you. Yes, of course I understand what aplhanumeric is. But which IDs do you refer to? - DOM element IDs, DataStore row IDs, ArrayReader mapping indices (should be numeric right?), some debug IDs you see appended to my tree nodes (on attached image) those are actualy alphanums behind the scenes ...

    The only piece of code in my post with ID and numeric in my post was reader:

    reader: new Ext.data.ArrayReader({id: 0},
    [{name: 'name', mapping: 1},
    {name: 'title', mapping: 2},
    {name: 'team', mapping: 3}])
    });





  • Allergies.. no relief?!?
    Religion in the workplace?
  • internet explorer error
  • human verification questions
  • user name text has gotten smaller
  • new profile blog upgrade
  • i have a major issue
  • editing header default style
  • problems with atom feed fatal error
  • subforums table border color
  • cannot uplaod mp3 attatchments for download
  • vb shout and casino
  • social group
  • enhanced wysiwyg link colors defaulted
  • setting default display of profile
  • 3 7 beta running very slow on live site
  • log out private public key
  •  
  • default style
  • cpu limit suceeded
  • weird issue with the bookmark icons
  • general chat is there really a problem using vb3 7b2 in production
  • adding profile customization sections
  • database error when rebuilding custom avatar thumbnails
  • problems with 3 7 with avatars disabled
  • error when adding new question
  • performance slowness
  • after upgrade to 3 7 0 dosent work registration
  • not quite sure
  • possible to disable recent visitors based on group
  • error mysql can t add new phrases or translate
  • post edit history
  • Search:  
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [SOLVED] Grid headers broken when within border layout , Please add it free.

    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 enart.polala.com All Rights Reserved
    Site made&Support support@enart.polala.com    E-mail: web@enart.polala.com