I'm looking for a suggestion regarding how to implement something similar to what is done in the GridSettingsPersister for design-time columns for the run-time columns when using AutoGenerateColumns.
Thank you!
Visual Studio 2010
Target framework: .NET Framework 4
Telerik.Web.UI version 2010.3.1317.40
9 Answers, 1 is accepted
The GridSettingsPersister class works for autogenerated columns as well.
Please try it at your end and let me know if any further questions arise.
Regards,
Mira
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
We will need some additional time to review the issue at hand.
We will post more information on the matter shortly.
All the best,
Mira
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Can you have the development owner look into this and publish a newer copy of the GridSettingsPersister class.
Thanks
Ankur
protected
virtual
void
LoadColumnSettings()
{
if
(Settings.AutoGeneratedColumnSettings.Count > 0)
{
Grid.ColumnCreated +=
new
GridColumnCreatedEventHandler(Grid_ColumnCreated);
}
foreach
(ColumnSettings colSetting
in
Settings.ColumnSettings)
{
GridColumn column = Grid.MasterTableView.GetColumnSafe(colSetting.UniqueName);
if
(column !=
null
)
{
SetColumnSettings(
ref
column, colSetting);
}
}
foreach
(ColumnSettings colSetting
in
Settings.AutoGeneratedColumnSettings)
{
GridColumn column = Grid.MasterTableView.GetColumnSafe(colSetting.UniqueName);
if
(column !=
null
)
{
SetColumnSettings(
ref
column, colSetting);
}
}
}
I am glad to hear that the issue is resolved.
As a reward for posting it in our forums, I am giving you 1000 Telerik points.
Regards,
Mira
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Get the requested information from here.
Best,
Sebastian
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Your fix helped me with the same problem where autogenerated columns would not restore saved order.
And I am surprised that after more than 2 years, Telerik still did not fix their demo.
Elena.
The GridSettingsPersister is a separate class (not a built-in funcitonality) which is used for demo purposes only. That said, may I suggest that you try our Persistence Framework instead of the settings persister class?
Regards,
Daniel
Telerik