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

GridSettingsPersister vb.net code has errors

2 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 13 Jun 2013, 06:56 PM
Hi,
The vb.net code that you post at the following URL, has many errors in it.

http://www.telerik.com/help/aspnet-ajax/grid-saving-settings-on-per-user-basis.html

Most of them are easy to correct, but I don't really know what to do with the following section of code.  VS.NET shows many errors for it:
Private Sub Grid_ColumnCreated(ByVal sender As ObjectByVal e As GridColumnCreatedEventArgs)  
Dim settings As ColumnSettings = Settings.AutoGeneratedColumnSettings.Find(Function([set] As ColumnSettings) Do
Return [set].UniqueName = e.Column.UniqueName  End Function)
Dim column As GridColumn = e.Column  
If not (settings is NothingThen   
SetColumnSettings(column, settings)  
End If
End Sub

Thanks,
Brent

2 Answers, 1 is accepted

Sort by
0
Brent Hetland
Top achievements
Rank 1
answered on 13 Jun 2013, 07:35 PM
I've gotten the code to compile by looking at other forum posts, but you all should really clean up your VB.NET example.
There are other basic errors in there, like testing for objects = Nothing...

Thanks,
Brent
0
Maria Ilieva
Telerik team
answered on 18 Jun 2013, 01:59 PM
Hi Brent,

Thank you for your feedback and sharing your findings.

We will update the problematic code as soon as possible and will upload the updated files as per your suggestions.

Regards,
Maria Ilieva
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Brent Hetland
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or