or
radTreeView1_Edited(
object
sender, TreeNodeEditedEventArgs e)
{
DialogResult result = MessageBox.Show(
"will you change?"
,
"Change"
,MessageBoxButtons.OkCancel);
if
(result != DialogResult.Ok)
{
e.cancel=
true
;
}
}
Private
Sub
radioButtonElement1_MouseDown(sender
As
Object
, e
As
System.Windows.Forms.MouseEventArgs)
Me
.Value = 1
If
Me
.ViewTemplate
Is
GetType
(Telerik.WinControls.UI.MasterGridViewTemplate)
Then
For
Each
row
As
GridViewRowInfo
In
Me
.ViewTemplate.Rows
If
row IsNot
Me
.RowInfo
Then
row.Cells(
Me
.ColumnInfo.Name).Value = 0
End
If
Next
Else
For
Each
row
As
GridViewRowInfo
In
Me
.ViewInfo.Rows
If
row IsNot
Me
.RowInfo
Then
row.Cells(
Me
.ColumnInfo.Name).Value =
False
End
If
Next
End
If
End
Sub
Private
Sub
MyGrid_CellFormatting(sender
As
Object
, e
As
Telerik.WinControls.UI.CellFormattingEventArgs)
Handles
MyGrid.CellFormatting
If
e.CellElement.ColumnInfo.Name =
"MyColumnName"
Then
e.CellElement.BackColor = Color.Yellow
Else
e.CellElement.ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local)
End
If
End
Sub
column =
new
GridViewDateTimeColumn(def.Name);
string
dataFormatString = (def.CustomString ==
null
?
"yyyy-MM-dd hh:mm:ss"
: def.CustomString);
((GridViewDateTimeColumn)column).EditorType = GridViewDateTimeEditorType.TimePicker;
((GridViewDateTimeColumn)column).FormatString = dataFormatString;
((GridViewDateTimeColumn)column).CustomFormat = dataFormatString;