Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
149 views
I have a rad grid and I'm using the pop up window for edit mode. I'm just trying to get the value of every control and update the database. The problem is, if the item has not been changed, the value of the text box is just nothing. I've read through some of your examples, but they seem way over complicated. Is there a simple way to just get the text of the text box within the edit window, whether or not it has been changed? here is my code.

protected void radgridUpdate(Object source, Telerik.Web.UI.GridCommandEventArgs e)
{
    RadTextBox track = (RadTextBox)e.Item.FindControl("trackNameInputGrid");
 
 
    Response.Write(track.Text);
}//radgridUpdate




<telerik:GridTemplateColumn DataField="trackName" HeaderText="Track Name" SortExpression="trackName"
                        UniqueName="trackName" >
                        <ItemTemplate>
                            <asp:Label ID="trackNameOutput" runat="server" Text='<%# Bind("trackName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="trackNameInputGrid" Runat="server" Value='<%# Eval("trackName") %>' >
                            </telerik:RadTextBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>


Elliott
Top achievements
Rank 2
 answered on 19 Dec 2011
1 answer
181 views
I am wondering if someone could provide some insight and direction....  For performance reasons I am trying to use a composite script & I am wanting to point my users to use Google's jQuery version so my end users don't have to download it again.

I followed your instructions to make RadControls use an external jQuery.  I then tried to 'compositescript' the rest of my external JS references.  As folows:

    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableCdn="true">
         <Scripts>
             <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />  
             <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" Path="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" /> 
</Scripts>
<CompositeScript>
<Scripts>               
             <asp:ScriptReference Path="/js/some.jquery.plugin.js" />
             <asp:ScriptReference Path="/js/another.jquery.plugin.js" />
         </Scripts>
</CompositeScript>
    </asp:ScriptManager>

This fails, because SM renders the compositeScript first which means jQuery isn't loaded yet and the plugins fail.  I can't figure out any way around this....

Is there a solution?? Or do you have other tips to make this run better.  I don't have RadControls on every page of this website, but do use jQuery on every page.  I am keen on the compositeScript because I have many many plugins and UI files.  For now I'm resorting to manually combining and minifying.

Any workaround, tips or suggestions on how to tune this the best would be appreciated.

Simon
Telerik team
 answered on 19 Dec 2011
1 answer
280 views
Hello,

I am very new to ASP.Net, and I'm sure that my problem has more to do with how I implemented the updatepanel, rather than how I implemented the grid.

I have a page with two UpdatePanels. The first holds a bunch of dropdowns that get changed whenever a selection is changed. The second UpdatePanel holds a button and a RadGrid. When someone hits the button, the server is supposed to perform a query and update the grid's databinding.

Instead, when I hit the button, a second identical grid appears right next to the first one. The original grid gets the data, and the duplicate grid has no data. If I hit the button again, I get the error, "Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: ." Telerik.Web.UI.WebResource.axd:15
aspx:
<%@ Page Title="Find Location" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="FindLocation.aspx.cs" Inherits="Project1.FindLocation" %>
 <br>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><br>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %><br>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContentPH" runat="server"><br>
</asp:Content><br>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPH" runat="server"><br>
    <div style="float: left; padding: 15px;"><br>
        <h2><br>
            Find Location</h2><br>
        <asp:UpdatePanel ID="FindLocationUpdatePnl" runat="server" UpdateMode="Conditional"><br>
            <ContentTemplate><br>
                <table><br>
                    <tr><br>
                        <td><br>
                            <fieldset><br>
                                <legend>General</legend><br>
                                <table width="100%"><br>
                                    <tr><br>
                                        <td><br>
                                            Custom Identifier<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadTextBox ID="m_oCustomIdTextBox" runat="server"><br>
                                            </telerik:RadTextBox><br>
                                        </td><br>
                                    </tr><br>
                                    <tr><br>
                                        <td><br>
                                            Owned by<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oOwnedByComboBox" runat="server" AutoPostBack="false"<br>
                                                EnableViewState="true"><br>
                                            </telerik:RadComboBox><br>
                                        </td><br>
                                    </tr><br>
                                    <tr><br>
                                        <td><br>
                                            Maintained by<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oMaintainedByComboBox" runat="server" OnSelectedIndexChanged="MaintainedByChanged"<br>
                                                EnableViewState="true" AutoPostBack="true"><br>
                                            </telerik:RadComboBox><br>
                                        </td><br>
                                    </tr><br>
                                </table><br>
                            </fieldset><br>
                        </td><br>
                        <td><br>
                            <fieldset><br>
                                <legend>Has Route</legend><br>
                                <table width="100%"><br>
                                    <tr><br>
                                        <td><br>
                                            Type<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oHasRouteTypeComboBox" runat="server" AutoPostBack="true"<br>
                                                EnableViewState="true" /><br>
                                        </td><br>
                                    </tr><br>
                                    <tr><br>
                                        <td><br>
                                            Name or Number<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oNameOrNumber1" runat="server" AutoPostBack="true" EnableViewState="true" /><br>
                                        </td><br>
                                    </tr><br>
                                </table><br>
                            </fieldset><br>
                        </td><br>
                    </tr><br>
                    <tr><br>
                        <td><br>
                            <fieldset><br>
                                <legend>Region</legend><br>
                                <table width="100%"><br>
                                    <tr><br>
                                        <td><br>
                                            County<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oCountyComboBox" runat="server" OnSelectedIndexChanged="CountyChanged"<br>
                                                AutoPostBack="true" EnableViewState="true" /><br>
                                        </td><br>
                                    </tr><br>
                                    <tr><br>
                                        <td><br>
                                            City<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oCityComboBox" runat="server" OnSelectedIndexChanged="CityChanged"<br>
                                                AutoPostBack="true" EnableViewState="true" /><br>
                                        </td><br>
                                    </tr><br>
                                    <tr><br>
                                        <td><br>
                                            &nbsp;<br>
                                        </td><br>
                                    </tr><br>
                                </table><br>
                            </fieldset><br>
                        </td><br>
                        <td><br>
                            <fieldset><br>
                                <legend>And Has Route</legend><br>
                                <table width="100%"><br>
                                    <tr><br>
                                        <td><br>
                                            Type<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oAndHasRouteTypeComboBox" runat="server" AutoPostBack="true"<br>
                                                EnableViewState="true" /><br>
                                        </td><br>
                                    </tr><br>
                                    <tr><br>
                                        <td><br>
                                            Name or Number<br>
                                        </td><br>
                                        <td><br>
                                            <telerik:RadComboBox ID="m_oNameOrNumber2" runat="server" AutoPostBack="true" EnableViewState="true" /><br>
                                        </td><br>
                                    </tr><br>
                                </table><br>
                            </fieldset><br>
                        </td><br>
                    </tr><br>
                </table><br>
            </ContentTemplate><br>
        </asp:UpdatePanel><br>
        <!-- Buttons --><br>
        <asp:UpdatePanel runat="server" UpdateMode="Conditional"><br>
            <ContentTemplate><br>
                <div><br>
                    <telerik:RadButton ID="m_oSearchBtn" runat="server" Text="Search" OnClick="FindLocations" /><br>
                </div><br>
                </div><br>
                <div style="float: left; padding: 15px;"><br>
                    <telerik:RadGrid ID="m_oRadGrid" AllowPaging="true" PageSize="3" runat="server" AutoGenerateColumns="False"<br>
                        DataSourceID="m_oFoundLocationsSource" HorizontalAlign="NotSet"><br>
                        <MasterTableView DataSourceID="m_oFoundLocationsSource"><br>
                            <Columns><br>
                                <telerik:GridBoundColumn DataField="CustomIdentifier" HeaderText="Custom Identifier"<br>
                                    DataType="System.String" UniqueName="CustomIdentifier"><br>
                                </telerik:GridBoundColumn><br>
                            </Columns><br>
                        </MasterTableView><br>
                    </telerik:RadGrid><br>
            </ContentTemplate><br>
        </asp:UpdatePanel><br>
        <asp:ObjectDataSource ID="m_oFoundLocationsSource" runat="server" SelectMethod="GetFoundLocations"<br>
            EnablePaging="true" StartRowIndexParameterName="iStartRecord" MaximumRowsParameterName="iMaxRecords"<br>
            SortParameterName="sSortColumns" DataObjectTypeName="PersistenceLayer.Location"<br>
            TypeName="Project1.FindLocation" OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource><br>
    </div><br>
</asp:Content>


cs file:
using System;<br>
using System.Collections.Generic;<br>
using System.Linq;
using System.Web;
using System.Web.UI;<br>
using System.Web.UI.WebControls;<br>
using PersistenceLayer;<br>
using Project1.Helpers;<br>
using <font style="font-size: 14px; ">Project1</font>.Cache;<br>
using System.Collections.ObjectModel;<br>
using Telerik.Web.UI;<br>
<br>
<br>
namespace Project1<br>
{<br>
    public partial class FindLocation : System.Web.UI.Page<br>
    {<br>
        #region Event Handlers<br>
<br>
<br>
        #region Page Init<br>
<br>
<br>
        protected void Page_Load(object sender, EventArgs e)<br>
        {<br>
            if (IsPostBack == false)<br>
            {<br>
<font class="Apple-tab-span" style="white-space: pre; ">                </font>//initialize drop down content<br>
            }<br>
        }<br>
<br>
<br>
        #endregion<br>
<br>
<br>
        #region Filter Logic<br>
<br>
<br>
        protected void MaintainedByChanged(object sender, EventArgs e)<br>
        {<br>
            //change dropdown content<br>
        }<br>
<br>
<br>
        protected void CountyChanged(object sender, EventArgs e)<br>
        {<br>
            //change dropdown content<br>
        }<br>
<br>
<br>
        protected void CityChanged(object sender, EventArgs e)<br>
        {<br>
            //change dropdown content<br>
        }<br>
<br>
<br>
        protected void FindLocations(object sender, EventArgs e)<br>
        {<br>
<font class="Apple-tab-span" style="white-space: pre; ">            </font>//get data from drop downs<br>
            ServerSessionCache.FoundLocations = PerformSearch(sCustomId, gOwnedById, gMaintainedById, gCountyId, gCityId);<br>
            m_oRadGrid.Rebind();<br>
        }<br>
<br>
<br>
        #endregion<br>
<br>
<br>
        #region RadGrid Logic<br>
<br>
<br>
        public static IList<Location> GetFoundLocations(string sSortColumns, int iMaxRecords, int iStartRecord)<br>
        {<br>
            return ServerSessionCache.FoundLocations;<br>
        }<br>
<br>
<br>
        #endregion<br>
<br>
<br>
        #endregion<br>
<br>
<br>
        #region Methods<br>
<br>
<br>
        public IList<Location> PerformSearch(string sCustomId, Guid gOwnedById, Guid gMaintainedById, Guid gCountyId, Guid gCityId)<br>
        {<br>
            //use data to perform query, store in oLocations<br>
<br>
<br>
            return oLocations;<br>
        }<br>
<br>
<br>
        #endregion<br>
    }<br>
}
Richard
Top achievements
Rank 1
 answered on 19 Dec 2011
2 answers
139 views
I have multiple grids, and the user can drag and drop rows from one to another.  I am making use of OnRowDropping to call webservices, trigger rebinds, etc.  All is working perfectly....  except when the user drops a row from one grid on to an empty grid containing only the NoRecordsTemplate.  The event is raised, but the "args" object contains null for all the "target" values....  i.e.

 

_targetItemTableView, etc.   The destinationHtmlElement is populated, so I use this to navigate backwards to find the Grid, but the lack of "target" info in this situation seems to be a bug to me.

Dave

Dave
Top achievements
Rank 1
 answered on 19 Dec 2011
1 answer
176 views

Hello,

About generated combined style sheet file. 
I expected that my custom styles will be load after a telerik built in styles. but there is it first. 
How do I load it after build in styles?


<
telerik:RadStyleSheetManager runat="server" ID="RadStyleMn" >
    <CdnSettings TelerikCdn="Disabled" />
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/Skins/CustomRadTreeVew.Web20.css"  />
    </StyleSheets>
</telerik:RadStyleSheetManager>


Simon
Telerik team
 answered on 19 Dec 2011
9 answers
182 views
Is there a way to set AllowDrop and AllowDrag for load on demand nodes?  I dont see those two properties in RadTreeNodeData.
macy
Top achievements
Rank 1
 answered on 19 Dec 2011
5 answers
165 views
I need the ability to style each footer item with specific criteria from the parent node. The attached screen shot is partially what I need, but instead of having the root node be formatted on every total line, I need each aggregate to be formatted with that parent's name. Is this possible?
Derek
Top achievements
Rank 1
 answered on 19 Dec 2011
3 answers
243 views
I have a TreeList with an Edit Form Template. How do I go about finding those controls when the edit form is opened? With the RadGrid I could find these controls by using the ItemDataBound event and checking if the item is in edit mode. Is there a similar way to do this with the TreeList control?

Thanks.
William
Top achievements
Rank 1
 answered on 19 Dec 2011
1 answer
165 views
Hi
I have a problem with scriptmanager .I have a RadButton and a ScriptManager in asp page when i run my program i receive this error:

Control 'RadScriptManager1' of type 'RadScriptManager' must be placed inside a form tag with runat=server.

i use asp.net ajax version 2011 and my html code  is here




<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ Page language="C#" %>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>سیستم جامع</title>
<link title="Khamenei.ir Search" href="http://farsi.khamenei.ir/opensearch.xml" type="application/opensearchdescription+xml" rel="search" />


<link href="http://farsi.khamenei.ir/favicon.ico" rel="shortcut icon" />
<meta content="Persian, FA" name="Language" id="Language" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="menu.css" />
<link rel="stylesheet" type="text/css" href="search.css" />
<link rel="stylesheet" type="text/css" href="../StyleStandars/SS.css" />
</head>
<body class="HomeBody">
      


        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
 </telerik:RadScriptManager>  


    


<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -26px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;">
<div class="menu" align="right"><ul id="ldd_menu" class="ldd_menu">
<li>
              
                <asp:Label runat="server"> 
    </asp:Label>
<span class="ss"> سیستم خدمات شهری</span><!-- Increases to 510px in width-->
<div class="ldd_submenu">
                    <div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px"></div></div>
<div class="loginContainer">
                         <p  class="logneHeader" style="text-align:center;" >ورود به سامانه خدمات شهری  </p>
                          <table>
                        
                          <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
                          <td>نام کاربری</td>
                          <td>
                       
                              <telerik:RadTextBox ID="txtUserName"  CssClass="btn" runat="server">
                              </telerik:RadTextBox>
                              </td>
                          </tr>
                          <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
                          <td>
                          کلمه عبور
                          </td>
                          
                          <td>
                              <telerik:RadTextBox ID="RadTextBox2"  runat="server">
                              </telerik:RadTextBox></td>
                          </tr>
                             <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
                          <td>
                           سال کاری
                          </td>
                          
                          <td>
                              <telerik:RadComboBox ID="cmbWorkingYear" Width="130px"  runat="server">
                              </telerik:RadComboBox>
                             </td>
                          </tr>
                          <tr style="height:40px; vertical-align:bottom">
                          <td dir="rtl">
                              <telerik:RadButton ID="btnLogin" CssClass="btn" runat="server" Height="24px"  Text="ورود به سیستم">
                              <Icon PrimaryIconWidth="24px"  PrimaryIconHeight="24px" PrimaryIconTop="3px" PrimaryIconLeft="3px"
                         PrimaryIconUrl="../StyleStandars/Images/users_into.png" />
                                 
                              </telerik:RadButton>
                          </td>
                          <td></td>
                          </tr>
                          
                          </table>  
                        </div>
</div>
</li>
<li>
<span class="ss">سیستم سازمان پارکها وفضای سبز</span>
<div class="ldd_submenu">
                    <div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px">سیستم جامع خیلی خوب ! نظر تو چیه؟</div></div>
<div class="loginContainer">
                         <p  class="logneHeader">ورود به سیستم : </p>
                          <table>
                        
                          <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
                          <td>نام کاربری</td>
                          <td>
                              <telerik:RadTextBox ID="RadTextBox1"  CssClass="btn" runat="server">
                              </telerik:RadTextBox></td>
                          </tr>
                          <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
                          <td>
                          کلمه عبور
                          </td>
                          
                          <td>
                              <telerik:RadTextBox ID="RadTextBox3"  runat="server">
                              </telerik:RadTextBox></td>
                          </tr>
                             <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
                          <td>
                           سال کاری
                          </td>
                          
                          <td>
                              <telerik:RadComboBox ID="RadComboBox1"  runat="server">
                              </telerik:RadComboBox>
                             </td>
                          </tr>
                          <tr style="height:40px; vertical-align:bottom">
                          <td>
                              <telerik:RadButton ID="RadButton2" runat="server"  Text="ورود به سیستم">
                              </telerik:RadButton>
                          </td>
                          <td></td>
                          </tr>
                          
                          </table>  
                        </div>
</div>
</li>
<li>
<span class="ss">سیستم  ارزشیابی پیمانکاران</span>

<div class="ldd_submenu">
                    <div style="width:90%;margin:0 auto;height:40px;background-image:url(back.jpg);display:none"><div style="margin-top:10px;color:White;padding:5px">سیستم جامع خیلی خوب ! نظر تو چیه؟</div></div>
<div class="loginContainer">
                         <p  class="logneHeader">ورود به سامانه خدمات شهری : </p>
                          <table>
                        
                          <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;" >
                          <td>نام کاربری</td>
                          <td>
                              <telerik:RadTextBox ID="RadTextBox4"  CssClass="btn" runat="server">
                              </telerik:RadTextBox></td>
                          </tr>
                          <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
                          <td>
                          کلمه عبور
                          </td>
                          
                          <td>
                              <telerik:RadTextBox ID="RadTextBox5"  runat="server">
                              </telerik:RadTextBox></td>
                          </tr>
                             <tr style="height:30px; vertical-align:middle; font:tahoma; font-size:9pt; font-weight:bold; font-style:normal; color:White;">
                          <td>
                           سال کاری
                          </td>
                          
                          <td>
                              <telerik:RadComboBox ID="RadComboBox2"  runat="server">
                              </telerik:RadComboBox>
                             </td>
                          </tr>
                          <tr style="height:40px; vertical-align:bottom">
                          <td>
                              <telerik:RadButton ID="RadButton3" runat="server"  Text="ورود به سیستم">
                              </telerik:RadButton>
                          </td>
                          <td></td>
                          </tr>
                          
                          </table>  
                        </div>
</div>
</li>
             
               
</ul></div>
<div class="headerBgColor" align="right">
    <form id="ui_element" runat="server">
                    <p>
                       
</p>

                </form>






</div>
</div>
</div>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -115px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;line-height:13px">






<div style="height:260px;width:957px;"  class="bgColor" ></div>






</div>










</div>
<div style="width: 100%;background: url(themes/fa_def/images/ver2/ramadan_side_bg.gif) repeat-x center -373px" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;position:relative">




<div class="bgColor" style="width:957px;overflow: hidden;padding-top:4px" align="right">


</div>










</div>
</div>
<div style="width: 100%;" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;position:relative">
<div style="width:957px;padding-top:10px;overflow: hidden;" class="bgColor" align="right">
</div>








</div>
</div>
<div style="width: 100%;" align="center">
<div style="width:977px;background: url(themes/fa_def/images/ver2/bg_side_body.gif) repeat-y;line-height:13px">
<div class="bgColor" style="width:957px;height:159px;overflow: hidden" align="right">
</div>






</div>
</div>
<div style="width: 100%;margin-top:0px;height:10px;font-size:0px;" align="center">
<div style="width:977px;height:10px;background: url(themes/fa_def/images/ver2/trans_ui.gif) no-repeat 0px -70px;"></div>
</div>
<div style="width: 100%;margin-top:0px" align="center">
<div style="width:957px;overflow: hidden;text-align:center" align="right">
<div class="footer">


</div>
</div>
</div>
<div style="width:960px; margin:27px auto 4px auto; height:26px;">
<div class="footerLogo18x">


</div>
</div>
<div style="width: 100%;margin-top:0px" align="center">
<div style="width:957px;overflow: hidden;" align="right">
<div class="footerCopyright">    


تمامی حقوق این برنامه متعلق به شرکت اریکا می باشد
</div>
</div>
</div>




<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
        <script type="text/javascript">
            $(function () {
                /**
                * the menu
                */
                var $menu = $('#ldd_menu');


                /**
                * for each list element,
                * we show the submenu when hovering and
                * expand the span element (title) to 510px
                */
                $menu.children('li').each(function () {
                    var $this = $(this);
                    var $span = $this.children('span');
                    $span.data('width', $span.width());


                    $this.bind('mouseenter', function () {
                        $menu.find('.ldd_submenu').stop(true, true).hide();
                        $span.stop().animate({ 'width': '410px' }, 300, function () {
                            $this.find('.ldd_submenu').slideDown(300);
                        });
                    }).bind('mouseleave', function () {
                        $this.find('.ldd_submenu').stop(true, true).hide();
                        $span.stop().animate({ 'width': $span.data('width') + 'px' }, 300);
                    });
                });
            });
        </script>
        <script type="text/javascript">
            $(function () {
                /**
                * the element
                */
                var $ui = $('#ui_element');


                /**
                * on focus and on click display the dropdown, 
                * and change the arrow image
                */
                $ui.find('.sb_input').bind('focus click', function () {
                    $ui.find('.sb_down')
  .addClass('sb_up')
  .removeClass('sb_down')
  .andSelf()
  .find('.sb_dropdown')
  .show();
                });


                /**
                * on mouse leave hide the dropdown, 
                * and change the arrow image
                */
                $ui.bind('mouseleave', function () {
                    $ui.find('.sb_up')
  .addClass('sb_down')
  .removeClass('sb_up')
  .andSelf()
  .find('.sb_dropdown')
  .hide();
                });


                /**
                * selecting all checkboxes
                */


                $ui.find('.sb_dropdown').find('label[for="all"]').prev().bind('click', function () {
                    $(this).parent().siblings().find(':checkbox').attr('checked', this.checked).attr('disabled', this.checked);
                });
            });
        </script>
</body></html>
please help to me.
thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Dec 2011
3 answers
173 views
Hi all,

I have a RadTreeView in my app and I need to change a specific node text. I am trying the following: (RadTreeView name: CriteriaTree)

((RadTreeNode)CriteriaTree.FindNodeByValue("20")).Text = "Node Text";

But it's not working.

Any thoughts?

Thanks,
Bruno
Bozhidar
Telerik team
 answered on 19 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?