Sherzod Posted March 11, 2013 Share Posted March 11, 2013 Hello. Thank you very much Farshad Mohajeri. uniGUI Version 0.92 was needed. Especially UniDBGrid.Column.GroupHeader property.But, what about if, GroupHeader more than two levels?Thank you ... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 11, 2013 Administrators Share Posted March 11, 2013 Does Sencha Ext JS support this feature? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 11, 2013 Author Share Posted March 11, 2013 Does Sencha Ext JS support this feature? Hello Farshad Mohajeri. Thank you for responding. Yes it is possible. Basically, I did it in the grid, but I failed to connect to the data (store)... (I was not able to attach a file) function OnReconfigure(sender, store, colModel) { var me = sender; var column = Ext.create('Ext.grid.column.Column', {text: 'Multi Header', columns: [ {text: '', width: -1, sizeable: false, dataIndex: '0', resizable:false}, {text: '', width: -1, sizeable: false, dataIndex: '1', resizable:false}, {header: 'Name', dataIndex: '2', width: 250 }, {text: '', width: -1, sizeable: false, dataIndex: '3', resizable:false}, {text: '2, 3, 4, 5', columns: [ {text: '2', columns: [ {text: '2.1', columns: [ {header: '1', dataIndex: '4', width: 120 } ] }, {text: '2.2', columns: [ {header: '2', dataIndex: '5', width: 120 } ] } ] }, {text: '3', columns: [ {text: '3.1', columns: [ {header: '3', dataIndex: '6', width: 120 } ] }, {text: '3.2', columns: [ {header: '4', dataIndex: '7', width: 120 } ] } ] }, {text: '4', columns: [ {text: '4.1', columns: [ {header: '5', dataIndex: '8', width: 120 } ] }, {text: '4.2', columns: [ {header: '6', dataIndex: '9', width: 120 } ] } ] }, {text: '5', columns: [ {text: '5.1', columns: [ {header: '7', dataIndex: '10', width: 120 } ] }, {text: '5.2', columns: [ {header: '8', dataIndex: '11', width: 120 } ] } ] } ] } ] }, {text: '', width: -1, sizeable: false, dataIndex: '12', resizable:false} ); sender.headerCt.insert(1, column); sender.getView().refresh(); } You could help me with a store? thanks... Quote Link to comment Share on other sites More sharing options...
patmap Posted March 12, 2013 Share Posted March 12, 2013 Hi, I Change ExtJS group-header-grid.js Example for testing. There is no limit on the number of columns heaer level, and Each column can be separated into multiple columns header. Example Grid with 3 level Header and Store in Here Regards Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 12, 2013 Administrators Share Posted March 12, 2013 Hello Farshad Mohajeri. Thank you for responding. Yes it is possible. Basically, I did it in the grid, but I failed to connect to the data (store)... (I was not able to attach a file) function OnReconfigure(sender, store, colModel) { } You could help me with a store? thanks... This must be implemented internally. Logged: 0001460: Multiple levels in Column.GroupHedaer Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 12, 2013 Author Share Posted March 12, 2013 This must be implemented internally. Logged: 0001460: Multiple levels in Column.GroupHedaer Thanks... 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 12, 2013 Administrators Share Posted March 12, 2013 Implemented! 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 12, 2013 Administrators Share Posted March 12, 2013 Another SC. 1 Quote Link to comment Share on other sites More sharing options...
patmap Posted March 12, 2013 Share Posted March 12, 2013 Implemented! WOW, This is great. Thank you Mr. Farshad. Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2013 Author Share Posted March 13, 2013 Implemented! Hi, Mr. Farshad. Thank you very much, just super... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2013 Author Share Posted March 13, 2013 Hi, Mr. Farshad. I have here a problem: in the grid should be like a multi Header: Schools Schools №1 School enrollment Including those in the region Boys Girls Boys Girls 1 2 3 4 in designtime I do so: TVCLDBColumns[0] GroupHeader = ‘schools;school N1;school enrollment;boys’ Title.Caption = ‘1’ TVCLDBColumns[1] GroupHeader = ‘schools;school N1;school enrollment;girls’ Title.Caption = ‘2’ TVCLDBColumns[2] GroupHeader = ‘schools;school N1;including those in the region;boys’ Title.Caption = ‘3’ TVCLDBColumns[3] GroupHeader = ‘schools;school N1;including those in the region;girls’ Title.Caption = ‘4’ Result: Schools Schools №1 School enrollment Including those in the region Boys Girls 1 3 2 4 please, what I'm doing wrong? thanks... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 13, 2013 Administrators Share Posted March 13, 2013 Current implementation joins all headers with same level and identical group names under same column. Workaround is to use "Girls1", "Girls2" instead of "Girls" for both groups. Please add a report to Bug Reports forums regarding this issue. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2013 Author Share Posted March 13, 2013 Ok. Thanks... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 16, 2013 Author Share Posted March 16, 2013 Current implementation joins all headers with same level and identical group names under same column. Workaround is to use "Girls1", "Girls2" instead of "Girls" for both groups. Please add a report to Bug Reports forums regarding this issue. Dear, Farshad Mohajeri. Sorry, I did not write a report on the Bug Reports and on the other branches of the forum. I have one implementation. If you agree to include this implementation, I think it would extend the functionality UniDBGrid. (Sorry for my bad English.) 1. Add properties UseMultiTitle (boolean) in UniDBGrid (By the way this property is implemented in DBGridEh (Ehlib)). 2. And Columns Title fully specify MultiTitle, removing property GroupHeader. 3. Add an internal method for the analysis and generation MultiTitle (hereinafter cite the source code for this problem) 4. There's still a need to analyze the correctness of the input MultiTitle (for example, where possible, indicate the share at the beginning or at the end, or more separators are consecutive. 5. Analyze the list of visible columns to correctly generate columns (perhaps it has already been implemented). I think it will give a lot of advantages: 1. Create MultiTitle. 2. You can immediately see how it will look designtime column model. ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.