or
<
div
id
=
"divMnuLeft"
>
<
telerik:RadTreeView
ID
=
"lstMenuItem1"
CheckBoxes
=
"true"
TriStateCheckBoxes
=
"true"
CheckChildNodes
=
"true"
runat
=
"server"
>
<
DataBindings
>
<
telerik:RadTreeNodeBinding
Expanded
=
"true"
/>
</
DataBindings
>
</
telerik:RadTreeView
>
</
div
>
Private Sub Populate_tblMenuItems1()
Dim dt As New DataTable
Dim con As New clsSQLConnector
dt = con.GetWebUserMenuItem(2, ViewState("WebUserID"))
If dt Is Nothing = False Then
If dt.Rows.Count > 0 Then
lstMenuItem1.DataTextField = "Descr"
lstMenuItem1.DataFieldID = "menuID"
lstMenuItem1.DataFieldParentID = "ParentID"
lstMenuItem1.DataSource = dt
Dim binding As New RadTreeNodeBinding
binding.CheckedField = "isAssigned"
binding.Checkable = True
lstMenuItem1.DataBindings.Add(binding)
lstMenuItem1.DataBind()
'For Each dr As DataRow In dt.Rows
'Next
End If
End If
End Sub
<
table
style
=
"width:100%;"
>
<
tr
style
=
"text-align:center;"
>
<
td
style
=
"vertical-align:top;"
>
<
table
id
=
"inputs"
style
=
"height:50px;"
>
<
tr
>
<
td
style
=
"width:50%;"
></
td
>
<
td
style
=
"text-align:right; vertical-align:middle;"
>Type:</
td
>
<
td
style
=
"vertical-align:middle;"
>
<
telerik:RadComboBox
CheckBoxes
=
"true"
runat
=
"server"
ID
=
"cmbCheckAppointmentType"
OnItemChecked
=
"cmbCheckAppointmentType_ItemChecked"
AutoPostBack
=
"true"
>
</
telerik:RadComboBox
>
</
td
>
<
td
style
=
"text-align:right; vertical-align:middle;"
>System:</
td
>
<
td
style
=
"vertical-align:middle;"
>
<
telerik:RadDropDownList
runat
=
"server"
ID
=
"ddlSystemType"
OnSelectedIndexChanged
=
"ddlSystemType_SelectedIndexChanged"
AutoPostBack
=
"true"
>
<
Items
>
<
telerik:DropDownListItem
Text
=
"Both"
Value
=
"843,835,834"
Selected
=
"true"
/>
<
telerik:DropDownListItem
Text
=
"Student"
Value
=
"835"
/>
<
telerik:DropDownListItem
Text
=
"Business"
Value
=
"834"
/>
</
Items
>
</
telerik:RadDropDownList
>
</
td
>
<
td
style
=
"width:50%;"
></
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
<
tr
>
<
td
>
<
telerik:RadToolTipManager
runat
=
"server"
ID
=
"telToolTipManager"
RelativeTo
=
"Mouse"
ShowEvent
=
"OnMouseOver"
Animation
=
"None"
HideEvent
=
"LeaveTargetAndToolTip"
Text
=
"Loading..."
OnAjaxUpdate
=
"telToolTipManager_AjaxUpdate"
>
</
telerik:RadToolTipManager
>
<
telerik:RadScheduler
runat
=
"server"
ID
=
"telCalendar"
DataKeyField
=
"ID"
DataSubjectField
=
"Subject"
DataDescriptionField
=
"Description"
DataStartField
=
"Start"
DataEndField
=
"End"
DataRecurrenceField
=
"RecurrenceRule"
DataRecurrenceParentKeyField
=
"RecurrenceParentID"
ShowAllDayRow
=
"false"
DayStartTime
=
"07:00:00"
WorkDayStartTime
=
"07:00:00"
DayEndTime
=
"18:00:00"
WorkDayEndTime
=
"18:00:00"
EnableDescriptionField
=
"false"
Width
=
"100%"
Height
=
"600px"
StartEditingInAdvancedForm
=
"false"
AllowDelete
=
"false"
AllowEdit
=
"false"
AdvancedForm-EnableTimeZonesEditing
=
"true"
AgendaView-ResourceMarkerType
=
"Block"
AgendaView-UserSelectable
=
"true"
AgendaView-NumberOfDays
=
"30"
AgendaView-HeaderDateFormat
=
"dd/MMM"
AgendaView-GroupingDirection
=
"Vertical"
AgendaView-TimeColumnWidth
=
"200px"
MonthView-UserSelectable
=
"true"
MonthView-VisibleAppointmentsPerDay
=
"5"
TimelineView-UserSelectable
=
"false"
WeekView-UserSelectable
=
"true"
DayView-UserSelectable
=
"true"
OnClientAppointmentContextMenu
=
"OnClientAppointmentContextMenu"
OnNavigationComplete
=
"telCalendar_NavigationComplete"
OnAppointmentInsert
=
"telCalendar_AppointmentInsert"
OnAppointmentUpdate
=
"telCalendar_AppointmentUpdate"
OnAppointmentDelete
=
"telCalendar_AppointmentDelete"
OnAppointmentCreated
=
"telCalendar_AppointmentCreated"
OnAppointmentDataBound
=
"telCalendar_AppointmentDataBound"
OnDataBound
=
"telCalendar_DataBound"
OnFormCreating
=
"telCalendar_FormCreating"
CustomAttributeNames
=
"FullSubject"
Skin
=
"Silk"
>
<
AdvancedForm
Modal
=
"true"
/>
<
TimeSlotContextMenuSettings
EnableDefault
=
"false"
></
TimeSlotContextMenuSettings
>
<
AppointmentContextMenuSettings
EnableDefault
=
"false"
></
AppointmentContextMenuSettings
>
<
AppointmentTemplate
>
<
div
style
=
"margin: 0px 3px 0px 3px;"
>
<
asp:Literal
ID
=
"AptType"
runat
=
"server"
Text='<%# Eval("Attributes[\"FullSubject\"]") %>'></
asp:Literal
>
</
div
>
</
AppointmentTemplate
>
</
telerik:RadScheduler
>
</
td
>
</
tr
>
</
table
>
My first attempt did not go well. I've looked at samples, etc. and still can't get this to work. The issues are:
1) I can't get the Y-Axis line to display at the left.
2) I can't get the MinorTick lines to go away.
3) I want to put a red line along the 90% mark and label it as Target.
Chart code and picture of what I'm getting provided below.
<
telerik:RadHtmlChart
ID
=
"RadHtmlChart1"
runat
=
"server"
DataSourceID
=
"supplierAverage"
Height
=
"500px"
Skin
=
"WebBlue"
Width
=
"800px"
Visible
=
"true"
>
<
charttitle
Text
=
"FWM SUPPLIER ON-TIME DELIVERY"
>
<
appearance
Align
=
"Center"
Position
=
"Top"
visible
=
"True"
>
</
appearance
>
</
charttitle
>
<
Legend
>
<
Appearance
position
=
"Bottom"
Visible
=
"True"
></
Appearance
>
</
Legend
>
<
plotarea
>
<
Series
>
<
telerik:ColumnSeries
Name
=
"Hardware"
DataFieldY
=
"Hardware"
>
<
LabelsAppearance
DataFormatString
=
"{0}%"
></
LabelsAppearance
>
<
SeriesItems
>
</
SeriesItems
>
</
telerik:ColumnSeries
>
<
telerik:ColumnSeries
Name
=
"Raw Materials"
DataFieldY
=
"RawMaterials"
>
<
LabelsAppearance
DataFormatString
=
"{0}%"
></
LabelsAppearance
>
<
SeriesItems
>
</
SeriesItems
>
</
telerik:ColumnSeries
>
</
Series
>
<
XAxis
DataLabelsField
=
"Month"
Visible
=
"True"
MinorTickType
=
"None"
AxisCrossingValue
=
"1"
MaxValue
=
"12"
MinValue
=
"1"
Step
=
"1"
>
<
LabelsAppearance
DataFormatString
=
"{0}"
/>
</
XAxis
>
<
YAxis
maxvalue
=
"100"
minvalue
=
"0"
name
=
"Percentage"
step
=
"10"
MinorTickSize
=
"0"
MinorTickType
=
"None"
Visible
=
"True"
>
<
TitleAppearance
Position
=
"Center"
Text
=
"Percentage"
/>
</
YAxis
>
</
plotarea
>
</
telerik:RadHtmlChart
>
<
telerik:RadGrid
EnableHeaderContextMenu
=
"true"
Skin
=
"Metro"
ID
=
"UserListGrid"
runat
=
"server"
DataSourceID
=
"UserListDatasource"
CellSpacing
=
"0"
GridLines
=
"None"
CssClass
=
"userRadGrid"
AllowPaging
=
"True"
AllowSorting
=
"True"
onpageindexchanged
=
"UserListGrid_PageIndexChanged"
AllowMultiRowSelection
=
"True"
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
DataSourceID
=
"UserListDatasource"
AutoGenerateColumns
=
"False"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridClientSelectColumn
>
</
telerik:GridClientSelectColumn
>
<
telerik:GridBoundColumn
DataField
=
"UserId"
DataType
=
"System.Guid"
FilterControlAltText
=
"Filter UserId column"
HeaderText
=
"UserId"
SortExpression
=
"UserId"
UniqueName
=
"UserId"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"UserName"
FilterControlAltText
=
"Filter UserName column"
HeaderText
=
"User Name"
ReadOnly
=
"True"
SortExpression
=
"UserName"
UniqueName
=
"UserName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FirstName"
FilterControlAltText
=
"Filter FirstName column"
HeaderText
=
"First Name"
SortExpression
=
"FirstName"
UniqueName
=
"FirstName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"LastName"
FilterControlAltText
=
"Filter LastName column"
HeaderText
=
"Last Name"
SortExpression
=
"LastName"
UniqueName
=
"LastName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Status"
FilterControlAltText
=
"Filter Status column"
HeaderText
=
"Status"
SortExpression
=
"Status"
UniqueName
=
"Status"
>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
ButtonType
=
"LinkButton"
UniqueName
=
"DeleteUser"
>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
EnableEmbeddedBaseStylesheet
=
"False"
>
<
WebServiceSettings
>
<
ODataSettings
InitialContainerName
=
""
>
</
ODataSettings
>
</
WebServiceSettings
>
</
FilterMenu
>
<
HeaderContextMenu
EnableEmbeddedBaseStylesheet
=
"False"
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
<
WebServiceSettings
>
<
ODataSettings
InitialContainerName
=
""
>
</
ODataSettings
>
</
WebServiceSettings
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
What is the way where i can push the Telerik dlls to GAC.
<
telerik:RadGrid
ID
=
"RadGrid1"
EnableViewState
=
"false"
runat
=
"server"
AllowPaging
=
"true"
AllowSorting
=
"False"
AllowFilteringByColumn
=
"true"
GridLines
=
"None"
OnInit
=
"RadGrid1_Init"
OnDeleteCommand
=
"RadGrid1_DeleteCommand"
>
<
ItemStyle
Wrap
=
"false"
></
ItemStyle
>
<
MasterTableView
AllowMultiColumnSorting
=
"true"
TableLayout
=
"Fixed"
DataKeyNames
=
"Id"
ClientDataKeyNames
=
"Id"
>
<
Columns
>
<
telerik:GridNumericColumn
DataField
=
"Id"
HeaderText
=
"Id"
HeaderStyle-Width
=
"100px"
AllowFiltering
=
"False"
FilterControlWidth
=
"50px"
>
</
telerik:GridNumericColumn
>
<
telerik:GridBoundColumn
DataField
=
"Description"
HeaderText
=
"Description"
AndCurrentFilterFunction
=
"Contains"
FilterListOptions
=
"AllowAllFilters"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
""
HeaderText
=
"Select"
>
<
ItemTemplate
>
<
asp:RadioButton
ID
=
"rbdSelect"
runat
=
"server"
AutoPostBack
=
"true"
OnCheckedChanged
=
"rbdSelect_CheckedChanged"
></
asp:RadioButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
protected void rbdSelect_CheckedChanged(object sender, EventArgs e)
{
foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
{
RadioButton rbd = (RadioButton)item.FindControl("rbdSelect");
if (rbd.Checked==true)
{
string key = item.GetDataKeyValue("Id").ToString();
//string id = RadGrid1.MasterTableView.Items[0].GetDataKeyValue("Id").ToString();
}
}
Response.Redirect("~/PrintInvoice.aspx");
}