-
8 May 2007 2:37 PM #21
cool

i knew there was a reason why i did params.start !== undefined and not just if(params.start) in my earlier version...
that was it 
-
5 Jun 2007 5:50 AM #22
Using this as a base, would it be possible to take this further?
The problem I am now facing is that the data displayed in the grid is just summary data.
I need to be able to filter via the detailed data which is in the database. And to top it off I am also using DWR.
So is it possible to combine filtering for the in memory grid data while doing a server call to filter via detailed data from the database. Or is it better to do all the filtering on the server and just return the results to the browser?
Here's an example:
I want to display summary information about a user (first name, last name, address), but I also want to be able to filter the data via fields that are not displayed in the grid (birth date, age, personal notes, etc).
I might be complicating things more than they need to be, so any help would be appreciated.
-
7 Jun 2007 4:57 PM #23
Sorry i have no experience with DWR and what implications that has on your question. (i hope none
)
Personally i think it's better to just do the filtering on the server, it's most likely easier then messing around with it on the client. (specially if you want to split the user list and user details)So is it possible to combine filtering for the in memory grid data while doing a server call to filter via detailed data from the database. Or is it better to do all the filtering on the server and just return the results to the browser?
Sure i think that can be done. You'll most likely could end up with overwriting most of the Store's components. (Proxy and Reader) To make them behave like you want to.Here's an example:
I want to display summary information about a user (first name, last name, address), but I also want to be able to filter the data via fields that are not displayed in the grid (birth date, age, personal notes, etc).
I might be complicating things more than they need to be, so any help would be appreciated.
As long as it isn't a problem for u to keep all data in memory then you can search the non-showed data as easily as the data shown in the grid. (your searching the underlying data store, not the grid itself) Otherwise u will just query the server again for user details and then the possible speed gain of client side filtering is gone anyways.
But if u can, start with serverside filtering, that's what is most commonly used in Ext and the easiest to build. (and you can always which over in the feature)
-
17 Jul 2007 3:31 PM #24
Is there any way to load a new dataset into a BufferedMemoryProxy after it has been created?
I have an iTunes-like interface that loads data into the grid whenever the user makes a selection above. I'm trying to use BufferedMemoryProxy (see earlier in the thread), but I can't figure out how to load a new double-nested array into it. If I'm using no paging, the following works great:
Is there an equivalent that pipes the data through a BufferedMemoryProxy?Code:data_store.loadData(data); data_store.fireEvent('datachanged');
-
17 Jul 2007 4:19 PM #25
Yes, there is. I just found it.Is there an equivalent that pipes the data through a BufferedMemoryProxy?
Hope that helps someone.Code:delete data_store.proxy.data; data_store.proxy.data = data; data_store.load({params:{start:0, limit:page_size}}) data_store.fireEvent('datachanged');
-
18 Jul 2007 9:06 AM #26
Jack, is this the "advisable" way to do it, or is there a better way?
-
17 Aug 2007 8:52 AM #27
This PagingMemoryProxy has been awesome for me.
I've noticed that since I'm loading from memory the refresh button is completely worthless.
How do i turn it off?I like it. Simple, easy to remember.
...but why is the rum gone?
-
20 Aug 2007 10:20 AM #28
In addition: if i turn on column sorting, it only sorts what is in the current page.
How would i make it sort the entire store and refresh to the current page?I like it. Simple, easy to remember.
...but why is the rum gone?
-
22 Aug 2007 9:43 AM #29
Add remoteSort: true to your data.Store config.
-
30 Aug 2007 9:14 AM #30
Trouble with sorting...
Trouble with sorting...
You'll need to replace this function:
with:Code:var fn = function(r1, r2){ return r1 < r2; };
to get the sorting to work properly.Code:var fn = function(r1, r2){ return r1 == r2?0:r1 < r2?-1:1; };"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
Similar Threads
-
[SOLVED] Memory Leak in Paging Grid Example?
By cobnet in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 3 May 2007, 8:24 PM -
Grid DataModel keeps data in memory
By tane in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 24 Feb 2007, 12:38 PM -
How to call array-grid?
By sailaja in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 16 Jan 2007, 6:56 AM -
Array-Grid in YUI
By sailaja in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 10 Jan 2007, 3:18 AM -
Array Grid Example
By qintnt in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 4 Dec 2006, 5:06 AM


Reply With Quote


