Saving PageSize server side on change

2 posts, 0 answers
  1. RichJ
    RichJ avatar
    83 posts
    Member since:
    Aug 2006

    Posted 19 Sep 2011 Link to this post

    Hi there,

    I have a Rad Ajax Grid in which I'm dynamically adding pagesize values for the pagesize combobox.
    When loading, I'm retrieving a user's preferred page size and applying this to the grid.
    When the pagesize is changed I would like to save the new size to a database but I'm having a problem.

    At the moment I know the PageSizeChanged event is being fired by showing an alert, but a function I'm calling to write the value back to the database doesn't seem to be called.
    If I place an alert before and after my function they both fire.   I know the function works because I'm using it elsewhere on the page (i.e. if there's not value set, I write a default etc).

    Can anyone offer any suggestions as to why this is causing a problem?

  2. Marin
    Marin avatar
    1057 posts

    Posted 21 Sep 2011 Link to this post

    Hello Vaticnz,

     If you are handling this event on the server it should be working correctly and your function should be called. You can check whether the value that you are trying to save is the correct one. If the problem persists I will appreciate if you could post any related code here so we can have a look at it.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top