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? |