Hello, I am exploring jx.lib to create an instance of editable jx.grid at runtime, though i am able to achieve this but unsuccessfull to add it to panel and too to right side of splitter. Currently i am adding this grid to task pane which is not a good idea. You may refer current and expected attached files for your reference. 'Current' is what i am getting now and 'expected' is what i want in diff. i.e. slate layout. Also, i am unable to start editing on cell , kindly help me on this on too. Please refer the code which i am using to create grid with editing
//create grid grid = new Jx.Grid(store, { parent: 'gridEventEnabled', row: { useHeaders: true, alternateRowColors: true, headerField: '', rowHeight: 'auto' }, columns: { headerRowHeight: 20, useHeaders: true, columns: [jxcolumns] }, model: store });
grid.addEvent('gridRowClick' , rowHeader); store.addEvent( 'storeDataLoaded', function () { prelighter.activate('cell'); prelighter.attach(grid); selector.attach(grid); sorter.attach(grid); editor.attach(grid); grid.render(); store.load();i have sucessfully created gird in above lines .. i have copied only section of code in above steps
CODE TO ADD ABOVE GRID TO PANEL AT RUNTIME BUT NOT WORKING!!!var p2=new Jx.Panel({label: 'Attribute Editor', content: grid.domObj, height: 200});
var sm = new Jx.PanelSet(mapWidget.getDomObj('MapArea'), [p2]);
sm.maximizePanel(p2);
mapWidget.resize();Regards
Hello Jon,Thanks for replying , i am really looking forward for your help, i have already replied on your post 2 days back but its weird my comments are not visible :(((This is what i am doing to add jx.grid to jx.panel at runtime but its not happening or i say its acting weirdhere i am succesfully able to create jx.grid object which i am using in below lines....
var p2=new Jx.Panel({label: 'Attribute Editor', content: grid.domObj, height: 200});var sm = new Jx.PanelSet(mapWidget.getDomObj('MapArea'), [p2]);sm.maximizePanel(p2);mapWidget.resize();
please let me know if you still unclear on this..NOTE:: i am GIS developer and using Autodesk infrastructure map server for my customization , so mapwidget here actually in simple words is the object which contains my map.Regards