or
<
div
class
=
"menusplittop"
>
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
Skin
=
""
MultiPageID
=
"RadMultiPage1"
SelectedIndex
=
"0"
EnableEmbeddedSkins
=
"false"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Width
=
"108px"
Height
=
"46px"
CssClass
=
"activeCourses"
SelectedCssClass
=
"activeCoursesSelected"
Selected
=
"True"
>
</
telerik:RadTab
>
<
telerik:RadTab
runat
=
"server"
Width
=
"108px"
Height
=
"46px"
CssClass
=
"inactiveCourses"
SelectedCssClass
=
"inactiveCoursesSelected"
>
</
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
</
div
>
.activeCourses
{
background-image: url(img-blue/activeoff.png);
width:108px;
height:46px;
}
.inactiveCourses
{
width:108px;
height:46px;
background-image: url(img-blue/inactiveoff.png);
}
.activeCoursesSelected
{
background-image: url(img-blue/activeon.png);
}
.inactiveCoursesSelected
{
background: url(img-blue/inactiveon.png);
}
<
telerik:RadGrid
runat
=
"server"
EditMode
=
"EditForms"
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
table
>
<
tr
>
<
td
>
<
telerik:RadGrid
runat
=
"server"
>
<
MasterTableView
CommandItemDisplay
=
"Top"
EditMode
=
"InPlace"
>
<
Columns
>
<
telerik:GridBoundColumn
HeaderText
=
"Company"
/>
<
telerik:GridCheckBoxColumn
UniqueName
=
"View"
HeaderText
=
"View"
DataField
=
"View"
/>
<
telerik:GridCheckBoxColumn
UniqueName
=
"Edit"
HeaderText
=
"Edit"
DataField
=
"Edit"
/>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
Selecting-AllowRowSelect
=
"true"
/>
</
telerik:RadGrid
>
</
td
>
</
tr
>
</
table
>
</
FormTemplate
>
</
EditFormSettings
>
</
telerik:RadGrid
>
Imports
System
Imports
System.Collections.Generic
Imports
System.ComponentModel
Imports
System.Text
Imports
System.Web
Imports
System.Web.UI
Imports
System.Web.UI.WebControls
Imports
Telerik.Web.UI
Public
Class
GridCommandItem
Inherits
RadToolBar
Protected
Overrides
Sub
OnInit(
ByVal
e
As
System.EventArgs)
MyBase
.OnInit(e)
Me
.LoadContentFile(
"ToolBar.xml"
)
End
Sub
End
Class
Server
Error
in
'/' Application.
--------------------------------------------------------------------------------
<ToolBar xmlns=
''> was not expected.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: <ToolBar xmlns=
''> was not expected.
Source
Error
:
Line 14:
Protected
Overrides
Sub
OnInit(
ByVal
e
As
System.EventArgs)
Line 15:
MyBase
.OnInit(e)
Line 16:
Me
.LoadContentFile(
"ToolBar.xml"
)
Line 17:
End
Sub
Line 18:
Source File: D:\Profiles\bah029\My Documents\Visual Studio 2008\Projects\CommonServerControls\GridCommandItem.vb Line: 16
Stack Trace:
[InvalidOperationException: <ToolBar xmlns=
''> was not expected.]
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderGridCommandItem.Read1_GridCommandItem() +259
[InvalidOperationException: There is an error in XML document (2, 2).]
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,
String
encodingStyle, XmlDeserializationEvents events) +613
System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) +102
Telerik.Web.UI.ControlItemContainer.LoadXml(
String
xml) +113
Telerik.Web.UI.RadToolBar.LoadContentFile(
String
xmlFileName) +99
CommonServerControls.GridCommandItem.OnInit(EventArgs e) in D:\Profiles\bah029\My Documents\Visual Studio 2008\Projects\CommonServerControls\GridCommandItem.vb:16
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Page.ProcessRequestMain(
Boolean
includeStagesBeforeAsyncPoint,
Boolean
includeStagesAfterAsyncPoint) +378
<
telerik:RadComboBox
ID
=
"EmployeePotentialCombo"
runat
=
"server"
DataSourceID
=
"EmployeePotentialList"
DataValueField
=
"eptID"
Text
=
"Employee Potential:"
DataTextField
=
"eptDesc"
Width
=
"350px"
EmptyMessage
=
"Select Employee Potential"
Label
=
"Potential:"
>
</
telerik:RadComboBox
>
<
telerik:RadComboBox
ID
=
"EmployeePotentialCombo"
runat
=
"server"
DataSourceID
=
"EmployeePotentialList"
DataValueField
=
"eptID"
Text
=
"Employee Potential:"
DataTextField
=
"eptDesc"
Width
=
"350px"
EmptyMessage
=
"Select Employee Potential"
Label
=
"Potential:"
SelectedValue='<%# Bind("eptID") %>'>
</
telerik:RadComboBox
>
protected void FormView1_DataBound(object sender, EventArgs e)
{
DataRowView drv = (DataRowView)FormView1.DataItem;
RadComboBox combo = (RadComboBox)FormView1.FindControl("EmployeePotentialCombo");
combo.SelectedValue = drv["eptID"].ToString();
// combo.SelectedValue = "3";
}