This is a migrated thread and some comments may be shown as answers.

Saving PageSize server side on change

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RichJ
Top achievements
Rank 1
RichJ asked on 19 Sep 2011, 05:05 AM
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?

Cheers
Rich

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 21 Sep 2011, 10:26 AM
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,
Marin
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
Tags
Grid
Asked by
RichJ
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or