ScriptManager.RegisterStartupScript(Page,
GetType(Page), "RadAlertScript", "Sys.Application.add_load(function(){var t=radopen('test.aspx?', null);t.setSize(1000,700);t.Center();});", True)
Thank you,
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="SqlDataSource1" GridLines="None" Skin="Windows7" AllowCustomPaging="True" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateHierarchy="True"> <ExportSettings ExportOnlyData="True" FileName="Export"> <Excel Format="ExcelML" /> </ExportSettings> <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="ManufacturerName" DataSourceID="SqlDataSource1" Frame="Void" GridLines="None"> <CommandItemSettings ShowExportToCsvButton="True" ShowExportToExcelButton="True" ShowExportToWordButton="True" /> <Columns> <telerik:GridBoundColumn DataField="ManufacturerName" HeaderText="Manufacturer Name" SortExpression="ManufacturerName" UniqueName="ManufacturerName"> </telerik:GridBoundColumn> <telerik:GridBinaryImageColumn AllowFiltering="False" AllowSorting="False" DataField="ManufacturerLogo" DefaultInsertValue="" HeaderText="Logo" ImageAlign="Middle" ImageHeight="100px" ImageWidth="100px" ResizeMode="Fit" UniqueName="column" ConvertEmptyStringToNull="False"> </telerik:GridBinaryImageColumn> <telerik:GridEditCommandColumn> </telerik:GridEditCommandColumn> </Columns> <EditFormSettings> <EditColumn UniqueName="EditCommandColumn1"></EditColumn> </EditFormSettings> <CommandItemStyle Height="50px" Width="50px" /> </MasterTableView> </telerik:RadGrid> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dbConnectionString %>" SelectCommand="SELECT * FROM [tbl_manufacturers]" UpdateCommand="UPDATE tbl_manufacturers SET ManufacturerName = @ManufacturerName, ManufacturerLogo = @ManufacturerLogo WHERE (ManufacturerName = @ManufacturerName)" <UpdateParameters> <asp:Parameter Name="ManufacturerName" /> <asp:Parameter Name="ManufacturerLogo" DbType="Binary" /> </UpdateParameters> </asp:SqlDataSource> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager>var node = $find(e.get_id());
node = node.get_element();
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;}