<
ClientSettings>
<Selecting AllowRowSelect="True"></Selecting>
<ClientEvents OnRowClick="RowSelected"></ClientEvents>
</ClientSettings>
If i select the Master Table row I am getting the assigned value of ParamValue column. But of I click on DetailsTable[0] row I am still getting the MasterTable ParamValue.
how can I get the selected row index and Column value of Details Table in Javascript?
Regards,
Medac
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="dbconfig.aspx.cs" Inherits="dbconfig" EnableEventValidation="false" %> |
| <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <title>Ax Online</title> |
| <link href="css/calendar.css" type="text/css" rel="stylesheet" /> |
| <link href="css/datepicker.css" type="text/css" rel="Stylesheet" /> |
| <link href="css/core.css" type="text/css" rel="stylesheet" /> |
| <link href="css/Card1011-65001.css" type="text/css" rel="Stylesheet" /> |
| <link href="css/drag-drop-folder-tree_2.css" type="text/css" rel="Stylesheet" /> |
| <script language="javascript" src="js/ajax2.js" type="text/javascript"></script> |
| <script language="javascript" src="js/ajax.js" type="text/javascript"></script> |
| <script language="javascript" src="js/treeajax.js" type="text/javascript"></script> |
| <form id="form1" runat="server"> |
| <script type="text/javascript"> |
| function fnShowHide(str) { |
| var aId = str.id; |
| aIdaId = aId.substring(0, (aId.length - 1)); |
| if (document.getElementById(aId).getElementsByTagName('UL').length != 0) { |
| if (document.getElementById(aId).getElementsByTagName('UL')[0].style.display == '') { |
| //document.getElementById(aId).className = "closecurrentLi"; |
| document.getElementById(aId).getElementsByTagName('IMG')[0].src = "images/iconPlus.gif"; |
| document.getElementById(aId).getElementsByTagName('UL')[0].style.display = 'none'; |
| } |
| else { |
| //document.getElementById(aId).className = "opencurrentLi"; |
| document.getElementById(aId).getElementsByTagName('IMG')[0].src = "images/iconMinus.gif"; |
| document.getElementById(aId).getElementsByTagName('UL')[0].style.display = ''; |
| } |
| } |
| else { |
| //document.getElementById(aId).className = "noImgLi"; |
| document.getElementById(aId).getElementsByTagName('IMG')[0].style.visibility = 'hidden'; |
| } |
| } |
| </script> |
| <script type="text/javascript"> |
| /* <![CDATA[ */ |
| /* <![CDATA[ */ |
| function isMouseOverGrid(target) { |
| parentNode = target; |
| while (parentNode != null) { |
| if (parentNode.id == gridId) { |
| return parentNode; |
| } |
| parentNode = parentNode.parentNode; |
| } |
| return null; |
| } |
| // function onNodeDragging(sender, args) { |
| // var target = args.get_htmlElement(); |
| // if (!target) return; |
| // if (target.tagName == "INPUT") { |
| // target.style.cursor = "hand"; |
| // } |
| // var grid = isMouseOverGrid(target) |
| // if (grid) { |
| // grid.style.cursor = "hand"; |
| // } |
| // } |
| function dropOnHtmlElement(args) { |
| if (droppedOnInput(args)) |
| return; |
| if (droppedOnGrid(args)) |
| return; |
| } |
| function droppedOnGrid(args) { |
| var target = args.get_htmlElement(); |
| while (target) { |
| if (target.id == gridId) { |
| args.set_htmlElement(target); |
| return; |
| } |
| target = target.parentNode; |
| } |
| args.set_cancel(true); |
| } |
| function droppedOnInput(args) { |
| var target = args.get_htmlElement(); |
| if (target.tagName == "INPUT") { |
| target.style.cursor = "default"; |
| target.value = args.get_sourceNode().get_text(); |
| args.set_cancel(true); |
| return true; |
| } |
| } |
| function dropOnTree(args) { |
| var text = ""; |
| if (args.get_sourceNodes().length) { |
| var i; |
| for (i = 0; i < args.get_sourceNodes().length; i++) { |
| var node = args.get_sourceNodes()[i]; |
| text = text + ', ' + node.get_text(); |
| } |
| } |
| } |
| // function clientSideEdit(sender, args) { |
| // var destinationNode = args.get_destNode(); |
| // if (destinationNode) { |
| // var firstTreeView = $find('RadTreeView1'); |
| // var secondTreeView = $find('RadTreeView2'); |
| // firstTreeView.trackChanges(); |
| // secondTreeView.trackChanges(); |
| // var sourceNodes = args.get_sourceNodes(); |
| // for (var i = 0; i < sourceNodes.length; i++) { |
| // var sourceNode = sourceNodes[i]; |
| // sourceNode.get_parent().get_nodes().remove(sourceNode); |
| // if (args.get_dropPosition() == "over") destinationNode.get_nodes().add(sourceNode); |
| // if (args.get_dropPosition() == "above") insertBefore(destinationNode, sourceNode); |
| // if (args.get_dropPosition() == "below") insertAfter(destinationNode, sourceNode); |
| // } |
| // destinationNode.set_expanded(true); |
| // firstTreeView.commitChanges(); |
| // secondTreeView.commitChanges(); |
| // } |
| // } |
| function insertBefore(destinationNode, sourceNode) { |
| var destinationParent = destinationNode.get_parent(); |
| var index = destinationParent.get_nodes().indexOf(destinationNode); |
| destinationParent.get_nodes().insert(index, sourceNode); |
| } |
| function insertAfter(destinationNode, sourceNode) { |
| var destinationParent = destinationNode.get_parent(); |
| var index = destinationParent.get_nodes().indexOf(destinationNode); |
| destinationParent.get_nodes().insert(index + 1, sourceNode); |
| } |
| // function onNodeDropping(sender, args) { |
| // var dest = args.get_destNode(); |
| // if (dest) { |
| // var clientSide = document.getElementById('ChbClientSide').checked; |
| // if (clientSide) { |
| // clientSideEdit(sender, args); |
| // args.set_cancel(true); |
| // return; |
| // } |
| // dropOnTree(args); |
| // } |
| // else { |
| // dropOnHtmlElement(args); |
| // } |
| // } |
| function AddNewItem() { |
| var combo = $find("RadComboBox1"); |
| var intextput = document.getElementById("addmodule").value; |
| var comboItem = new Telerik.Web.UI.RadComboBoxItem(); |
| comboItem.set_text(intextput); |
| combo.trackChanges(); |
| combo.get_items().add(comboItem); |
| comboItem.select(); |
| combo.commitChanges(); |
| comboItem.scrollIntoView(); |
| document.getElementById('addmodule').style.display = 'none'; |
| document.getElementById('Additem').style.display = 'none'; |
| } |
| function showadditems() { |
| document.getElementById('Additems').style.display = 'none'; |
| document.getElementById('addmodule').style.display = ''; |
| document.getElementById('Additem').style.display = ''; |
| } |
| function checkpwd(id, uid) { |
| var pwd = document.getElementById(id).value; |
| var usid = document.getElementById(uid).value; |
| if (usid == "") { |
| alert('User Name is Required'); |
| return false; |
| } |
| else if (pwd == "") { |
| alert('Password is Required'); |
| return false; |
| } |
| else { |
| return true; |
| } |
| } |
| function Showitems(dbtoolsobj) { |
| alert(dbtoolsobj); |
| document.getElementById(dbtoolsobj).style.display = ''; |
| document.getElementById('Div1').style.display = 'none'; |
| } |
| function showsqlfields(tagname) { |
| document.getElementById(tagname).style.display = ''; |
| } |
| function hideitem(position) |
| { |
| if (position == 'left') |
| { |
| document.getElementById('sqlauthent').style.display = 'none'; |
| document.getElementById('db1').style.display = 'none'; |
| document.getElementById('DropDownList3').style.display = 'none'; |
| document.getElementById('treeview1').style.display = 'none'; |
| document.getElementById('sql').checked = false; |
| document.getElementById('windows').checked = false; |
| } |
| else |
| { |
| document.getElementById('sqlauthent1').style.display = 'none'; |
| document.getElementById('db2').style.display = 'none'; |
| document.getElementById('DropDownList4').style.display = 'none'; |
| document.getElementById('treeview2').style.display = 'none'; |
| document.getElementById('sql1').checked = false; |
| document.getElementById('windows1').checked = false; |
| } |
| } |
| function hidedbtool() { |
| debugger; |
| document.getElementById('DbTools').style.display = 'none'; |
| } |
| /* ]]> */ |
| </script> |
| <div> |
| <table class="ms-main" height="100%" cellspacing="0" cellpadding="0" width="100%" |
| border="0"> |
| <tbody> |
| <tr> |
| <td> |
| <table cellspacing="0" cellpadding="0" width="100%" border="0"> |
| <tbody> |
| <tr> |
| <td class="ms-globalbreadcrumb" colspan="4"> |
| <table class="ms-globalright" height="100%" cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr> |
| <td class="ms-globallinks" style="padding-right: 6px; padding-left: 3px" valign="center"> |
| </td> |
| <td class="ms-globallinks" valign="center"> |
| <span style="display: none"></span><span title="Open Menu"></span> |
| <script language="javascript" type="text/javascript"> var _spUserId = 155;</script> |
| </td> |
| <td class="ms-globallinks" style="padding-right: 3px; padding-left: 1px"> |
| |
| </td> |
| <td class="ms-globallinks" valign="center"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr> |
| <td class="ms-globallinks"> |
| <span style="padding-left: 3px"></span> |
| </td> |
| <td class="ms-globallinks"> |
| |
| <telerik:RadScriptManager runat="server" ID="RadScriptManager1"> |
| </telerik:RadScriptManager> |
| <%-- <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>--%> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> |
| <AjaxSettings> |
| <%-- |
| <telerik:AjaxSetting AjaxControlID="RadComboBox1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="AjaxLoadingPanel1" /> |
| <telerik:AjaxUpdatedControl ControlID="RadComboBox1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting>--%> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| <td class="ms-globallinks" valign="center"> |
| |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="ms-globalTitleArea"> |
| <table cellspacing="0" cellpadding="0" width="100%" border="0"> |
| <tbody> |
| <tr> |
| <td class="ms-titleimagearea" id="GlobalTitleAreaImage"> |
| <h1 class="ms-sitetitle"> |
| S .Oliver<a id="ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle" href="http://india.soliverasia.biz/development/"> |
| </a> |
| </h1> |
| </td> |
| <td class="ms-sitetitle" width="100%"> |
| |
| </td> |
| <td style="padding-top: 8px" valign="top"> |
| |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="ms-bannerContainer" id="onetIdTopNavBarContainer" width="100%"> |
| |
| </td> |
| </tr> |
| <tr height="100%"> |
| <td> |
| <table height="100%" cellspacing="0" cellpadding="0" width="100%"> |
| <tbody> |
| <tr> |
| <td id="TitleAreaImageCell" class="ms-pagetitleareaframe" valign="center" nowrap> |
| </td> |
| <td class="style3"> |
| |
| </td> |
| <td class="ms-pagetitleareaframe" id="onetidPageTitleAreaFrame" valign="top" nowrap> |
| <table id="onetidPageTitleAreaTable" cellspacing="0" cellpadding="0" border="0"> |
| <tbody> |
| <tr> |
| <td class="ms-titlearea" valign="top"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="ms-pagetitle" id="onetidPageTitle" valign="top" height="100%"> |
| <h2 class="ms-pagetitle"> |
| DB UTILITY</h2> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| <td class="ms-titlearearight"> |
| <div class="ms-titleareaframe" style="height: 100%"> |
| <img height="1" alt="" src="Images/blank.gif" width="1"></div> |
| </td> |
| </tr> |
| <tr> |
| <td class="ms-leftareacell" id="LeftNavigationAreaCell" valign="top" height="100%"> |
| <table class="ms-nav" cellspacing="0" cellpadding="0" width="100%"> |
| <tbody> |
| <tr> |
| <td> |
| <table class="ms-navframe" cellspacing="0" cellpadding="0" border="0"> |
| <tbody> |
| <tr valign="top"> |
| <td width="4"> |
| <img height="1" alt="" src="Images/blank.gif" width="4"> |
| </td> |
| <td valign="top" class="style2" id="quicklaunch"> |
| <span style="display: none"><a href="http://india.soliverasia.biz/development/_layouts/listedit.aspx?List=661a3483-d30d-40bb-8fa4-845ff50d7074"> |
| </a></span> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2"> |
| <img height="1" alt="" src="Images/blank.gif" width="138"> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| <td class="style1"> |
| <div class="ms-pagemargin" height="100%"> |
| <img height="1" alt="" src="Images/blank.gif" width="6"></div> |
| </td> |
| <td class="ms-bodyareacell" valign="top"> |
| <telerik:RadAjaxPanel ID="RadAjaxpanel1" LoadingPanelID="AjaxLoadingPanel2" EnableAJAX="true" runat="server" > |
| <table class="style4" style="border: 1px solid #8e8e8e; width: 750px"> |
| <tr> |
| <td class="style11"> |
| |
| </td> |
| <td class="style7"> |
| Module Name: |
| </td> |
| <td class="style38"> |
| </td> |
| </tr> |
| <tr> |
| <td class="style32"> |
| </td> |
| <td class="style33"> |
| <table class="style29"> |
| <tr> |
| <td class="style31"> |
| |
| </td> |
| <td class="style30"> |
| <telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Sunset" AutoPostBack="true" |
| OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Text="Select" Value="Select" /> |
| </Items> |
| </telerik:RadComboBox> |
| </td> |
| <td> |
| <input type="button" id="Additems" value="Add Module" onclick="showadditems()" runat="server" /><input |
| type="button" id="Record" value="Enter Records" onclick="LoadServer()" /> |
| </td> |
| </tr> |
| </table> |
| </td> |
| <td class="style39"> |
| </td> |
| </tr> |
| <tr> |
| <td class="style11"> |
| |
| </td> |
| <td class="style7"> |
| <input type="text" id="addmodule" style="display: none" /> |
| <input type="button" id="Additem" value="Add" style="display: none" onclick="AddNewItem()" /> |
| |
| </td> |
| <td class="style38"> |
| </td> |
| </tr> |
| </table> |
| <div id="Div1" class="treebdr" runat="server" style="width: 700px"> |
| <telerik:RadGrid ID="RadGrid2" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" |
| AllowFilteringByColumn="True" Width="560px" runat="server" OnColumnCreating="RadGrid2_ColumnCreating" |
| OnItemCommand="RadGrid2_ItemCommand" OnItemDeleted="RadGrid2_ItemDeleted" OnDeleteCommand="RadGrid2_DeleteCommand" |
| OnNeedDataSource="RadGrid2_NeedDataSource" OnDataBound="RadGrid2_DataBound" GridLines="None" |
| AutoGenerateDeleteColumn="true" Skin="Sunset"> |
| <%--<HeaderContextMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu>--%> |
| <PagerStyle Mode="NumericPages" /> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <MasterTableView Width="100%" DataKeyNames="Mapid" HorizontalAlign="NotSet"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridButtonColumn ConfirmText="Are you Sure You want to Delete this Item?" |
| ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" |
| CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" HeaderText="Delete"> |
| </telerik:GridButtonColumn> |
| </Columns> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
| <asp:Button ID="clrFilters" runat="server" Text="Clear filters" CssClass="button" |
| OnClick="clrFilters_Click"></asp:Button> |
| </div> |
| <img id="loadingimg" style="display:none"/> |
| <table id="DbTools" style="border: 1px solid #8e8e8e; width: 750px;display:none"> |
| <tr> |
| <td class="style26"> |
| </td> |
| <td class="style7"> |
| Source Server: |
| </td> |
| <td class="style28"> |
| Destination Server: |
| </td> |
| </tr> |
| <tr> |
| <td class="style13"> |
| </td> |
| <td class="style5"> |
| <asp:DropDownList ID="DropDownList1" runat="server" Height="62px" Width="204px" onchange="hideitem('left')" > |
| <asp:ListItem>INCHAX001\SQLEXPRESS</asp:ListItem> |
| </asp:DropDownList> |
| <br /> |
| </td> |
| <td class="style25"> |
| <asp:DropDownList ID="DropDownList2" runat="server" Height="46px" Width="204px" onchange="hideitem('right')"> |
| <asp:ListItem>INCHAX001\SQLEXPRESS</asp:ListItem> |
| </asp:DropDownList> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| <table class="style4" style="border-top-color: #8e8e8e; border-right-color: #8e8e8e; |
| border-bottom-color: #8e8e8e; border-left-color: #8e8e8e; border-width: 1px; |
| border-style: solid"> |
| <tr> |
| <td class="style14"> |
| Authentication: |
| </td> |
| <td> |
| <%--<asp:RadioButtonList ID="RadioButtonList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList2_SelectedIndexChanged"> |
| <asp:ListItem>Windows</asp:ListItem> |
| <asp:ListItem>Sql</asp:ListItem> |
| </asp:RadioButtonList>--%> |
| <input type="radio" id="windows" name="Authent" onclick="Loaddb('DropDownList1','windows')" |
| runat="server" />Windows |
| <br /> |
| <input type="radio" id="sql" name="Authent" onclick="showsqlfields('sqlauthent')" |
| runat="server" />Sql |
| </td> |
| </tr> |
| </table> |
| </td> |
| <td class="style10"> |
| <table class="style4" style="border-top-color: #8e8e8e; border-right-color: #8e8e8e; |
| border-bottom-color: #8e8e8e; border-left-color: #8e8e8e; border-width: 1px; |
| border-style: solid"> |
| <tr> |
| <td class="style16"> |
| Authentication: |
| </td> |
| <td> |
| <%--<asp:RadioButtonList ID="RadioButtonList3" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList3_SelectedIndexChanged"> |
| <asp:ListItem>Windows</asp:ListItem> |
| <asp:ListItem>Sql</asp:ListItem> |
| </asp:RadioButtonList>--%> |
| <input type="radio" id="windows1" name="Authent1" onclick="Loaddb('DropDownList2','windows')" |
| runat="server" />Windows |
| <br /> |
| <input type="radio" id="sql1" name="Authent1" onclick="showsqlfields('sqlauthent1')" |
| runat="server" />Sql |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| <table class="style4"> |
| <tr> |
| <td class="style14"> |
| |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| </td> |
| <td class="style10"> |
| <table class="style4"> |
| <tr> |
| <td class="style16"> |
| |
| </td> |
| <td> |
| <%--<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>--%> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| <table id="sqlauthent" style="display: none"> |
| <tr> |
| <td> |
| Login: |
| </td> |
| <td> |
| <input type="text" id="txtlogin" runat="server" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Password: |
| </td> |
| <td> |
| <input type="password" id="txtpwd" runat="server" /> |
| <input type="button" id="gobtn" value="Go" onclick="Loaddb('DropDownList1','sql')" /> |
| </td> |
| </tr> |
| </table> |
| <span id="errormsg" style="font-family:Arial Black;color:Red;display:none"></span> |
| </td> |
| <td class="style9"> |
| |
| <table ID="sqlauthent1" style="display: none"> |
| <tr> |
| <td> |
| Login: |
| </td> |
| <td> |
| <input ID="txtlogin1" runat="server" type="text" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Password: |
| </td> |
| <td> |
| <input ID="txtpwd1" runat="server" type="password" /> |
| <input ID="btngo1" onclick="Loaddb('DropDownList2','sql1')" type="button" |
| value="Go" /> |
| </td> |
| </tr> |
| </table> |
| <span id="errormsg1" style="font-family:Arial Black;color:Red;display:none"></span> |
| </td> |
| </tr> |
| <tr> |
| <td class="style35"> |
| </td> |
| <%--<td class="style36"> |
| <asp:Label ID="lblpwd" runat="server" Text="Password:"></asp:Label> |
| <asp:TextBox ID="TextBox3" runat="server" Width="167px" TextMode="Password"></asp:TextBox><asp:Button |
| ID="Button4" runat="server" Text="GO" Width="25px" |
| onclick="Button4_Click" OnClientClick="return checkpwd('TextBox3','TextBox5');" |
| Height="26px"/> |
| </td>--%> |
| <%--<td class="style37"> |
| <asp:Label ID="lblpwd1" runat="server" Text="Password:"></asp:Label> |
| <asp:TextBox ID="TextBox4" runat="server" Width="167px" TextMode="Password"></asp:TextBox><asp:Button |
| ID="Button5" runat="server" Text="GO" Width="26px" |
| onclick="Button5_Click" OnClientClick="return checkpwd('TextBox4','TextBox6');"/> |
| </td>--%> |
| </tr> |
| <tr> |
| <td class="style40"> |
| </td> |
| <td class="style41"> |
| |
| </td> |
| <td class="style42"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| </td> |
| <td class="style24"> |
| <span id="db1" style="display:none"></span> |
| </td> |
| <td class="style10"> |
| <span id="db2" style="display:none"></span> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| <span id="sourcedrop" style="display: none"> |
| <asp:DropDownList ID="DropDownList3" runat="server" Height="101px" Width="244px" |
| AutoPostBack="True" AppendDataBoundItems="true" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged"> |
| </asp:DropDownList> |
| </span> |
| </td> |
| <td class="style10"> |
| <span id="targetdrop" style="display: none"> |
| <asp:DropDownList ID="DropDownList4" runat="server" Height="101px" Width="244px" |
| AutoPostBack="True"> |
| </asp:DropDownList> |
| </span> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| </td> |
| <td class="style10"> |
| <%--<asp:SqlDataSource ID="treesource" runat="server" ConnectionString="<%$ ConnectionStrings:DbToolConnectionString %>" |
| SelectCommand="select TABLE_NAME as tblname from INFORMATION_SCHEMA.Tables where TABLE_CATALOG=@db"> |
| <SelectParameters> |
| <asp:ControlParameter Name="db" PropertyName="SelectedValue" ControlID="DropDownList3" /> |
| </SelectParameters> |
| </asp:SqlDataSource>--%> |
| </td> |
| </tr> |
| <tr> |
| <td class="style21"> |
| </td> |
| <td class="style22"> |
| <div class="treebdr" id="treeview1" runat="server" style="display:none"> |
| <%--<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" CssClass="loadingPanel"/> --%> |
| <asp:Label ID="treeviewstatus" runat="server" /> |
| <telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" |
| MultipleSelect="true" EnableDragAndDropBetweenNodes="true" > |
| </telerik:RadTreeView> |
| </div> |
| </td> |
| <td class="style23"> |
| <div class="treebdr" id="treeview2" runat="server" style="display:none"> |
| <%-- <telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" |
| OnClientNodeDropping="onNodeDropping" |
| OnClientNodeDragging="onNodeDragging" OnNodeExpand="RadTreeView2_NodeExpand" MultipleSelect="true" |
| EnableDragAndDropBetweenNodes="true"> |
| </telerik:RadTreeView>--%> |
| <asp:Label ID="treeviewstatus1" runat="server" /> |
| <telerik:RadTreeView ID="RadTreeView2" runat="server" EnableDragAndDrop="True" |
| MultipleSelect="true" EnableDragAndDropBetweenNodes="true"> |
| </telerik:RadTreeView> |
| </div> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style26"> |
| </td> |
| <td class="style27"> |
| |
| </td> |
| <td class="style28"> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| <asp:Button ID="Button3" runat="server" Text="Submit" /> |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style18"> |
| </td> |
| <td class="style19"> |
| </td> |
| <td class="style20"> |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td class="style12"> |
| |
| </td> |
| <td class="style24"> |
| |
| </td> |
| <td class="style10"> |
| |
| </td> |
| </tr> |
| </table> |
| </telerik:RadAjaxPanel> |
| <br /> |
| <asp:Label ID="lblmodulename" runat="server"></asp:Label> |
| <br /> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <div id="treeview3" runat="server" class="treebdr" style="display: none"> |
| <%--<asp:RadioButton ID="RadioButton2" runat="server" Text="Sql Server" |
| AutoPostBack="True" oncheckedchanged="RadioButton2_CheckedChanged" />--%> |
| </a> |
| </div> |
| </td> |
| <td class="ms-rightareacell"> |
| <div class="ms-pagemargin"> |
| <img height="1" alt="" src="Images/blank.gif" width="10"></div> |
| </td> |
| </tr> |
| <tr> |
| <td class="ms-pagebottommarginleft"> |
| <input type="hidden" id="uid1" runat="server" /> |
| <input type="hidden" id="pwd1" runat="server" /> |
| <input type="hidden" id="uid2" runat="server" /> |
| <input type="hidden" id="pwd2" runat="server" /> |
| <img height="10" alt="" src="Images/blank.gif" width="1"> |
| </td> |
| <td class="ms-pagebottommargin"> |
| <img height="10" alt="" src="Images/blank.gif" width="1"> |
| </td> |
| <td class="ms-bodyareapagemargin"> |
| <img height="10" alt="" src="Images/blank.gif" width="1"> |
| </td> |
| <td class="ms-pagebottommarginright"> |
| <img height="10" alt="" src="Images/blank.gif" width="1"> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" > |
| <img src="Images/Loadingajax.gif" alt="loading.." /> |
| </telerik:RadAjaxLoadingPanel> |
| </div> |
| </form> |
| </body> |
| </html> |
Given the following sample of html:
<TABLE style="BORDER-RIGHT: #ff0000 solid; BORDER-TOP: #ff0000 solid; BACKGROUND-IMAGE: url(/images/background.jpg); BORDER-LEFT: #ff0000 solid; WIDTH: 922px; BORDER-BOTTOM: #ff0000 solid; HEIGHT: 347px">
<THEAD></THEAD>
<TBODY>
<TR>
<TD style="BORDER-RIGHT: #00b050 thin dashed; BORDER-TOP: #00b050 thin dashed; BORDER-LEFT: #00b050 thin dashed; BORDER-BOTTOM: #00b050 thin dashed"> </TD>
<TD vAlign=top></TD>
<TD vAlign=top></TD>
<TD> </TD></TR>
<TR>
<TD style="BORDER-RIGHT: #00b050 thin; BORDER-TOP: #00b050 thin; BORDER-LEFT: #00b050 thin; BORDER-BOTTOM: #00b050 thin dashed"> </TD>
<TD vAlign=top></TD>
<TD vAlign=top></TD>
<TD> </TD></TR></TBODY></TABLE>
I would like to know how to go from this:
BACKGROUND-IMAGE: url(/pathtofile/filename.jpg)
to this:
BACKGROUND-IMAGE: url(http://myserver/pathtofile/filename.jpg)
I have tried using the MakeUrlsAbsolute but didn’t get what I was looking for.

| // get total record counts |
| if (e.Item is GridFooterItem) |
| { |
| GridFooterItem footer = (GridFooterItem)e.Item; |
| ViewState["RecordCount"] = footer["IdCountInFooter"].Text.Replace("Count : ", ""); |
| } |
| // change Page Size Combobox |
| if (e.Item is GridPagerItem && ViewState["RecordCount"] != null) |
| { |
| GridPagerItem pager = (GridPagerItem)e.Item; |
| RadComboBox pageSizeComboBox = (RadComboBox)pager.FindControl("PageSizeComboBox"); |
| PageSizeComboBox.Items.Add(new RadComboBoxItem(ViewState["RecordCount"].ToString(), ViewState["RecordCount"].ToString())); |
| } |
| // change Page Size Combobox |
| if (e.Item is GridPagerItem && ViewState["RecordCount"] != null) |
| { |
| GridPagerItem pager = (GridPagerItem)e.Item; |
| RadComboBox pageSizeComboBox = (RadComboBox)pager.FindControl("PageSizeComboBox"); |
| // added item doesn't fire |
| // PageSizeComboBox.Items.Add(new RadComboBoxItem(ViewState["RecordCount"].ToString(), ViewState["RecordCount"].ToString())); |
| pageSizeComboBox.Items[3].Text = ViewState["RecordCount"].ToString(); |
| pageSizeComboBox.Items[3].Value = ViewState["RecordCount"].ToString(); |
| } |
To All,
i am currently using Rad Context menu in The RAD Grid.
IN the Grid Depending upon the value i want to show some different text on the context menu.lets say in a grid we have a 3 different row.
1 for a Folder name "Master" inthat i want see "Delete" and "Rename" in the context menu
2 for a Folder name "Working" inthat i want see "Create folder in the context menu
3 for a file i want to see "Properties" and "Download"
How can i do this?i am currently using ASP.NET 2008.
Thanks
Denny
Hi ,
From all examples I have seen, it looks like you can either access a label control that resides in a User control from server side or client side code.
But I cannot seem to get this to work ?
Is it better to update the User Control clientside or server side ?
I dont know if I should be using a RadtooltipManager instead of the RadToolTip.
The Label inside of the user control is simply the title of the user control UI - "Location Maintenance". or "Type Maintenance" depending on the targetcontrolid selected.
Why cant I "view source" the ID of the RadToolTip when it is displayed ? It seems like if I could do this, I could get a handle on something to getElementby client side ? Maybe the sequence of my client side code is wrong.
Here are snips from my current code ...... (Please see " <%-- START QUICK ADD TOOLTIP --%> ") The user control has an ID of location_qadd
<EditFormSettings EditFormType="Template">
<FormStyle BackColor="#996633" ForeColor="Yellow" />
<FormTemplate>
<%
-- <table id="Table2" cellspacing="0" cellpadding="0" width="100%" border="0"
style="border-collapse: collapse; background: white; font-size: small"> --
%>
<div style="left: 5px">
<!-- Outer div -->
<div style="text-align: center; font-size: medium; width: 100%">
<asp:Label ID="lblTitle" runat="server" Width="358px" Font-Bold="true" />
<asp:Label ID="seFormHelp" Width="10" Font-Size="medium" ForeColor="Yellow" Font-Bold="true"
runat="server">
<img style="border:0px; " alt="Help" src="../iqimages/trImages/Help.gif" />
</asp:Label>
<telerik:RadToolTip ID="RadToolTipFormHelp" runat="server" ManualClose="true" TargetControlID="seFormHelp"
Position="MiddleRight" RelativeTo="Element" Skin="Outlook" Animation="None" Sticky="true"
Width="250" Height="600"
AutoCloseDelay="3000">
<div>
<p style="text-align: center">
<b>Maintain Equipment Information </b>
</p>
<p style="text-align: left">
<b>Name </b>- Give this Equipment a Name. An Example could be "Row Machine".<br>
You may use different Row Machines. So, the first one could be Row Machine 1.
</p>
<p style="text-align: left">
<b>Location </b>- From your Exercise Location list, choose the location where
this equipment is.
<br> If you have not entered any of your Exercise Locations
, you can go to the Exercise Location page and enter your Exercise Locations.
</p>
<p style="text-align: left">
<b>Type </b>- From your Type list, choose the Type of Exercise Equipemnt this is.<br>
If you have not entered any of your Types, you can go to the Type Maintenance
page and enter your Types.
<br> Some Examples of Types could be "Cardio Equipment"
, "Hiking Equipment" or "Exercise Clothing".
</p>
<p style="text-align: left">
<b>Make and Model </b>- You can enter the Make and Manufacturer Model if you
like.
</p>
<p style="text-align: left">
<b>Gym ID </b>- In some gyms and fitness centers, they put information to identify
that piece of equipment. Most of the time it will be a number.
<br> You can put that
information here.
<br> It helps when a facility has more than one of the same piece of
Equipment.
<br>
Even though Equipment may be the same, sometimes they may be calibrated differently,
or, one may work better than another for you.
<br>
It also helps if you need to remember which Equipment you use in a facility.
</p>
<p style="text-align: left">
<b>Notes</b>- Note any information that is important to you about this Equipment<br>
</p>
<p style="text-align: left">
<b>Save </b>- Click this to Save your Information.<br>
</p>
<p style="text-align: left">
<b>Cancel</b>- Cancel your current request to Add or Update Equipment information.<br>
</p>
<p style="text-align: left">
<img style="border: 0px" alt="" src="../iqimages/trImages/Help.gif" />
- This is the
<b>HELP link</b>. Position your mouse here see the help topic.<br>
To close the help, move the mouse away and click.
</p>
</div>
</telerik:RadToolTip>
</div>
<div>
<asp:TextBox ID="TextBox1" Width="0px" runat="server" Text='<%# Bind( "equEquipmentNo") %>'
Visible="false" />
</div>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:Label ID="Label1" runat="server" Text="Name .....:" ToolTip="Equipment Name "
Width="85px" Font-Bold="true" />
<asp:TextBox ID="sEquipmentName" Width="250px" MaxLength="50" runat="server" Text='<%# Bind( "equEquipmentName") %>' />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="sEquipmentName"
Text="!" ErrorMessage="You Need Equipment Name" runat="server">
</asp:RequiredFieldValidator>
</div>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:TextBox ID="sequEquipmentLocNo" Width="0px" runat="server" Text='<%# Bind( "equEquipmentLocNo") %>'
Visible="false" Font-Bold="true" />
<asp:Label ID="Labeltyp1" runat="server" Text="Location .:" ToolTip="Select Equipment Location "
Width="85px" Font-Bold="true" />
<asp:DropDownList ID="equEquipmentddl" Width="150px" runat="server" AppendDataBoundItems="True">
<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>
</asp:DropDownList>
<%
--ImageButton in a form only postback on OnClick= --%>
<asp:ImageButton runat="server" ID="quickAddLocation" OnClick="qAddLocation_Click"
Text="Add Location" ForeColor="Yellow" BackColor="#996633" ImageUrl="~/mybodyscience/iqimages/trImages/AddRecord.gif"
CausesValidation="false" />
</div>
<%
-- START QUICK ADD TOOLTIP --%>
<div>
<telerik:RadToolTip ID="RadQuickLocation" runat="server"
ManualClose="true" TargetControlID="quickAddLocation"
Position="MiddleRight" RelativeTo="Element" Skin="Outlook"
Animation="None" Sticky="true" HideEvent="LeaveTargetAndToolTip"
ShowEvent="FromCode" OnPreRender="quickLocationPrerender" OnClientBeforeShow="iqAddLocation_beforeShow"
Width="250" Height="150">
<IQqaddPrefix:IQqaddTag ID="location_qadd" runat="server" />
</telerik:RadToolTip>
<div>
</div>
<%
-- END QUICK ADD TOOLTIP --%>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:TextBox ID="sequEquipmentTypeNo" Width="0px" runat="server" Text='<%# Bind( "equEquipmentTypeNo") %>'
Visible="false" />
<asp:Label ID="Label2" runat="server" Text="Type ......:" ToolTip="Select Equipment Type "
Width="85px" Font-Bold="true" />
<asp:DropDownList ID="equEquipmentTypeddl" Width="150px" runat="server" AppendDataBoundItems="True">
<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>
</asp:DropDownList>
<%
--ImageButton in a form only postback on OnClick= --%>
<asp:ImageButton runat="server" ID="quickAddEquipmentType" ImageUrl="~/mybodyscience/iqimages/led-icons/add.png"
OnClick="quickTypeAdd" CommandName="quickEquipTypeAdd" CausesValidation="False" ToolTip="Add/Change Equipment Type" />
</div>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:Label ID="Label3" runat="server" Text="Make ......:" ToolTip="Equipment Make "
Width="85px" Font-Bold="true" />
<asp:TextBox ID="sequEquipmentMake" Width="250px" MaxLength="30" runat="server" Text='<%# Bind( "equEquipmentMake") %>' />
</div>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:Label ID="Label4" runat="server" Text="Model .....:" ToolTip="Equipment Model "
Width="85px" Font-Bold="true" />
<asp:TextBox ID="sequEquipmentModel" Width="250px" MaxLength="30" runat="server"
Text='<%# Bind( "equEquipmentModel") %>' />
</div>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:Label ID="Labgid" runat="server" Text="GymID ...:" ToolTip="Sometimes in a Gym, they label the equipment with a number or other ID"
Width="85px" Font-Bold="true" />
<asp:TextBox ID="sequEquipmentGymID" Width="250px" MaxLength="15" runat="server"
Text='<%# Bind( "equEquipmentGymID") %>' />
</div>
<br>
<div style="margin-left: 5px; font-size: medium">
<asp:Label ID="Label5" runat="server" Text="Notes .....:" ToolTip="Any notes or comments about this Piece of Equipment"
Width="85px" Font-Bold="true" />
<asp:TextBox TextMode="MultiLine" ID="sequEquipmentNotes" Width="250px" MaxLength="100"
runat="server" Text='<%# Bind( "equEquipmentNotes") %>' />
</div>
<br>
<div style="text-align: center">
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Save" : "Save" %>'
runat="server" OnClientClick="ShowTooltip()" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel" OnClientClick="HideTooltip()"></asp:Button>
</div>
</div>
<!-- Outer div -->
<%
-- </table> --%>
</FormTemplate>
</EditFormSettings>
thanks for your help