Dim sb As New StringBuilder
sb.Append(
"<Menu><Group Flow=""Vertical"">")
sb.Append("<Item Text=""Map Vehicle"" Value=""MapVehicle"" TextAlign=""Left""></Item><Item Text=""Map History ..."" Value=""MapHistory"" TextAlign=""Left""></Item>")
sb.Append(
"<Item Text=""Map Nearby ..."" Value=""MapNearby"" TextAlign=""Left""></Item>")
sb.Append(
"<Item Text=""Watch Live"" Value= ""WatchVehicle"" TextAlign=""Left""></Item>")
sb.Append(
"<Item Text=""Rename Vehicle"" Value=""RenameVehicle"" TextAlign=""Left""></Item>")
sb.Append(
"</Group></Menu>")
Return sb.ToString()
**********************************************************************
**** BIND TO RADMENU ***************************************
RadMenu4.LoadXml(XML FROM RETURNED FROM ABOVE)
**********************************************************************
***** CODE ON TREEVIEW ***********************************
<ContextMenus>
<telerik:RadTreeViewContextMenu ID="RadMenu4" runat="server" EnableEmbeddedSkins="false" Skin="Custom">
<CollapseAnimation duration="200" type="OutQuint" />
</telerik:RadTreeViewContextMenu>
</ContextMenus>
***********************************************************************
<%@ Control Language="vb" AutoEventWireup="true" CodeBehind="AddressInfo.ascx.vb" Inherits="UserMaintenance.AddressInfo" %> <div style="width: auto;"> <telerik:RadInputManager id="RadInputManager1" runat="server"> <telerik:TextBoxSetting ErrorMessage="Required field." Validation-IsRequired="True" EmptyMessage="Please type here." Validation-ValidateOnEvent="Submit"> <TargetControls> <telerik:TargetInput ControlID="txtStreet" /> <telerik:TargetInput ControlID="txtCity" /> <telerik:TargetInput ControlID="txtState" /> <telerik:TargetInput ControlID="txtZip" /> <telerik:TargetInput ControlID="txtMobile" /> <telerik:TargetInput ControlID="txtPhone" /> <telerik:TargetInput ControlID="txtFax" /> </TargetControls> <Validation IsRequired="True"></Validation> </telerik:TextBoxSetting> </telerik:RadInputManager> <div class="row" style="float: right;"> <asp:Label ID="lblResult" runat="server" Text="No Comment" Visible="False" Font-Bold="True" Font-Size="11pt"></asp:Label> </div> <div style="float: left; width: 50%;"> <table cellspacing="0" cellpadding="3" border="0" summary="Edit Table" class="Normal"> <tr> <td align="right"> <asp:Label ID="lblStreet" runat="server" Text="Street" /> </td> <td> <asp:TextBox ID="txtStreet" runat="server" AutoCompleteType="HomeStreetAddress" TabIndex="1" Text='<%# DataBinder.Eval( Container, "DataItem.Street" ) %>' /> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblCity" runat="server" Text="City" /> </td> <td> <asp:TextBox ID="txtCity" runat="server" AutoCompleteType="HomeCity" TabIndex="2" Text='<%# DataBinder.Eval( Container, "DataItem.City" ) %>' /> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblState" runat="server" Text="State" /> </td> <td> <asp:TextBox ID="txtState" runat="server" AutoCompleteType="HomeState" TabIndex="3" Text='<%# DataBinder.Eval( Container, "DataItem.State" ) %>' /> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblZip" runat="server" Text="Zip" /> </td> <td> <asp:TextBox ID="txtZip" runat="server" AutoCompleteType="HomeZipCode" TabIndex="4" Text='<%# DataBinder.Eval( Container, "DataItem.Zip" ) %>' /> </td> </tr> </table> </div> <div style="float: left; width: 50%;"> <table class="Normal"> <tr> <td align="right"> <asp:Label ID="lblMobile" runat="server" Text="Mobile" /> </td> <td> <asp:TextBox ID="txtMobile" runat="server" AutoCompleteType="Cellular" TabIndex="5" Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Mobile" ) %>' /> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblPhone" runat="server" Text="Phone" /> </td> <td> <asp:TextBox ID="txtPhone" runat="server" AutoCompleteType="BusinessPhone" TabIndex="6" Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Phone" ) %>' /> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblFax" runat="server" Text="Fax" /> </td> <td> <asp:TextBox ID="txtFax" runat="server" AutoCompleteType="BusinessFax" TabIndex="7" Height="22px" Text='<%# DataBinder.Eval( Container, "DataItem.Fax" ) %>' /> </td> </tr> <tr></tr> </table> </div> </div> <!-- Empty row to keep tops of columns aligned. --><div class="row"> <span class="field"></span> </div> if (!IsPostBack)
{ RadComboBox1.Items.Insert(0, new RadComboBoxItem("Select Your Name", "0")); RadComboBox1.SelectedIndex = 0;}