Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
181 views
Hello,

i have following scenario: RadGrid with three columns. The first one is Template column with checkbox inside it. The second one is combobox and the last one is textbox column. I want to show the combo and the textbox column when an user changes the state of checkbox, but without sending the data to server.

Is is possible to do it on client side? When I set the value of Visible property to false of these two last columns, their content is not rendered in browser, so there must be (I hope :)) some different way how to accomplish this task.

So, again in a few words: The checkbox is checked = the textbox and combobox columns are editable; checkbox is unchecked = these two columns are not visible.

Thank you for your help.
Sebastian
Telerik team
 answered on 12 May 2009
1 answer
124 views
RadGrid Multi row edit popup not working while adding this tag
<ClientEvents OnGridCreated="GridCreated" /> inside the <ClientSettings>
what was the readson?
Pavlina
Telerik team
 answered on 12 May 2009
2 answers
151 views
i'm binding an hierarchical grid with a custom collection class of data with a nested collection...
my collection looks similar to this
-ID
-Type
-Description
+Items
         ID
         Type
          Description

so i bind the grid to the class then i use the itemdatabind event to bind the detailtable to my [Items]...i want to bind everything upfront so navigating through the 2nd level is quick...but when i expand a row, there is nothing appearing in the detailtable...where are my items?

am i taking the wrong approach to this? 


Pavlina
Telerik team
 answered on 12 May 2009
1 answer
207 views
Good Day!
 
                 ask for help on adding radcombobox programmatically correct if my term is not on the right term,, here's the scenario i have on combobox on my page and one add button..when user click the add button another combobox will be added to the page and soon..how can do that..

sample codes is highly appreciated

thanks to all
Princy
Top achievements
Rank 2
 answered on 12 May 2009
2 answers
85 views
Hi

We are facing some issues in following properties of RadGrid. These properties are set but are not reflcted on UI.

MasterTableView:
MasterTableView.AlternatingItemStyle.Width
MasterTableView.AlternatingItemStyle.BorderWidth
MasterTableView.AlternatingItemStyle.BorderStyle
MasterTableView.AlternatingItemStyle.BorderColor
MasterTableView.FooterStyle.BorderWidth
MasterTableView.FooterStyle.Width


MasterTableView.FooterStyle.BorderStyle
MasterTableView.FooterStyle.BorderColor
MasterTableView.HeaderStyle.CssClass
MasterTableView.ItemStyle.Width
MasterTableView.ItemStyle.BorderStyle
MasterTableView.ItemStyle.BorderWidth
MasterTableView.ItemStyle.BorderColor

Column:
CurrentFilterfunction
CurrentFilterValue
ItemStyle.VerticalAlign

Can you please look into these and let us know if these are  not working or there is any other way to achieve this?

Please mark a copy to chetan.mehta@cognizant.com

Regards
Chetan Mehta
Frameworks Team
marketRx (A Cognizant company)

P.S: We have purchased Telerik suite but raising ticket here because subscription period has expired.
cmehta
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
80 views
Hi all,
Using the editor within an edit template in RadGrid shows horizontal scrollbar at the bottom in Firefox 3. Setting the height and width didnt seem to make the scrollbar go away. It works fine in Internet Explorer 6 and 7 tho.
Is this expected?

Thanks
Rumen
Telerik team
 answered on 12 May 2009
2 answers
84 views
Hi

I am using the grid with SelfHierarchy and it works fine. I tried to use the SelfHierarchy option on a grid with dynamically created columns. I'm creating and adding the columns dynamically in the Page_Load event handler, and after that i'm setting the grid's data source. The result I'm getting is only the first level- no children at all..  The children are not bound at all- i'm hitting the

ItemDataBound event handler only a few times (same number as first level records),

All properties of both grids are exactly the same. How can i get the self hierarchy to work on the grid with the dynamic columns?

TNX!
tali

 

tali
Top achievements
Rank 1
 answered on 12 May 2009
2 answers
324 views
I have a problem with a web page I am developing. Some of the controls on the page are only visible after the user press a button.
One of these is a RadDatePicker.
If the user does some action on the page that triggers a postback when the RadDatePicker is hidden, and then press the button to display it again, then the image on the RadDatePicker is not shown. Instead there will be a text: "Open the calendar popup".

The following sample code demonstrates the problem:
aspx. file:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CalendarTest._Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %>
<!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 runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release" />
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </div>
    <div>
        <rad:RadAjaxManagerProxy runat="server">
            <AjaxSettings>
                <rad:AjaxSetting AjaxControlID="btnToggleSearchMode" EventName="Click">
                    <UpdatedControls>
                        <rad:AjaxUpdatedControl ControlID="picker" LoadingPanelID="LoadingPanel1" />
                    </UpdatedControls>
                </rad:AjaxSetting>
            </AjaxSettings>
        </rad:RadAjaxManagerProxy>
        <div>
            <rad:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="true" LoadingPanelID="LoadingPanel1">
                            <asp:LinkButton ID="btnToggleSearchMode" runat="server" OnClick="btnToggle_Click"
                                Text="toggle" />
                                <rad:RadDatePicker ID="picker" runat="server" Visible="false" />
            </rad:RadAjaxPanel>
            <rad:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Skin="Office2007" MinDisplayTime="500" />
        </div>
    </div>
    </form>
</body>
</html>


Codebehind:
using System;
using System.Web.UI;

namespace CalendarTest
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnToggle_Click(object sender, EventArgs e)
        {
            picker.Visible = !picker.Visible;
        }

    }
}


If the button is pressed while the datepicker is hidden, then the datepicker will not display correctly when the toggle is clicked.

Any help appreciated.

Olav
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
118 views
I'm using radwindow manager in radgrid to open the Note Detail .
getting error that the MasterTableView.Rows is null or not an object.

 <radG:RadGrid ID="ManagerRadGrid" runat="server" AllowPaging="true" PageSize="50"
                                         GridLines="None" AutoGenerateColumns="False" MasterTableView-EditMode="EditForms"
                                         Skin="WebGrid20" AllowCustomPaging="false" EnableViewState="true" HeaderStyle-Wrap="true"
                                         OnItemCreated="ManagerRadGrid_ItemCreated" EnableAJAX="true" OnUpdateCommand="ManagerRadGrid_UpdateCommand"
                                         OnNeedDataSource="ManagerRadGrid_NeedDataSource" OnItemDataBound="ManagerRadGrid_ItemDataBound"
                                         OnPreRender="ManagerRadGrid_PreRender"  OnPageIndexChanged="ManagerRadGrid_PageIndexChanged" >
                                         <%--<SelectedItemStyle BackColor="#999999"  AlternatingItemStyle-BackColor="AliceBlue"  />--%>
                                         <MasterTableView ShowFooter="True" DataKeyNames="KeyNum">
                                        
                                             <Columns>
                                            
                                        
                                                
                                              
                                           
            <radG:GridTemplateColumn DataType="System.Decimal"  Visible ="false"   UniqueName="SP_MostRecentTemplateColumns">
                                                     <HeaderTemplate>
                                                         <table id="tblperfratings1" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>                                                            
                                                               
                                                                <%-- <td id="Td3" align="Center" style="background-color: #92B4E1; color: White; width :70px;" runat="server"
                                                                     visible="True">
                                                                     <asp:Label ID="lblguideline" style="text-align:center" runat="server" Text="Max Salary Guideline" Width="70px"
                                                                         SkinID="ModelGridHeadLabel"></asp:Label></td>--%>
                                                             </tr>
                                                             <tr>                                                              
                                                              
                                                                <%-- <td id="tdsalguid" runat="server" align="center" style="font-family: Arial; color: White;
                                                                     background-color: #92B4E1; width: 50px;">
                                                                     %</td>--%>
                                                             </tr>
                                                         </table>
                                                     </HeaderTemplate>
                                                     <ItemTemplate>
                                                         <table id="tbltratings1" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>
                                                                
                                                                <%-- <td id="tdguideline" runat="server" align="left" style="width: 70px; border-width: 0px;
                                                                     text-align: center;">
                                                                     <asp:Label ID="txtguideline"  runat="server" Text='<%# Eval("MeritGuideline") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Width="50px"></asp:Label></td>--%>
                                                             </tr>
                                                         </table>
                                                     </ItemTemplate>
                                                  
                                                     <HeaderStyle BackColor="#92B4E1" HorizontalAlign="Center" ForeColor="White"  Width ="70px"/>
                                                                <ItemStyle Width ="70px"  />
                                                 </radG:GridTemplateColumn>
            
                                            <%-- <radG:GridTemplateColumn  DataType="System.Decimal"  Visible ="false"  UniqueName ="TemplateColumnLine" >
                                           
                                                 </radG:GridTemplateColumn>
                                                 --%>
                                                <radG:GridTemplateColumn DataType="System.Decimal" UniqueName="RecommendationTemplateColumn">
                                                     <HeaderTemplate>
                                                         <table id="tblManagerDiscretion" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>
                                                             <td id="tdManager" runat="server" colspan="2" align="center" style ="width:130px;">
                                                                     <asp:Label ID="lblpctincrease" runat="server" Text="Merit Increase" Style="text-align: center;"
                                                                         SkinID="ModelGridHeadLabel"></asp:Label></td>
                                                                 <td id="Td8" align="Center" runat="server" visible="true" style =" width :80px;">
                                                                     <asp:Label ID="lblbonusguideline" runat="server" Visible="true" Text="Bonus Guideline"
                                                                         Style="text-align: center;" SkinID="ModelGridHeadLabel"></asp:Label></td>
                                                                 <td id="tdbonus" runat="server" colspan="2" align="center" style ="width:140px;" >
                                                                     <asp:Label ID="lblpctbonus" runat="server" Text="Bonus Discretion" Style="text-align: center;"
                                                                         SkinID="ModelGridHeadLabel"></asp:Label></td>
                                                             </tr>
                                                             <tr>
                                                                 <td id="Td7" align="center" style="width: 50px;" runat="server" visible="true">
                                                                     <font color="white"><b>%</b></font></td>
                                                                 <td id="Td4" align="center" style="width: 80px;" runat="server" visible="true">
                                                                     <asp:Label runat="server" ID="lblUSD2" Text="$" ForeColor="white"></asp:Label></td>
                                                                 <td id="tdbonguid" runat="server" align="center" style="width: 50px;">
                                                                     <font color="white"><b>%</b></font>
                                                                 </td>
                                                                 <td id="Td9" align="center" runat="server" visible="true" style="width: 50px;">
                                                                     <font color="white"><b>%</b></font></td>
                                                                 <td id="Td10" align="center" runat="server" visible="true" style="width: 80px;">
                                                                     <asp:Label runat="server" ID="lblUSDBonus" Text="$" ForeColor="white"></asp:Label></td>
                                                                 <%-- <td id="Td5" align="center"  runat="server"  visible="True"><asp:Label runat="server" ID="lblUSD1" Text="USD" ForeColor="white"></asp:Label></td>--%>
                                                             </tr>
                                                         </table>
                                                     </HeaderTemplate>
                                                     <ItemTemplate>
                                                         <table id="tblitem" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>
                                                            <%--<td  id="tdmerit"  runat ="server" style="border-width: 0px; ">--%>
                                                           <%-- <table >
                                                            <tr> --%>                                                        
                                                               <td align="center" style="width: 50px; border-width: 0px;">
                                                                     <asp:TextBox TabIndex="1" AutoPostBack="false" ID="txtpctincrease" runat="server"
                                                                         Text='<%# Eval("Incr_PCT") %>' Width="40px" Height="13px" Font-Size="11px" Font-Names="Ariel"  ToolTip='<%# Eval("EmployeeName") %>'
                                                                          Visible="True" Font-Bold="true" Style="border-style: groove;" ></asp:TextBox>
                                                                     <asp:Label ID="lblpctincrease" runat="server" Width="50px" Text='<%# Eval("Incr_PCT")%>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="True"
                                                                         Font-Bold="true"></asp:Label>
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="1" ID="txtpctincreaselocal" runat="server"
                                                                         Text='<%# Eval("Incr_PCT") %>' Width="40px" Height="13px" Font-Size="11px" Font-Names="Ariel"  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Wrap="True" Visible="false" Font-Bold="true" Style="border-style: groove;"></asp:TextBox>
                                                                </td>
                                                                 <td align="center" style="width: 80px; border-width: 0px;">
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="2" ID="txtincrease" runat="server" Text='<%# Eval("Incr_Amt_USD") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Width="60px" Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="True"
                                                                         Font-Bold="true" Style="border-style: groove;" ></asp:TextBox>
                                                                     <asp:Label ID="lblincrease" runat="server" Width="60px" Text='<%# Eval("Incr_Amt_USD","{0: #,##}")%>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="True"
                                                                         Font-Bold="true"></asp:Label>
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="2" ID="txtincreaselocal" Visible="false"
                                                                         runat="server" Text='<%# Eval("Incr_Amt_LOCAL","{0: #,##}") %>' Width="60px"  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Font-Bold="true"
                                                                         Style="border-style: groove;"></asp:TextBox>
                                                                     <asp:Label ID="lblincreaselocal" runat="server" Width="60px" Text='<%# Eval("Incr_Amt_LOCAL","{0: #,##}")%>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Visible="false"
                                                                         Font-Bold="true"></asp:Label>
                                                              </td>
                                                             <%--   </tr>
                                                            </table>--%>
                                                              <%-- </td>--%>
                                                                 <td id="tdbonusguideline" runat="server" align="left" style="width: 80px; border-width: 0px;
                                                                     text-align: center;">
                                                                     <asp:Label ID="txtbonusguideline" runat="server" Text='<%# Eval("BonusGuideline") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Width="80px" ></asp:Label>
                                                                 </td>
                                                                 <td id="tdpctbonus" runat="server" align="center" style="width: 50px; border-width: 0px;">
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="1" ID="txtpctBonus" runat="server" Text='<%# Eval("Bonus_PCT")%>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Width="40px" Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Font-Bold="true"
                                                                         Style="border-style: groove;"></asp:TextBox>
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="1" ID="txtpctBonuslocal" Visible="false"
                                                                         runat="server" Text='<%# Eval("Bonus_PCT") %>' Width="40px" Height="13px" Font-Size="11px"  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Font-Names="Ariel" Wrap="True" Font-Bold="true" Style="border-style: groove;"></asp:TextBox>
                                                                 </td>
                                                                 <td id="tdbonus" runat="server" align="center" style="width: 90px; border-width: 0px;">
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="2" ID="txtbonus" runat="server" Text='<%# Eval("Bonus_Amt_USD","{0: #,##}")%>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Width="40px" Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Font-Bold="true"
                                                                         Style="border-style: groove;"></asp:TextBox>
                                                                     <asp:TextBox AutoPostBack="false" TabIndex="2" ID="txtbonuslocal" runat="server"
                                                                         Visible="false" Text='<%# Eval("Bonus_Amt_LOCAL","{0: #,##}")%>' Width="40px"  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Height="13px" Font-Size="11px" Font-Names="Ariel" Wrap="True" Font-Bold="true"
                                                                         Style="border-style: groove;"></asp:TextBox>
                                                                 </td>
                                                             </tr>
                                                         </table>
                                                     </ItemTemplate>
                                                     <FooterTemplate>
                                                         <table id="tblfootincrease" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>
                                                                 <td align="left" style="width: 80px; border-width: 0px;">
                                                                     <asp:Label runat="server" Visible="false" ID="foopctincrease" Style="text-align: right;" Text="0"></asp:Label>
                                                                    
                                                                 </td>
                                                                 <td align="left" style="width: 80px; border-width: 0px;">
                                                                     <asp:Label runat="server" Visible="false"  ID="fooincrease" Text="0" Style="text-align: center;"></asp:Label>
                                                                    
                                                                 </td>
                                                                 <td id="tdftrguideline" runat="server" align="left" style="width: 50px; border-width: 0px;">
                                                                     <asp:Label ID="foobonusguideline" Visible="false"  runat="server" Text="0" Style="text-align: center;"></asp:Label></td>
                                                                 <td id="tdftrpctbonus" runat="server" align="left" style="border-width: 0px; width: 50px;">
                                                                     <asp:Label runat="server" ID="foopctbonus" Visible="false"  Text="0" Style="text-align: center;"></asp:Label>
                                                                 </td>
                                                                 <td id="tdftrbonus" runat="server" align="left" style="border-width: 0px; width: 80px;">
                                                                     <asp:Label runat="server" ID="foobonus" Visible="false"  Text="0" Style="text-align: center;"></asp:Label>
                                                                 </td>
                                                             </tr>
                                                         </table>
                                                     </FooterTemplate>
                                                     <HeaderStyle BackColor="#829FC9"  />
                                                     <FooterStyle BackColor="#E8E8E8" />
                                                  
                                                 </radG:GridTemplateColumn>
                                              
                                                 <radG:GridTemplateColumn DataType="System.Decimal" UniqueName="RecommendationTemplateColumn1">
                                                     <HeaderTemplate>
                                                         <table id="tNewAnnualSalary" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>
                                                                 <td id="tdNewAnnualSalary" style="width: 80px;" runat="server" align="center">
                                                                     <asp:Label ID="lblnewannual" runat="server" Text="New Annual Salary" SkinID="ModelGridHeadLabel"></asp:Label></td>
                                                           
                                                             </tr>
                                                         </table>
                                                     </HeaderTemplate>
                                                     <ItemTemplate>
                                                         <table id="tblnewannual" runat="server" cellpadding="0" cellspacing="0">
                                                             <tr>
                                                                 <td align="center" style="width: 80px; border-width: 0px;">
                                                                     <%--<asp:Label ID="txtnewannual" runat="server" Visible="false"  Text='<%# Eval("New_Annual_Salary_USD") %>' Width="80px" style="text-align:center;"></asp:Label>  --%>
                                                                     <asp:TextBox ID="txtnewannual" AutoPostBack="false" BorderStyle="none" ReadOnly="true"
                                                                         BackColor="transparent" runat="server" Height="13px" Width="80px" Font-Size="11px"
                                                                         Font-Names="Ariel" Visible="true" Text='<%# Eval("New_Annual_Salary_USD") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Font-Bold="true" ForeColor="black" Enabled="true" Style="text-align: left;"></asp:TextBox>
                                                                     <asp:TextBox ID="txtnewannuallocal" AutoPostBack="false" ReadOnly="true" Visible="false"
                                                                         BorderStyle="none" BackColor="transparent" runat="server" Width="80px" Height="13px"
                                                                         Font-Size="11px" Font-Names="Ariel" Text='<%# Eval("New_Annual_Salary_LOCAL","{0: #,##}") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Font-Bold="true" ForeColor="black" Enabled="true" Style="text-align: left;"></asp:TextBox>
                                                                 </td>
                                                             </tr>
                                                         </table>
                                                     </ItemTemplate>
                                                     <FooterTemplate>
                                                         <table id="tblfooter" runat="server">
                                                             <tr>
                                                                 <td align="left" style="border-width: 0px; width:80px;">
                                                                     <asp:Label ID="foonewannual" runat="server" Text="" Style="text-align: left; width:80px"></asp:Label>
                                                                     <%-- <asp:Label ID="foonewannuallocal" runat="server"  Text="" style="text-align:left;"></asp:Label>--%>
                                                                 </td>
                                                             </tr>
                                                         </table>
                                                     </FooterTemplate>
                                                     <HeaderStyle BackColor="#829FC9" Width ="80px" />
                                                     <FooterStyle BackColor="#E8E8E8" Width ="80px"/>
                                                     <ItemStyle  BorderStyle="None" BorderColor="transparent" BorderWidth="0px" Width ="80px"/>
                                                 </radG:GridTemplateColumn>
                                                 <radG:GridTemplateColumn UniqueName="MemoTemplateColumn" Groupable="False" Visible="false">
                                                     <ItemTemplate>
                                                         <table visible="false">
                                                             <tr>
                                                                 <td align="center">
                                                                     <asp:Label ID="lblxchange" runat="server" Visible="false" Text='<%# Eval("salaryrate") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Style="text-align: center;"></asp:Label>
                                                                          <asp:Label ID="lblbonusrate" runat="server" Visible="false" Text='<%# Eval("bonusrate") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Style="text-align: center;"></asp:Label>
                                                            
                                                                 </td>
                                                                 <td align="center">
                                                                     <asp:Label ID="lblcurrencycode" runat="server" Visible="false" Text='<%# Eval("location") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Style="text-align: center;"></asp:Label>
                                                                     <asp:Label ID="lblcountry" runat="server" Visible="false" Text='<%# Eval("Location") %>'  ToolTip='<%# Eval("EmployeeName") %>'
                                                                         Style="text-align: center;"></asp:Label>
                                                                 </td>
                                                             </tr>
                                                         </table>
                                                     </ItemTemplate>
                                                 </radG:GridTemplateColumn>
                                              
                                                 <radG:GridTemplateColumn UniqueName="MemoTemplateColumn" Groupable="False">
                                                     <HeaderTemplate>
                                                     <table>
                                                     <tr>
                                                     <td style ="width :100px;border-width: 0px;">
                                                      <asp:Label ID="lblcomment" Text="Comment"  Width ="100px" runat="server" SkinID="ModelGridHeadLabel"></asp:Label>
                                                     </td>
                                                     </tr>
                                                     </table>
                                                       
                                                     </HeaderTemplate>
                                                     <ItemTemplate>
                                                     <table>
                                                     <tr>
                                                     <td style ="width:100px;border-width: 0px;">
                                                       <asp:HiddenField ID="hdnupdate" Value="0" runat="server" />
                                                         <asp:HiddenField ID="hdnnewannualsalary" runat="server" />
                                                         <asp:HiddenField ID="hdnsalary" Value='<%# Eval("salaryrate") %>' runat="server" />
                                                             <asp:HiddenField ID="hdnbonusrate" Value='<%# Eval("bonusrate") %>' runat="server" />

                                                        <asp:Label ID="NoteLabel" Visible="false" runat="server" Text='<%# Eval("comment") %>' 
                                                             Style="border-width: 0px; border: 0px;"></asp:Label>
                                                         <img id="NoteImage" width="25" height="25" runat="server" src="../../App_Images/images/Readme.gif"
                                                             alt="Note" style="border-width: 0px; border: 0px;" />
                                                     <asp:Label ID="label1" runat="server" Text="" Visible="true" Style="border: 0px;"></asp:Label>
                                                         <asp:HyperLink ID="NoteLink" Height="22" runat="server" ToolTip='<%# Eval("EmployeeName") %>'  Text="Note"></asp:HyperLink>
                                               
                                                     </td>
                                                     </tr>
                                                     </table>
                                                               
                                                       
                                                     </ItemTemplate>
                                                     <EditItemTemplate>
                                                      <table>
                                                     <tr>
                                                     <td style ="width :100px;border-width: 0px;">
                                                                    <radE:RadEditor ID="REditornotes" TabIndex="0" ToolsFile="~/RadControls/Editor/AjaxSpell.xml"
                                                             ShowSubmitCancelButtons="False" runat="server" Height="100px" Html='<%# Eval("locationcode") %>'>
                                                         </radE:RadEditor>
                                                         </td>
                                                         </tr>
                                                         </table>
                                                     </EditItemTemplate>
                                                     <HeaderStyle BackColor="#829FC9"  Width ="100px"/>
                                                     <ItemStyle BorderWidth="0px"  BorderStyle="None" BorderColor="transparent"  Width ="100px"/>
                                                 </radG:GridTemplateColumn>
                                                
                                                    <radG:GridTemplateColumn UniqueName="HistoryTemplateColumn" Groupable="False">
                                                     <HeaderTemplate>
                                                      <table>
                                                       <tr>
                                                       <td style ="width :100px;border-width: 0px;">
                                                         <asp:Label ID="lblhistory" Text="History " SkinID="ModelGridHeadLabel" runat="server"></asp:Label>
                                                         </td>
                                                         </tr>
                                                         </table>
                                                     </HeaderTemplate>
                                                     <ItemTemplate>
                                                     <table>
                                                       <tr>
                                                       <td style ="width :100px;border-width: 0px;">
                                                      <asp:Label ID="Historylabel" Visible="false" runat="server" Text='<%# Eval("comment") %>' 
                                                             Style="border-width: 0px; border: 0px;"></asp:Label>
                                                        
                                                         <asp:Label ID="label4" runat="server" Text="" Visible="true" Style="border: 0px;"></asp:Label>
                                                         <asp:HyperLink ID="HistoryLink"  Height="22" runat="server" ToolTip='<%# Eval("EmployeeName") %>'  Text="History"></asp:HyperLink>
                                                 </td>
                                                  </tr>
                                                  </table>
                                                     </ItemTemplate>   
                                                     <EditItemTemplate>
                                                     <table>
                                                       <tr>
                                                       <td style ="width :100px;border-width: 0px;">
                                                          <radE:RadEditor ID="REditornotes" TabIndex="0" ToolsFile="~/RadControls/Editor/AjaxSpell.xml"
                                                                 ShowSubmitCancelButtons="False" runat="server" Height="100px" Html='<%# Eval("locationcode") %>'>
                                                             </radE:RadEditor>
                                                             </td>
                                                             </tr>
                                                             </table>
                                                         </EditItemTemplate>
                                                         <HeaderStyle BackColor="#829FC9" Width="100px" />
                                                       
                                                         <ItemStyle BorderWidth="0px" Width ="100px" />
                                                   
                                                     </radG:GridTemplateColumn>
                                             </Columns>
                                             <ExpandCollapseColumn Visible="False">
                                                 <HeaderStyle Width="19px" />
                                             </ExpandCollapseColumn>
                                             <RowIndicatorColumn Visible="False">
                                                 <HeaderStyle Width="20px" />
                                             </RowIndicatorColumn>
                                             <EditFormSettings>
                                                 <EditColumn UniqueName="EditCommandColumn1">
                                                 </EditColumn>
                                             </EditFormSettings>
                                         </MasterTableView>
                                       
                                      <ClientSettings >
                                             <Scrolling AllowScroll="True" ScrollHeight="250px" SaveScrollPosition ="true" UseStaticHeaders="True" />
                                            <Selecting AllowRowSelect="True"  />
                                       <ClientEvents OnGridCreated="GridCreated" />
                                         </ClientSettings>
                          
<PagerStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                             Font-Underline="False" HorizontalAlign="Left" Mode="NextPrevAndNumeric" Wrap="True"
                                             AlwaysVisible="True" />
                                         <HeaderStyle Wrap="True" />
                                     </radG:RadGrid>
                             

Shinu
Top achievements
Rank 2
 answered on 12 May 2009
1 answer
166 views
Hello ,

             I have 4 columns in  a Rad grid all are RAD numeric text fields . I have handlers for onfocus , onblur event for all textboxes . I want to test a condition on 2nd cells textbox blur event and restrict the focus to go to the next cell or textbox .

            How can i achive it in the client side ?

Thank you for your help .
Iana Tsolova
Telerik team
 answered on 12 May 2009
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?