<
telerik:RadTimePicker ID="RadTimePicker1" runat="server">
</telerik:RadTimePicker>
Inside my designer file, I have the following:
/// <summary>
/// RadTimePicker1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Telerik.Web.UI.RadTimePicker RadTimePicker1;
How can I get this property value to appear in the code behind?
Radlistbox fires both OnClientItemChecked and OnClientSelectedIndexChanged when an item is checked in Firefox and IE but not in Chrome.
Chrome seems to have the proper behavior. Is there a reason for this? Can I make IE and Firefox behave accordingly as well?
<
telerik:RadListBox
ID
=
"radListBox0"
runat
=
"server"
Height
=
"400"
Width
=
"275"
SelectionMode
=
"Single"
CheckBoxes
=
"true"
Visible
=
"true"
CssClass
=
"RadListBox_SlidingPanel"
EnableEmbeddedSkins
=
"False"
EnableEmbeddedBaseStylesheet
=
"False"
OnClientItemChecked
=
"ListBoxIndexCheckToggled"
OnClientSelectedIndexChanged
=
"ListBoxIndexChanged"
/>
protected
void
gridReport_ExcelMLExportStylesCreated(
object
source, GridExportExcelMLStyleCreatedArgs e)
{
StyleElement oneDecimalStyle =
new
StyleElement(
"oneDecimalStyle"
);
oneDecimalStyle.NumberFormat.FormatType = NumberFormatType.Fixed;
oneDecimalStyle.NumberFormat.Attributes[
"ss:Format"
] =
"0/.0"
;
e.Styles.Add(oneDecimalStyle);
}
protected
void
gridReport_ExcelMLExportRowCreated(
object
source, GridExportExcelMLRowCreatedArgs e)
{
if
(e.RowType == GridExportExcelMLRowType.DataRow)
{
CellElement cell = e.Row.Cells.GetCellByName(
"airDuration"
);
cell.StyleValue =
"oneDecimalStyle"
;
}
}
Protected
Sub
RadGrid1_ItemCreated1(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
RadGrid1.ItemCreated
....
Dim
btn_excel
As
LinkButton = TryCast(item.FindControl(
"btn_excel"
), LinkButton)
ScriptManager.GetCurrent(Page).RegisterPostBackControl(btn_excel)
....
End
Sub
Sub
buildExport(
ByVal
type
As
String
)
RadGrid1.MasterTableView.Columns.Clear()
Dim
boundColumn
As
GridBoundColumn
For
Each
column
As
DataColumn
In
Datasource.Columns
If
GridDataKeyNames <>
""
Then
If
Not
GridDataKeyNames.Contains(column.ColumnName.ToString())
Then
If
column.ColumnName.ToString().ToLower().IndexOf(
"_hidden"
) < 0
And
column.ColumnName.ToString().ToLower().IndexOf(
"rowclick"
) < 0
Then
boundColumn =
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(boundColumn)
boundColumn.DataField = column.ColumnName
boundColumn.HeaderText = column.ColumnName.Replace(
"_"
,
" "
)
Else
boundColumn =
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(boundColumn)
boundColumn.DataField = column.ColumnName
boundColumn.HeaderText = column.ColumnName
boundColumn.Visible =
False
End
If
Else
End
If
Else
If
column.ColumnName.ToString().ToLower().IndexOf(
"_hidden"
) < 0
And
column.ColumnName.ToString().ToLower().IndexOf(
"rowclick"
) < 0
Then
boundColumn =
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(boundColumn)
boundColumn.DataField = column.ColumnName
boundColumn.HeaderText = column.ColumnName.Replace(
"_"
,
" "
).ToLower()
Else
boundColumn =
New
GridBoundColumn
RadGrid1.MasterTableView.Columns.Add(boundColumn)
boundColumn.DataField = column.ColumnName
boundColumn.HeaderText = column.ColumnName.ToLower()
boundColumn.Visible =
False
End
If
End
If
Next
RadGrid1.DataSource = Datasource
RadGrid1.DataBind()
RadGrid1.PageSize = Datasource.Rows.Count()
RadGrid1.ExportSettings.IgnorePaging =
True
Select
Case
type
Case
"excel"
RadGrid1.ExportSettings.ExportOnlyData =
True
RadGrid1.MasterTableView.ExportToCSV()
Case
"pdf"
RadGrid1.ExportSettings.OpenInNewWindow =
True
RadGrid1.MasterTableView.ExportToPdf()
End
Select
End
Sub
Private
Sub
addMenuItem(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Dim
menu
As
RadContextMenu = RadGrid1.HeaderContextMenu
Dim
item
As
New
RadMenuItem
item.Text =
"Save Layout"
item.Value =
"save"
item.Attributes(
"ColumnName"
) =
String
.Empty
item.Attributes(
"TableID"
) =
String
.Empty
menu.Items.Add(item)
item =
New
RadMenuItem
item.Attributes(
"ColumnName"
) =
String
.Empty
item.Attributes(
"TableID"
) =
String
.Empty
item.Text =
"Export to CSV"
item.Value =
"csv"
menu.Items.Add(item)
End
Sub