[flexcoders] Re: DataGrid paging?

2007-03-09 Thread Danko Kozar
Indeed, a VScrollBar has really a lot of flexibility! I succeeded in subscribing to it's events and using the event.preventDefault() method cancel it's other listeners and it's actions. Using the configureScrollBars() method, the scrollbar sizing can easily be configured: override protected

[flexcoders] Re: DataGrid paging?

2007-03-09 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: I I've taken a look at your grid - you are basically extending a Canvas and laying out a DataGrid and indipendant VScrollBar on that canvas. I didn't extend DataGrid because although I really am adding functionality to

[flexcoders] Re: DataGrid paging?

2007-03-08 Thread Danko Kozar
I am testing both of this examples, thanks.. Question: is there any possibility to control the DataGrids scrolling thumb position and height? Because this way a page size would be fixed (rows not scrolling at all) and the scroller would be used just for navigation through pages (instead of

[flexcoders] Re: DataGrid paging?

2007-03-08 Thread Danko Kozar
Of course, automatic sorting (when clicking grid headers) would have to be decoupled from a grid logic, and it should be sent as info to a server-side procedure that fetches rows. To sum up, it would be nice to have a grid which: 1) always displays a constant number of rows (i.e. 20), which

[flexcoders] Re: DataGrid paging?

2007-03-08 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: I am testing both of this examples, thanks.. Question: is there any possibility to control the DataGrids scrolling thumb position and height? Because this way a page size would be fixed (rows not scrolling at all)

[flexcoders] Re: DataGrid paging?

2007-03-08 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: Of course, automatic sorting (when clicking grid headers) would have to be decoupled from a grid logic, and it should be sent as info to a server-side procedure that fetches rows. My example does this. To sum up, it

[flexcoders] Re: DataGrid paging?

2007-03-07 Thread Paul DeCoursey
I'm working on a paginated datagrid that is so far working fine, except that I use the next prev adn jump to page design pattern above the gird. I recall seeing exactly what you are asking for in html, like ntobi's live grid for example. I'm sure it wouldn't bee too difficult to adapt my paged

[flexcoders] Re: DataGrid paging?

2007-03-07 Thread Danko Kozar
OK, waiting for code... :-) --- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: I'm working on a paginated datagrid that is so far working fine, except that I use the next prev adn jump to page design pattern above the gird. I recall seeing exactly what you are asking

[flexcoders] Re: DataGrid paging?

2007-03-07 Thread Paul DeCoursey
Ok, here is what I have slapped together. http://www.devilsworkbook.com/remotegrid/GridTests.html (source is available on right-click) For your purposes it will need some cleanup, I still have my extra pagination controls in there. It uses a static datasource but you can easily implement your

[flexcoders] Re: DataGrid paging?

2007-03-07 Thread roman_dolgov
I am facing similar problem and wrote a blog entry on similar topic: http://blog.widget-labs.com/?p=7 (The main idea is to implement custom IList data provider that relies on ItemPendingError for delayed loading) regards rd --- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: