Hi,
We are using telerik rad controls of version 2009.3.1103.1030.
we are tryng to remove all the warings where few of the properties have become obsolete.
Please find herewith the details about the warnings which i have gone through.
1) I came up with one warning that says that
"Warning 1 'Telerik.Windows.Controls.EditorSettings<IController.Pages.GridViewCustomEditor>' is obsolete: 'This class is obsolete.'".
Here is my sample code:
public class GridViewCustomEditorSettings : EditorSettings<GridViewCustomEditor>
{
}
2) Warning 6 'Pages.ValidationGridViewControlModel.PropertyChanged' hides inherited member 'Framework.Windows.Controls.ModelView.PropertyChanged'.
Use the new keyword if hiding was intended.
3) Warning: 'Telerik.Windows.Controls.TextBoxEditorSettings' is obsolete: 'This class is obsolete.'
Sample Code:
GridViewDataColumn dataColumn = e.Cell.Column as GridViewDataColumn;
dataColumn.EditorSettings = new TextBoxEditorSettings();
4) Warning 'Telerik.Windows.Controls.GridViewBoundColumnBase.EditorSettings' is obsolete: 'This property is obsolete. Use appropriate column type, or create custom column which inherits from the GridViewBoundColumnBase class.'
GridViewDataColumn dataColumn = e.Cell.Column as GridViewDataColumn;
dataColumn.EditorSettings = new TextBoxEditorSettings();
5) Warning 'Telerik.Windows.Controls.RadWindow.PinMode' is obsolete: 'This property will be removed. The pin feature is no longer supported.'
6) Warning CA1305 : Microsoft.Globalization : Because the behavior of 'Convert.ToBoolean(string)' could vary based on the current user's locale settings, replace this call in 'App.Application_Startup(object, StartupEventArgs)' with a call to 'Convert.ToBoolean(string, IFormatProvider)'. If the result of 'Convert.ToBoolean(string, IFormatProvider)' will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.
Sample Code:
File - App.xaml.cs
Convert.ToBoolean(e.InitParams["IsLoged"])
7) Warning CA1006 : Microsoft.Design : Consider a design where 'Items.GetHierarchy(ItemDto, Action<ObservableCollection<ItemDto>, object>)' doesn't nest generic type 'Action<ObservableCollection<ItemDto>, object>'.
Sample Code:
public void GetHierarchy(ItemDto parentItem, Action<ObservableCollection<ItemDto>, object> callback)
{ }
Can you please let me know, How to remove these warnings?
Thanks.
We are using telerik rad controls of version 2009.3.1103.1030.
we are tryng to remove all the warings where few of the properties have become obsolete.
Please find herewith the details about the warnings which i have gone through.
1) I came up with one warning that says that
"Warning 1 'Telerik.Windows.Controls.EditorSettings<IController.Pages.GridViewCustomEditor>' is obsolete: 'This class is obsolete.'".
Here is my sample code:
public class GridViewCustomEditorSettings : EditorSettings<GridViewCustomEditor>
{
}
2) Warning 6 'Pages.ValidationGridViewControlModel.PropertyChanged' hides inherited member 'Framework.Windows.Controls.ModelView.PropertyChanged'.
Use the new keyword if hiding was intended.
3) Warning: 'Telerik.Windows.Controls.TextBoxEditorSettings' is obsolete: 'This class is obsolete.'
Sample Code:
GridViewDataColumn dataColumn = e.Cell.Column as GridViewDataColumn;
dataColumn.EditorSettings = new TextBoxEditorSettings();
4) Warning 'Telerik.Windows.Controls.GridViewBoundColumnBase.EditorSettings' is obsolete: 'This property is obsolete. Use appropriate column type, or create custom column which inherits from the GridViewBoundColumnBase class.'
GridViewDataColumn dataColumn = e.Cell.Column as GridViewDataColumn;
dataColumn.EditorSettings = new TextBoxEditorSettings();
5) Warning 'Telerik.Windows.Controls.RadWindow.PinMode' is obsolete: 'This property will be removed. The pin feature is no longer supported.'
6) Warning CA1305 : Microsoft.Globalization : Because the behavior of 'Convert.ToBoolean(string)' could vary based on the current user's locale settings, replace this call in 'App.Application_Startup(object, StartupEventArgs)' with a call to 'Convert.ToBoolean(string, IFormatProvider)'. If the result of 'Convert.ToBoolean(string, IFormatProvider)' will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.
Sample Code:
File - App.xaml.cs
Convert.ToBoolean(e.InitParams["IsLoged"])
7) Warning CA1006 : Microsoft.Design : Consider a design where 'Items.GetHierarchy(ItemDto, Action<ObservableCollection<ItemDto>, object>)' doesn't nest generic type 'Action<ObservableCollection<ItemDto>, object>'.
Sample Code:
public void GetHierarchy(ItemDto parentItem, Action<ObservableCollection<ItemDto>, object> callback)
{ }
Can you please let me know, How to remove these warnings?
Thanks.