Hi
Unfortunately I am not using Sencha Architect. I don't how Sencha Architect works with class extensions.
Best regards
Hi
Unfortunately I am not using Sencha Architect. I don't how Sencha Architect works with class extensions.
Best regards
How can we do the same in Sencha GXT 3.0
Hi Lukas,
Can we have a button to reload grid? Can you add it in the DynamicGrid.js?
Thanks in advance.
I have never written any code using Ext.GXT. You have to ask people writing in GXT.Originally Posted by velucsc22
I think that dynamicGrid have to be simple as possible. Not everyone want to have toolbar with button like refresh. So I would not add this to DynamicGrid.js.
Adding toolbar with refresh button is VERY easy to make. So you can add button by your own like:
Grid declaration:
ControllerCode:{ xtype: 'toolbar', dock: 'top', items: [ { xtype: 'button', text: 'Refresh', action: 'btnRefresh' } ] }
Btw.Code:Ext.define('.....', { ... init: function() { this.control({ 'button[action=btnRefresh]' : { click: this.onBtnRefreshClick } }); }, onBtnRefreshClick: function() { var dynamicGrid = Ext.ComponentQuery.query('dynamicGrid')[0]; dynamicGrid.getStore().load(); } });
I'm sorry that I say, but you should read more documentation before the next simple question.
Hi,
Firstly I would like to thank you for sharing this dynamicGrid plugin.
I have a border layout in which east region contains a tree. Whenever I click on tree nodes I have to create a dynamicGrid and add it to the center region of the layout. My click handler looks like this.
onClick , dynamicGrid got created and loaded with column headers. But data is not getting loaded. I'm not sure why it is not loading the records. Can you help me to get rid of this problem please?Code:clickHandler: function(){ var grid = Ext.create('Ext.ux.grid.DynamicGrid',{url:'https://myserver.com/getJson.php'}); var myLayout = Ext.getCmp('mainLayoutId'); home.insert(grid,{region:'center'}); home.doLayout(); var store = grid.getStore(); console.log(store.count()); //This is returning 0 . I can see my JSoN response with //more than 5 records. }
Thanks a lot![]()
Hi pnhegde,
Can you provide some example of your json data response or better some jsFiddle example or github?
Without them it is hard to tell me whats is going on.
Best regards.
Hi,
Actually my problem is solved now. There was a silly mistake which is not related to dynamic grid. I was having a bad time figuring out that problem and thought that problem is related to dynamic grid. Sorry for the previous post and thanks a lot .
Once again, Thank you very much for your plugin dynamicGrid. It made my life easier![]()
Hi,
I am sending parameters to PHP forming quering which in turn forms grid. But when there is no parameter, it still shows column header with no data like,
zzb4zY.jpg
How can I set grid empty when I am not sending any parameter?
And also only integers are getting sorted in the dynamic grid (column), why is that?.
Thanks!
Hi,
I don't know what you mean in this sentence
But what I see in the picture is grid with one column. So your json data probably looks like:I am sending parameters to PHP forming quering which in turn forms grid.
Which means that dynamicGrid created self properly. If you want to display grid without any columns returned data should be an empty array.Code:[{'userID' : ''}]
Json example:
Is this answer for your question?Code:[]
If not correct me.
There was a bug on sortType method of 'floatOrString'. I fixed this and should work properly. Thx for vigilance. Look into github -> https://github.com/nonameplum/Dynami...namicReader.jsAnd also only integers are getting sorted in the dynamic grid (column), why is that?