The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Can't get paging to work with MS's GridView

Last post 04-30-2007, 4:41 AM by Mike.Griffin. 5 replies.
Sort Posts: Previous Next
  •  04-27-2007, 4:25 PM 2085

    Can't get paging to work with MS's GridView

    I have an esDataSource and a MS GriveView on my page. The esSelect event contains the following code:

    Code:
    	JobCollection jobs = new JobCollection();
    

    jobs.Query.Where(jobs.Query.Enabled.Equal(true), jobs.Query.DateClosed.GreaterThan(DateTime.Now));

    jobs.Query.OrderBy(jobs.Query.DatePosted.Descending); jobs.Query.Load(); e.Collection = jobs;

    I've set the PageSize properties on both the grid and data source to 10.

    If I set the grid's AllowPaging property to false, the GridView contains data when I run my web app. However, as soon as I enable the AllowPagin property, my grid contains no data! It renders the contents of the EmptyDataTemplate.

    I'm using a SQLServer 2005 database, and the latest beta build of ES 2007.

    Any ideas?

    I've switched to the MS GridView because I couldn't get binding to work with my main grid (ComponentArts' Web.UI Grid 2007.1).


    Leigh
    Filed under:
  •  04-27-2007, 5:13 PM 2086 in reply to 2085

    Re: Can't get paging to work with MS's GridView

    We're cutting a new release this weekend, the esDataSource supports full paging and sorting, it can do both automatically, it's awesome. Major improvements in binding all the way around, you will notice the difference. Watch for a blog post too soon on it.

     


    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  04-27-2007, 6:26 PM 2088 in reply to 2086

    Re: Can't get paging to work with MS's GridView

    Great! Perfect timing for me.

    Sorry Mike - I thought this stuff was working in the current beta.


    Leigh
  •  04-28-2007, 8:20 AM 2089 in reply to 2088

    Re: Can't get paging to work with MS's GridView

    See our latest blog post for a little more info on the subject

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  04-30-2007, 4:20 AM 2094 in reply to 2089

    Re: Can't get paging to work with MS's GridView

    Paging is working perfectly with the new beta... Wooot!

    Very impressive. It's so quick!


    Leigh
  •  04-30-2007, 4:41 AM 2096 in reply to 2094

    Re: Can't get paging to work with MS's GridView

    Fantastic, it's amazing how quickly you can create a web page that is very functional isn't it. Thanx for the report.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML