Monday, February 19, 2007

Flex DataGrid Paging Example with Source

Many of you have requested the source to my Flex DataGrid paging example. Here it is http://develop.gurufaction.com/src/App.mxml and the example application can be viewed here http://develop.gurufaction.com/App.swf

50 comments:

Anonymous said...

very nice work

Anonymous said...

Love the paging grid, it saved me a lot of time.

Anonymous said...

Thanks for the nice post!

Anonymous said...

could u tell me how to do pagination for repeater control in flex 2 while taking movie images from youtube ?

Anonymous said...

hot stuff.

Anonymous said...

great work! thanks for the source file.

Anonymous said...

Thanks for posting for the rest of us...

Anonymous said...

very interesting... do you know of a way to link the paging to the scrollbar, a bit like native apps do?

Anonymous said...

thanks for sharing the code. One thing I noticed and I'm currently trying to fix is that as it's implemented, if u sort one page using one of the columns, it sorts only that page. And then when u change page u lose your sorting criteria.

Özmen Adıbelli said...

good code. useful

Unknown said...

Sorting issue - sort not whole data set, only current page.

Ravi said...

This is very good example and very useful for me to develop the datagrid. But i need some more advanced on this same.

Actually i need to display the total data in one page when i scroll the vertical bar. Means continuous scrolling and displaying in one page. Can you please provide me a example on the same.

Anonymous said...

Great feature. Can you please help me with paginating grouped data? I currently have flat data and paginate this, then set it as a source for groupingcollection. I have to show a summary row as the last row of the group and sometimes when the group is splitting into two pages, it adds a summary row on the first page for partial data and again on the next page for the rest of the data. This is kind of misleading to the users.

Thanks for your help.

Gurufaction said...

I noticed that many of you are requesting help with your datagrid paging. I am sorry for not responding quickly but I am very busy. I will try to update my Flex paging with some of your feature requests when I get a chance.

Anonymous said...

To author:
I think by providing your example you've already done enough. A fantastic example, well done.

To readers:
Why do people insist on requesting additional enhancements, when really what they should do is 'learn' and 'extend' and 'contribute' their own enhancements back to the community (and credit the author).

Nobody is going to solve your particular problem but you. Do the right thing, be grateful someone made an effort to share some experience and contribute back. If you can't do this, why are you bothering other than to make a quick gain when really you don't deserve the outcome.

Anonymous said...

Hi,
Could you have any Example for Flex Datagrid Paging Using LCDS2.6.1 in built paging?

Anonymous said...

Very Nice Job :) Thank you very much.

I have noticed that when you want to display more than 10 at the same by changing navSize et pagesize, the paging is not working anymore.

Can you tell how is it possible to display 20 elements per page ?

Unknown said...

Hey Very Nice work....

You are using the Arraycollection as dataprovider for your datagrid.

I am using the XMLList as dataprovider.
Can you give me some suggestion how to do paging on this condition.

Anonymous said...

Very nice example, im looking time for anything like this, thanks for your code.

David.

Anonymous said...

i have the updated mxml code with datagrid sorting fixed and some slight modifications to the UI... i am not able to put the code in this post as it complains about th e escape characters... if any one interested drop a line i will be happy to send you the code... aguntur@gmail.com

Laxman said...

hi Anil,

can you please share me the sample code, I mean the datagrid paging with sorting.
Id : laxmana.lenka@gmail.com

Anonymous said...

Hi Anil,

Can you please send me the code for datagrid paging with sorting.

Thanks..
laxmana.lenka@gmail.com

Anonymous said...

Hi Anil,

I have the same sorting problem.
Can you please send me the code for datagrid paging with sorting.

Thanks...
laxmana.lenka@gmail.com

Anonymous said...

Hi Anil,

I have the sorting problem in grid paging. Can please share me the code.
Thanks...
laxmana.lenka@gmail.com

Anonymous said...

Excellent work...

Anonymous said...

Hi.
I'am interested in the new modifications.
Could you send me the new source?

You did a great work.
Thanks.

imf@gmx.li

Unknown said...

Hi anil,
Great work!
Can you please share me the modified code.
Id: daxrik@gmail.com

Stephan said...

All those guys requesting for "new" code. If you can't start from his code and adjust it to want you want it's because you're not real programmers. Give up and go back to what you are doing usually.

Unknown said...

Hello

I have one datagrid with pages according to data....
now if i change one row of data in any page, the scroll position should be maintained....
so please give me any idea around that so that i can maintain the scroll position of the datagrid with page number.

thanks in advance........

nikhil

Unknown said...

Hello,

I have one datagrid with paging.

now if i change in one row of the datagrid it need to refresh and should maintain the scroll position of grid.
so please give me some idea to how to maintain the scroll position and page in the datagrid.

thanks in advance....

nikhil

Abhishek Pandey said...

thankx that solve my problem in showing data in paging format

sanjeev rajput said...

this also looks interesting
http://groups.adobe.com/posts/b45a79f0fb

Koms said...

very nice.good work

Anonymous said...

very very nice. congratulations! thanks

Anonymous said...

Thanks Man it really helped me!!!

Anonymous said...

Good Example..really helpful but can can anyone post a pagination example in advanced datagrid with grouped data....

Tech-Talk said...

Hi,

I cant seem to download the mxml file.could someone send me an email.
here my email: email me

thanks.
cheers.

Najla Akram said...

Thanks for posting.

And could you tell me how to paging when data is get from an xml file? Here I want to parse the xml data into array collection because my dataprovider is an xml file.

If u know the way pls explain it.

Anonymous said...

You need to change:

nav.addItem({label:">>",data:pages - pageSize});

to:

nav.addItem({label:">>",data:pages - navSize});

to make the last button ">>" work when the pageSize is different than the navSize.

Flexicious.com said...

Please feel free to look at http://www.flexicious.com. This is an extension to the Flex DataGrid/Advanced DataGrid components that provide pagination, filter, footer, Select All, support out of the box, in addition to a host of other features.

Pankaj said...

The links are not working... :(

Anonymous said...

Thank you very much to easy my work

Anonymous said...

@xpertmx Thanks for this good code

Anonymous said...

Hi,

You have done a great job and have helped everybody. I am also stuck in multi-page sorting in datagrid. Can you please share the code at
bhumikakhurana@yahoo.co.in

Anonymous said...

Good work.....

Anonymous said...

Hi Anil,

Could you please send me the code with pagination and sort at david.do.bl@gmail.com,

Thanks!

Anonymous said...

Hi Anil,

Could you please send me the code with pagination and sort at david.do.bl@gmail.com,

Thanks!

Anonymous said...

Hi Anil,

It's a great work, could you please send me the code with pagination and sort at david.do.bl@gmail.com,

Thanks!

Anonymous said...

Sorry for the duplicated comments i did'nt realize the message above the comment box indicating that comment was sent, i thought misspelled the verification word.

Anonymous said...

The links aren't working. It's too bad because I was eager to look at the code and the finished product.