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

Persisting grid settings is not working for client-side bounded grid.

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Smruti Ranjan
Top achievements
Rank 1
Smruti Ranjan asked on 25 Feb 2013, 08:17 AM
We have a requirement to save the user specific named settings for RadGrid in DB.

User may set his default setting for the RadGrid and when the particular user gets logged in the default settings what he has set before
would be applied to the grid he had set.

The settings can be handled from this feature are like :-
Global Settings : Font, Height of the Row, Font Style etc.
Group/Grid specific Settings : Filter, Sorting, Grouping etc.

So there setting are being saved in DB and when the specific user got o the page where the particular RadGrid exists.
it applies the settings to teh RadGrid by fetching values from DB.
To do this i have created an user control having appropriate properties to be assigned when
added to the page like the grid name on which the settings to be applied etc.
On page Init i have to set the property to which we have to assign the value as the current grid on which settings to be applied.
Ex :-
  
ucGridSettingsManager.MyGrid = radGrid;

ucGridSettingsManager - The user control used to apply the settings, which will be placed at the top right side of the grid header.
User can click on it to view all the settings available for him by previous creations.
MyGrid - Property which needs to be set as the grid on which the settings to be applied.
radGrid - Grid on which the settings to be applied or saved.


It is working fine if the RadGrid is bounded on server-side, but when it is bounded at client-side the
particular setttings are not working good.

Can anybody help me in this regard ?

2 Answers, 1 is accepted

Sort by
0
Smruti Ranjan
Top achievements
Rank 1
answered on 25 Feb 2013, 01:51 PM
Also here i want to mention that i have used the class GridSettingPersister.cs class as mentioned here in the link :-

GridSettingsPersister

But seems not to be working with client-side bounded grid.
0
Maria Ilieva
Telerik team
answered on 28 Feb 2013, 09:39 AM
Hello Smruti Ranjan,

Note that the required functionality is not supported out of the box and a postback is needed for the persister class to keep the RadGrid settings. Therefore the settings persisting is not supported with client-side binging.

All the best,
Maria Ilieva
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
Smruti Ranjan
Top achievements
Rank 1
Answers by
Smruti Ranjan
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or