or
<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 ClassServer 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 SubLine 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"; }function approveClick(comboBox) { //Here i would like to get the checked nodes, //from the treeview and then to concatenate the nodes text value, //to the input field like: comboBox.set_text("node1;node2;node3"); comboBox.hideDropDown(); }