Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
113 views
Hi,

Does the RADScheduler for ASP.NEt AJAX work properly on mobile applications  ?
sandeep
Top achievements
Rank 1
 asked on 26 Jun 2009
2 answers
226 views
Is it possible to use the RadEditor without iFrames?
Drew
Top achievements
Rank 1
 answered on 26 Jun 2009
1 answer
463 views

Hi,

I am using RadDatePicker and I want to disable the dates in between range( Ex: - 12.03.09-12.06.09 )from code behind.

I will get dates dynamically, acceding to the dates I have to disable…

Please guide me….

Pavlina
Telerik team
 answered on 26 Jun 2009
7 answers
421 views
Hi,

How do you add a tooltip in a chart legend?

Thanks.

Anette
Steve
Telerik team
 answered on 26 Jun 2009
2 answers
104 views
How do I remove the numbers that show above (and sometimes on the bars)?


Ves
Telerik team
 answered on 26 Jun 2009
1 answer
110 views
I have a Toolbar Control in a Update Panel and a TreeView Control in another Update Panel.
By default in the Server code, I disabled all the buttons, but using the Node Clicking event of the TreeView Control, I am managing the buttons on the Toolbar enabling few and disabiling few.

The issue is, when I select a Node, Click a button on the toolbar, after executing the functionality all the buttons in the Toolbar are disabled. After doing some research I found that the State is not maintained on the toolbar as the enable and disable I am doing in the javascript using OnNodeClicking event.

How can I resolve the issue? How can I make the toolbar remember the settings between the calls?

Thanks
Sri K Gamini.
Stuart Hemming
Top achievements
Rank 2
 answered on 26 Jun 2009
2 answers
294 views
I have developed one hierarchical grid. On Click of Each row I need to refresh another radgrid. So for that In Hierarchical grid I have one Column called ParamValue wherein I will store all my parameter to refresh that second radgrid.

Question: I have added client event in Hierarchical Grid as follows

<

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

 

Medac
Top achievements
Rank 1
 answered on 26 Jun 2009
1 answer
321 views
Hi Telerik,
The Problem With the Rad Continues again.
Am using Rad Ajax panel in my code .it works for single functionality
For inst :where i bind the grid using selected values from the Rad Combo.
Like wise am having the same req in filling the Rad tree view.
While doing it am getting the below Error.
While Searching i found lot of answers to it like setting page enable event validation="false".
Even though i set it to false my functionality doesn't works and remain idle or redirected.
a)May i know the Reason Why this Error occurs.?
b) is there any problem with the coding conventions.?
c)How to face this Error in future
"Microsoft: javascript :Run Time Error:Invalid
postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation."
<%@ 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"> 
                                                        &nbsp; 
                                                    </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"> 
                                                                        &nbsp; 
                                                                        <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"> 
                                                        &nbsp; 
                                                    </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"> 
                                        &nbsp;<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%"> 
                                        &nbsp; 
                                    </td> 
                                    <td style="padding-top: 8px" valign="top"> 
                                        &nbsp; 
                                    </td> 
                                </tr> 
                            </tbody> 
                        </table> 
                    </td> 
                </tr> 
                <tr> 
                    <td class="ms-bannerContainer" id="onetIdTopNavBarContainer" width="100%"> 
                        &nbsp; 
                    </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"> 
                                        &nbsp; 
                                    </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"> 
                                                        &nbsp; 
                                                    </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"> 
                                                    &nbsp; 
                                                </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"> 
                                                                &nbsp; 
                                                            </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"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style7"> 
                                                    <input type="text" id="addmodule" style="display: none" /> 
                                                    <input type="button" id="Additem" value="Add" style="display: none" onclick="AddNewItem()" /> 
                                                    &nbsp; 
                                                </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"> 
                                                    &nbsp; 
                                                </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"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    <table class="style4"> 
                                                        <tr> 
                                                            <td class="style14"> 
                                                                &nbsp; 
                                                            </td> 
                                                            <td> 
                                                            </td> 
                                                        </tr> 
                                                    </table> 
                                                </td> 
                                                <td class="style10"> 
                                                    <table class="style4"> 
                                                        <tr> 
                                                            <td class="style16"> 
                                                                &nbsp; 
                                                            </td> 
                                                            <td> 
                                                                <%--<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>--%> 
                                                            </td> 
                                                        </tr> 
                                                    </table> 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp;&nbsp;&nbsp; 
                                                    <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"> 
                                                            &nbsp;&nbsp;&nbsp;&nbsp; 
                                                            <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"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style42"> 
                                                    &nbsp; 
                                                </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"> 
                                                    &nbsp; 
                                                </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"> 
                                                    &nbsp; 
                                                </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"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style26"> 
                                                </td> 
                                                <td class="style27"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style28"> 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    <asp:Button ID="Button3" runat="server" Text="Submit" /> 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style18"> 
                                                </td> 
                                                <td class="style19"> 
                                                </td> 
                                                <td class="style20"> 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td class="style12"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style24"> 
                                                    &nbsp; 
                                                </td> 
                                                <td class="style10"> 
                                                    &nbsp; 
                                                </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> 
Pls guys need to solve this issue as this is a show stopper for my proj
Thanks in Advance
N.Balaji
Sebastian
Telerik team
 answered on 26 Jun 2009
1 answer
136 views
Hi

   I want a RadMenu similar to the one that used in this site.

  In this is site we have RadMenuItems like PRODUCTS, CONSULTING, PURCHASE, SUPPORT , COMMUNITY,COMPANY etc..
  For PRODUCTS Radmenu item you have used a button beside it. If i click on it then only it will open its childItems. How can I do this kind of one..

   Please give me sample code

  Thanks
  Srikanth gn
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2009
1 answer
62 views
Hello,

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">&nbsp;</TD>

<TD vAlign=top></TD>

<TD vAlign=top></TD>

<TD>&nbsp;</TD></TR>

<TR>

<TD style="BORDER-RIGHT: #00b050 thin; BORDER-TOP: #00b050 thin; BORDER-LEFT: #00b050 thin; BORDER-BOTTOM: #00b050 thin dashed">&nbsp;</TD>

<TD vAlign=top></TD>

<TD vAlign=top></TD>

<TD>&nbsp;</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.

Rumen
Telerik team
 answered on 26 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?