tdobberphul, thanks for workaround. I created branch on github repo with this code:
https://github.com/nonameplum/DynamicGrid/tree/extjs4.2-fix
Type: Posts; User: plum
tdobberphul, thanks for workaround. I created branch on github repo with this code:
https://github.com/nonameplum/DynamicGrid/tree/extjs4.2-fix
I mean, creating the new component like Button or GMap panel was created for Ext4j.
I have my own implementation of Portal component, that have new poperties and methods.
What I have to do that I...
I'm not very familiar with GWT world. Can you explain how to implement custom new component created with ExtJs to Ext4j?
Is this answer for your question?
var onlyDates = [];
for (var key in grid.getStore().getAt(1).data) {
var val = grid.getStore().getAt(1).data[key];
console.log(key + ': ' + val);
...
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.reader.Reader-cfg-totalProperty
You have to set totalProperty in reader, so you can change it in DynamicReader class.
proxy: {
reader:...
You have to look to filter plugin code, how it works (I have never used this plugin), but probably you have to create plugin dynamically in reconfigure dynamicGrid's event ->...
No problem, feel free to use.
I created for you more complex soluction that is more elastic I think.
Look into github last commit:
https://github.com/nonameplum/DynamicGrid/commit/f5e5c5177d4e270ee550d7fc1f42bea62c775c02
But...
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:
[{'userID' : ''}]
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.
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...
I have never written any code using Ext.GXT. You have to ask people writing in GXT.
Hi
Unfortunately I am not using Sencha Architect. I don't how Sencha Architect works with class extensions.
Best regards
diet1986
created second topic related to his question here -> http://www.sencha.com/forum/showthread.php?248262-Reconfigure-Grid-with-response-from-server-json-object
As vietits mentioned read this before you ask for more details, you should find there all informations that you need:
...
I especially not expanded the code to this kind of soluctions becouse anyone can have different ideas that match their requirements.
Your requirement can be resolved in two ways. Visible columns...
Look into my code, it is very small addon, and change it to your requirements.
http://www.sencha.com/forum/showthread.php?242594-Dynamic-grid-with-dynamic-model
Thanks for reply. I guessed that Ext.Loader will cause problems for Sencha Cmd. I will make project from scratch using Sencha cmd commands and then I will try to remake my project to apply this rules.
I think you are setting url in inproper way becouse you are getting 404 so browser can't find your destination.
E.g. if you have url to php file that is returning you json data like:
...
Hi,
You have to set url property of xtype dynamicGrid. So if you look into Viewport.js file you will see this lines:
{
xtype: 'dynamicGrid',
url: './data.js' //url to your json...
Hi,
Sorry, I have short free days in work.
After reading documentation. I added "compilation" sencha cmd lines that now my index.html file look like:
<!DOCTYPE html>
<html>
<head>
I created example how to use my addon:
https://github.com/nonameplum/DynamicGrid
Best regards
Lukas
Hi,
I have problem with compilation my application. I improved my app files that have no more errors in compilation time but result file: all-classes.js have only comment:
//@tag...
No, there shouldn't be another data (like metadata), only "pure" json objects in table. Like you can see in first post json should b
JSON example (from this json will be created 3 columns: 'data',...
I updated the first post with example of json. If you have some more complicated json you can try make own implementation of readRecords.