Client-side databinding with grouping

10 posts, 0 answers
  1. StephenWRogers
    StephenWRogers avatar
    31 posts
    Member since:
    Dec 2006

    Posted 08 Aug 2008 Link to this post

    Quick question: Can I use the new client-side databinding method and have the data grouped?

    I'd like to change from doing full postbacks to populate a grid, but the only stumbling block I have is trying to keep the grouping I have.

    Thanks,

    Stephen
  2. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 08 Aug 2008 Link to this post

    Hello Stephen,

    Unfortunately there is no easy way to implement client-side grouping with the current release of the RadGrid. However, you might consider using a RadAjaxManager or RadAjaxPanel to perform partial-page postbacks. While this is not as quick as the client-side databinding method, it is certainly faster than doing a full page postback.

    I hope this was helpful. If you have further questions, please don't hesitate to ask.

    Sincerely,
    Kevin Babcock
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Aug 2008 Link to this post

    Hi Stephen,

    You can also try setting GroupLoadMode property to Client so that groups will be expanded client side without postbacks.
    Client group load

    Shinu.


  5. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 11 Aug 2008 Link to this post

    Hello,

    Shinu does point out a great feature of the RadGrid. The GroupLoadMode property allows you to expand your grouped rows on the client, or by posting back to the server (the default behavior). However, because this server-side property works with data that is bound on the server, it will not function correctly when used with the client-side databinding feature of the RadGrid.

    I hope this helps.

    Regards,
    Kevin Babcock
  6. StephenWRogers
    StephenWRogers avatar
    31 posts
    Member since:
    Dec 2006

    Posted 11 Aug 2008 Link to this post

    Yeah, I'm already populating the control with partial page rendering and using GridGroupLoadMode.Client, and everything is working fine.

    I was just having a look at the new client-side databinding functionality to see whether I could get data to the grid without going through the full page lifecycle every time I wanted to update the data. 

    I'd created a webservice to return the data and called the new set_dataSource() method and everything worked - except I had lost the grouping.  If I could populate the grid from the webservice and keep the grouping, then I could make the switch.

    Thanks,

    Stephen
  7. Luci
    Luci avatar
    17 posts
    Member since:
    Jun 2008

    Posted 28 Aug 2008 Link to this post

    :( I needed this to work

  8. Scott R
    Scott R avatar
    63 posts
    Member since:
    Jun 2008

    Posted 16 Sep 2008 Link to this post

    I just wanted to add my name to the list of those who would like to have client-side grouping with client-side data-binding. :)
  9. Demon
    Demon avatar
    45 posts
    Member since:
    Sep 2006

    Posted 16 Sep 2008 Link to this post

    Everybody's enthusiasm about client-side grouping is quite understandable, but I am a little sceptic - how do you think REAL client-side grouping should work in case the control is bound to a datasource with thousands of records? What should we buy first - second CPU or more RAM? :)))
  10. Scott R
    Scott R avatar
    63 posts
    Member since:
    Jun 2008

    Posted 16 Sep 2008 Link to this post

    It'll probably work just like REAL client-side data-binding works "in case the control is bound to a datasource with thousands of records": slow in IE, fast in FF.
  11. Hardik
    Hardik avatar
    6 posts
    Member since:
    Dec 2013

    Posted 24 Jul 2014 in reply to Scott R Link to this post

    This ll work... not proper way but it works
    if (args.get_commandName() != "ExportToExcel" && args.get_commandName() != "GroupByColumn" && args.get_commandName() != "UnGroupByExpression")
    args.set_cancel(true);
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017