Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
65 views
Any way to set "all" Telerik's controls animations duration to zero or disable all animations without manually setting each control's animation at a time?
Rumen
Telerik team
 answered on 15 Apr 2011
3 answers
211 views
I have treelist, which have multiple pages.
User can select some items on first page, using pager can move to next page and select some other records.

On save, I am trying to read the Treelist's Selected Items, property, its giving only records selected on the current page and not from the last page.

Is it by design or do I need to configure some properties to achieve this ?

While moving between pages, selection is preserved.
Veli
Telerik team
 answered on 15 Apr 2011
1 answer
98 views
I have a ASP.NET / C# Web application that is using a Master / Content page methodology. I have attached the files for both the master page and the specific content page.

I am trying to ajaxify the RadGrid and EditForm/TabStrip of my attached content page and I am having problems.

I added the RadAjaxManager to the BackOffice.Master page.
I then added the RadAjaxManagerProxy to the content page and tried to reference the EditForm and the TabStrip of the Edit form.

When I render the pages, the master page renders with the menu, I select the MyLocalDIDs content page from the menu and the grid renders properly.
I then select the EditColumn via the image file referenced but the EditForm that is defined under the FormTemplate of the EditFormSettings does not pop up. If I remove the RadAjaxManager and RadAjaxManagerProxy then the EditForm pops up but of course their is no ajax support.

What I am trying to get done is have ajax support for the EditForm controls and the Tabs under the TabStrips and have the Ajax Loading Panel work as well.
Any help would be appreciated

Jerry Eddy

Source Code Follows:

BackOffice.Master - Master Page
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="BackOffice.master.cs" Inherits="VIBackOffice.BackOffice" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>VoIP Innovations Back Office</title>
    <link rel="stylesheet" type="text/css" href="Styles/BackOfficeStyle.css" />
    <link rel="stylesheet" type="text/css" href="Styles/standard.css" />


    <link href="VIBackOfficeSkin/Grid.VIBackOfficeSkin.css" rel="stylesheet" type="text/css" />
    <link href="VIBackOfficeSkin/Input.VIBackOfficeSkin.css" rel="stylesheet" type="text/css" />
    <link href="VIBackOfficeSkin/Slider.VIBackOfficeSkin.css" rel="stylesheet" type="text/css" />
    <link href="VIBackOfficeSkin/Calendar.VIBackOfficeSkin.css" rel="stylesheet" type="text/css" />
    <link href="VIBackOfficeSkin/Menu.VIBackOfficeSkin.css"  rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.5.min.js" type="text/javascript"></script>
    <script src="Scripts/common.js" type="text/javascript"></script>
    <asp:ContentPlaceHolder ID="HeadPlaceHolder" runat="server"></asp:ContentPlaceHolder>
</head>
<body>
<div id="container">
  <form id= "form1" runat="server">
    <%
        VIBackOffice.AccountInfo accountInfo = (VIBackOffice.AccountInfo)Session[VIBackOffice.Constants.ACCOUNT_INFO];
        var seclevelck = Request.Cookies["VOIP" + accountInfo.getSecLevel()];
        var seclevelGod = (seclevelck == null) ? "" : seclevelck[VIBackOffice.Constants.SEC_GOD];
        var superadmin = Request.Cookies["VOIP" + VIBackOffice.Constants.SEC_SUPER];
        var superadminRealm = (superadmin == null) ? "" : superadmin[VIBackOffice.Constants.CK_REALM];
        var isSuperadmin = VIBackOffice.Constants.SEC_SUPER.Equals(accountInfo.getSecLevel());
    %>
    <table id="header">
      <tr>
        <td><asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/Images/VITitanium.jpg" NavigateUrl="~/welcome.aspx" ></asp:HyperLink></td>
        <td style="vertical-align: top;">
            <div id="login_bar">
                    <span class="loggedin">Logged in as <b><%= accountInfo.getName() %></b> for <b><%= accountInfo.getCompany() %></b></span>
                    <asp:ImageButton ID="ImageButton1"  style="float: right; padding-right: 10px;" runat="server" ImageUrl="~/Images/Logout.gif" onclick="logout_img_Click1" />
            </div>
            
              <% if (!isSuperadmin) { %>
              <div>
                <table style="float: left;">
                  <tr>
                    <% if (Boolean.TrueString.Equals(seclevelGod) & !"".Equals(superadminRealm)) { %>
                        <td colspan="2"><asp:Button ID="Button2" runat="server" Text="GOD MODE" onclick="Button2_Click" /></td>
                    <% } else { %>
                        <td class="header_label">Account Rep: </td>
                        <td><a href="mailto:<%= accountInfo.getRepEmail() %>"><%= accountInfo.getRepName() %></a></td>
                    <% } %>
                    <td class="header_label">Pre-Paid Balance: </td>
                    <td><%= String.Format("{0:C}", accountInfo.getBalance())%></td>
                  </tr>
                  <tr>
                    <% if (Boolean.TrueString.Equals(seclevelGod) & !"".Equals(superadminRealm)) { %>
                        <td colspan="2">&nbsp;</td>
                    <% } else { %>
                        <td class="header_label">Contact: </td>
                        <td><%= accountInfo.getRepPhone() %></td>
                    <% } %>
                    <td class="header_label">Credit Limit: </td>
                    <td><%= String.Format("{0:C}", accountInfo.getCredit()) %></td>
                  </tr>
                </table>
                <div id="cart_notifier" style="float:right">
           <p class="cart_text" id="cart_text">You have 0 item(s) in your cart.</p>
           </div>
              </div>
              <% } else { %>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
       <table><tr>
                        <td><telerik:RadComboBox CausesValidation="false" ID="ImpersonateComboBox" Runat="server" Width="300px" Height = "300px" ZIndex="10000000"/></td>
           <td><asp:Button runat="server" Text="Impersonate" ID="Button1" OnClick="Button1_Click" style="float: right;" /></td>
                    </tr></table>
             <% } %>
        </td>
      </tr>
    </table>
<div id="navigation">
        <div style="width:900px; margin:0 auto; clear:both; margin-top: 6px;">
            <telerik:RadMenu ID="VIMainMenu" runat="server" EnableEmbeddedSkins="false" Skin="VIBackOfficeSkin" Width="920px" >
            </telerik:RadMenu>
        </div>
</div>
    <div id= "contentframe">
      <div id="content">


        <!-- One RadAjaxManager for all content pages that use this master page -->
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />
        <!-- The skin should be set, else the loading panel is not shown -->
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" BackgroundPosition="Center" Skin="Default" />


        <asp:ContentPlaceHolder ID="ContentPlaceHolder" runat="server"></asp:ContentPlaceHolder>
      </div> 
    </div>
<div id= "footer">
<div id= "footer_table1">
<span id= "CR">Copyright 2011 - VoIP Innovations</span>
</div>
<div id= "footer_table2">
<span class= "footerlink"><a href="#" onclick="window.open('documents/VoIPStreetTOS_11-8-10.pdf', 'Terms', 
'height=600, location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width=600').focus();">
Origination Terms of Service</a></span>
<span class= "footerlink"><a href="#" onclick="window.open('documents/VoIPStreetTOU_11-8-10.pdf', 'Terms', 
'height=600, location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width=600').focus();">Privacy Policy</a></span>
<span class= "footerlink"><a href="#" onclick="window.open('documents/VoIPInnovationsPrivacyPolicy.pdf',  'Terms', 
'height=600, location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width=600').focus();">Termination Terms of Service</a></span>
</div>
</div>
  </form>
</div>
</body>
</html>

MyLocalDIDs.aspx
<%@ Page Title="Local DIDs" Language="C#" MasterPageFile="~/BackOffice.Master" AutoEventWireup="true" CodeBehind="MyLocalDIDs.aspx.cs" Inherits="VIBackOffice.DIDs.MyLocalDIDs" ClientIDMode="AutoID" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">


    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy" runat="server">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="EditTabStrip">
               <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="EditTabStrip" LoadingPanelID="RadAjaxLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="MyLocalDIDsGrid" LoadingPanelID="RadAjaxLoadingPanel" />
               </UpdatedControls>
           </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="MyLocalDIDsGrid">
               <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="MyLocalDIDsGrid" LoadingPanelID="RadAjaxLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="EditTabStrip" LoadingPanelID="RadAjaxLoadingPanel" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
    </telerik:RadAjaxManagerProxy>



    <div>
        <center>
            <telerik:RadGrid ID="MyLocalDIDsGrid" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                PageSize="14" Skin="WebBlue" Height="425px" OnNeedDataSource="MyLocalDIDsGrid_NeedDataSource"
                GridLines="None" AllowFilteringByColumn="True" OnItemDataBound="MyLocalDIDsGrid_ItemDataBound" >
                <MasterTableView DataKeyNames="AccessNumber" Width="100%" PagerStyle-AlwaysVisible="true" CommandItemDisplay="None"
                EditMode="PopUp">
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderStyle-Width="40" ButtonType="ImageButton" EditImageUrl="../Images/Pencil.jpg" />
                        <telerik:GridBoundColumn DataField="NWId" HeaderStyle-Width="60" HeaderText="Id" UniqueName="NWId" Visible="false" />
                        <telerik:GridBoundColumn DataField="CustomerId" HeaderStyle-Width="60" HeaderText="CustomerId" UniqueName="CustomerId" Visible="false" />
                        <telerik:GridBoundColumn DataField="AccessNumber" HeaderStyle-Width="120" HeaderText="TN" SortExpression="AccessNumber" UniqueName="TN" />
                        <telerik:GridBoundColumn DataField="RateCenter" HeaderStyle-Width="130" HeaderText="Rate Center" SortExpression="RateCenter" UniqueName="RateCenter" />
                        <telerik:GridBoundColumn DataField="StandardTier" HeaderStyle-Width="45" HeaderText="Tier" ReadOnly="True" SortExpression="StandardTier" UniqueName="Tier" AllowFiltering="false" />
                        <telerik:GridBoundColumn DataField="RewriteTo" HeaderStyle-Width="130" HeaderText="Rewrite To" ReadOnly="True" SortExpression="RewriteTo" UniqueName="RewriteTo" />
                        <telerik:GridBoundColumn DataField="EndpointGroup" HeaderStyle-Width="130" HeaderText="Endpoint" ReadOnly="True" SortExpression="endpoint" UniqueName="EndpointGroup" />
                        <telerik:GridBoundColumn DataField="EndpointGroupId" Visible="false" UniqueName="EndpointGroupId" />
                        <telerik:GridCheckBoxColumn DataField="CNAMBit" HeaderStyle-Width="60" HeaderText="CNAM" UniqueName="CNAMBit" /> 
                        <telerik:GridCheckBoxColumn DataField="E911Bit" HeaderStyle-Width="60" HeaderText="E911" UniqueName="E911Bit"/> 
                        <telerik:GridCheckBoxColumn DataField="E411Bit" HeaderStyle-Width="60" HeaderText="E411" UniqueName="E411Bit"/> 
                        <telerik:GridCheckBoxColumn DataField="CallerIdBit" HeaderStyle-Width="60" HeaderText="CallerId" UniqueName="CallerIdBit"/> 
                        <telerik:GridCheckBoxColumn DataField="T38Bit" HeaderStyle-Width="60" HeaderText="T38" UniqueName="T38Bit"/>
                        <telerik:GridBoundColumn DataField="StripPlus" Visible="false" UniqueName="StripPlus" />                           
                        <telerik:GridBoundColumn DataField="StripCountryCode" Visible="false" UniqueName="StripCountryCode" />    
                        <telerik:GridBoundColumn DataField="Prepend" Visible="false" UniqueName="Prepend" /> 
                        <telerik:GridBoundColumn DataField="DisplayName" Visible="false" UniqueName="DisplayName" />                         
                        <telerik:GridBoundColumn DataField="SplitType" Visible="false" UniqueName="SplitType" />                         
                        <telerik:GridBoundColumn DataField="E411LastName" Visible="false" UniqueName="E411LastName" />                       
                        <telerik:GridBoundColumn DataField="E411FirstName" Visible="false" UniqueName="E411FirstName" />  
                        <telerik:GridBoundColumn DataField="E411Address1" Visible="false" UniqueName="E411Address1" /> 
                        <telerik:GridBoundColumn DataField="E411City" Visible="false" UniqueName="E411City" /> 
                        <telerik:GridBoundColumn DataField="E411State" Visible="false" UniqueName="E411State" /> 
                        <telerik:GridBoundColumn DataField="E411ZipCode" Visible="false" UniqueName="E411ZipCode" /> 
                        <telerik:GridBoundColumn DataField="E411County" Visible="false" UniqueName="E411County" /> 
                        <telerik:GridButtonColumn CommandName="Delete" HeaderStyle-Width="40" Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton" ImageUrl="../Images/DeleteSymbol.jpg" />
                    </Columns>
                    <EditFormSettings InsertCaption="Add new item" CaptionFormatString="Edit TN: {0}"
                         CaptionDataField="AccessNumber" PopUpSettings-Width="600px" EditFormType="Template">
                        <FormTemplate>
                        <asp:Panel runat="server" ID="EditPanel">
                        <telerik:RadTabStrip ID="EditTabStrip" runat="server" Orientation="HorizontalTop" SelectedIndex="0" MultiPageID="EditMultiPage">
                            <Tabs>
                                <telerik:RadTab Text="DID Data" PageViewID="DIDPageView" />
                                <telerik:RadTab Text="Caller ID Data" PageViewID="CallerIdPageView" />
                                <telerik:RadTab  Text="E411 Data" PageViewID="E411PageView" />
                            </Tabs>
                        </telerik:RadTabStrip>   
                        <telerik:RadMultiPage ID="EditMultiPage" Runat="server" SelectedIndex="0" Height="370px" Width="600px" CssClass="multiPage">
                            <telerik:RadPageView ID="DIDPageView" runat="server" CssClass="DIDInfoPageView">
                                <asp:Table ID="Table1" runat="server" Width="100%">
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label1" runat="server" Text="Endpoint Group:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <telerik:RadComboBox ID="EditEndpointGroupsComboBox" runat="server" Width="300px" ZIndex="10000000"/>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label2" runat="server" Text="Rewrite To:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:TextBox ID="EditRewriteTo" runat="server" Text='<%# Bind("RewriteTo") %>' ReadOnly="true" style="border:None" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label3" runat="server" Text="Strip Plus:" />  
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:TextBox ID="EditStripPlus" runat="server" Text='<%# Bind("StripPlus") %>' ReadOnly="true" style="border:None" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label4" runat="server" Text="Strip Country Code:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:TextBox ID="EditStripCountryCode" runat="server" Text='<%# Bind("StripCountryCode") %>' ReadOnly="true" style="border:None" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label5" runat="server" Text="Prepend Digits:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:TextBox ID="EditPrependDigits" runat="server" Text='<%# Bind("Prepend") %>' ReadOnly="true" style="border:None" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" CssClass="rowinfo">
                                            <hr />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label6" runat="server" Text="CNAM:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:CheckBox ID="EditCNAMBit" Checked='<%# Bind("CNAMBit") %>' runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label7" runat="server" Text="Caller Id:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:CheckBox ID="EditCallerIdBit" Checked='<%# Bind("CallerIdBit") %>' runat="server"  
                                                OnCheckedChanged="EditCallerIdBit_OnCheckedChanged" AutoPostBack="true" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label8" runat="server" Text="E411" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:CheckBox ID="EditE411Bit" Checked='<%# Bind("E411Bit") %>' runat="server" 
                                                OnCheckedChanged="EditE411Bit_OnCheckedChanged" AutoPostBack="true" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label9" runat="server" Text="E911" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:LinkButton ID="EditEh911LinkButton" runat="server" Text="E911+ Configuration" />  
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" style="line-height:.5em;" />
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" CssClass="subheader_blue centered" style="padding: 10px;">
                                            <asp:Button ID="EditDIDDataButton" runat="server" Text="Edit DID Data" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                </asp:Table>
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="CallerIdPageView" runat="server" CssClass="CallerIdInfoPageView">
                                <asp:Table ID="Table2" runat="server" Width="100%">
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label10" runat="server" Text="Display Name:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <asp:TextBox ID="CallerIdDisplayName" Text='<%# Bind("DisplayName") %>' runat="server" /> 
                                        </asp:TableCell></asp:TableRow><asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" style="line-height:.5em;" />
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" CssClass="subheader_blue centered" style="padding: 10px;">
                                            <asp:Button ID="EditCallerIdButton" runat="server" Text="Edit Caller Id Data" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                </asp:Table>
                            </telerik:RadPageView>
                        <telerik:RadPageView ID="E411PageView" CssClass="E411InfoPageView" runat="server" >
                                <asp:Table ID="Table3" Width="100%" runat="server">
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label11" runat="server" Text="Type:" />
                                        </asp:TableCell><asp:TableCell CssClass="rowinfo">
                                            <telerik:RadComboBox ID="E411Type" runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label12" runat="server" Text="Last Name*:" />
                                        </asp:TableCell><asp:TableCell CssClass="rowinfo">
                                            <telerik:RadTextBox ID="E411LastName" Text='<%# Bind("E411LastName") %>' runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label13" runat="server" Text="First Name*:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <telerik:RadTextBox ID="E411FirstName" Text='<%# Bind("E411FirstName") %>'  runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label14" runat="server" Text="Address*:" />
                                        </asp:TableCell><asp:TableCell CssClass="rowinfo">
                                            <telerik:RadTextBox ID="E411Address1" Text='<%# Bind("E411Address1") %>'  runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label15" runat="server" Text="City*:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <telerik:RadTextBox ID="E411City" Text='<%# Bind("E411City") %>'  runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label16" runat="server" Text="State*:" />
                                        </asp:TableCell><asp:TableCell CssClass="rowinfo" >
                                            <telerik:RadTextBox ID="E411State" Text='<%# Bind("E411State") %>'  runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label17" runat="server" Text="Zip Code*:" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <telerik:RadTextBox ID="E411ZipCode" Text='<%# Bind("E411ZipCode") %>'  runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell CssClass="subheader rightalign">
                                            <asp:Label ID="Label18" runat="server" Text="County" />
                                        </asp:TableCell>
                                        <asp:TableCell CssClass="rowinfo">
                                            <telerik:RadTextBox ID="E411County" Text='<%# Bind("E411County") %>'  runat="server" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" style="line-height:.5em;" />
                                    </asp:TableRow>                                       
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="2" CssClass="subheader_blue centered" style="padding: 10px;">
                                            <asp:Button ID="Edit411DataButton" runat="server" Text="Edit 411 Data" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                </asp:Table>
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
                        </asp:Panel>
                        </FormTemplate>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                </ClientSettings>
            </telerik:RadGrid>
        </center>
    </div>
</asp:Content>

MyLocalDIDs.aspx.cs
using System;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Configuration;
using Telerik.Web.UI;


namespace VIBackOffice.DIDs
{
    public partial class MyLocalDIDs : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadGridWithDIDs();
            }
        }


        public void LoadGridWithDIDs()
        {
            try
            {
                AccountInfo accountInfo = Common.getAccountInfo(Request);
                String custId = accountInfo.getCid();


                String sqlCommand =
                @"select * from (select row_number() over (order by AccessNumber) as RowId, 
                NumberWarehouse_ID as NWId, 
                RateCenter, 
                numberwarehouse.[State], 
                AccessNumber, 
                --getDate() as thisDate, 
                --isnull(LastAssigned,'') as last_assigned, 
                case when (isnull(numberwarehouse.expires,1) < getdate() and Avail = 1) 
                then '0' else isnull(numberwarehouse.custid,'0') end as CustomerId, 
                isnull(refid,'0') as Refid, 
                case when (isnull(numberwarehouse.expires,1) < getdate() and Avail = 1) 
                then 1 else Avail end as Reserved, 
                isnull(GroupID,'') as EndpointGroupId,
                isnull(GroupName,'') as EndpointGroup, 
                isnull(Prepend, '') + case when isnull(StripPlus, 0) = 1 
                then case when isnull(StripCountryCode, 0) = 1 
                then AccessNumber else DNIS end else '+' + DNIS end as RewriteTo, 
                case when (isnull(numberwarehouse.expires,1) < getdate() and Avail = 1) 
                then numberwarehouse.expires else null end as Expires, 
                CAST(replace(replace(isnull(CNAM, 0),'1', 'TRUE'), '0', 'FALSE')AS bit) as CNAMBit, 
                CAST((case when isnull(d.StatusCode, '') = 'PROVISIONED' 
                then 'TRUE' when isnull(d.StatusCode, '') = 'GEOCODED' 
                then 'FALSE' when (isnull(d.TN, 'FALSE') = 'FALSE') then 'FALSE' else 'FALSE' end) AS bit) as E911Bit, 
                CAST((case when isnull(lssi.astatus, 'R') <> 'R' then 'TRUE' else 'FALSE' end) AS bit) as E411Bit, 
                CAST((case when (isnull(c.npa, 'FALSE') = 'FAL') then 'FALSE' else 'TRUE' end) AS bit) as CallerIdBit, 
                CAST((replace(replace(isnull(numberwarehouse.T38, 0),'1', 'TRUE'),'0', 'FALSE')) AS bit) as T38Bit, 
                isnull(customertier,StandardTier) as StandardTier,
                e.StripPlus as StripPlus,
                e.StripCountryCode as StripCountryCode,
                ISNULL(NULLIF(e.Prepend, ''), 'NONE') as Prepend,
                c.cnam_name_string as DisplayName,
                lssi.split_indicator as SplitType,
                lssi.listed_finding_name as E411LastName,
                lssi.listed_given_name as E411FirstName,
                lssi.addr1 as E411Address1,
                lssi.city as E411City,
                lssi.st as E411State,
                lssi.zip as E411ZipCode,
                lssi.county as E411County 
                from numberwarehouse left join Enums on '1' + AccessNumber = DNIS 
                left join EndPoint_Groups e on GroupID = EndPointGroup and e.CustomerID = numberwarehouse.custid 
                left join VI_Dash911Configurations d on d.TN = AccessNumber and StatusCode = 'PROVISIONED' 
                left join VI_411.dbo.lssi on lssi.customer_id = numberwarehouse.custid 
                and lssi.npa = SUBSTRING(AccessNumber, 1, 3) COLLATE Latin1_General_BIN 
                and lssi.nxx = SUBSTRING(AccessNumber, 4, 3) COLLATE Latin1_General_BIN 
                and lssi.ext = SUBSTRING(AccessNumber, 7, 4) COLLATE Latin1_General_BIN 
                left join (select case when action_code = 'D' 
                then null else npa end npa,nxx,line,company_id,cnam_name_string from VI_411.dbo.cnam_storage s 
                left join numberwarehouse n on n.AccessNumber = s.npa+s.nxx+s.line 
                COLLATE Latin1_General_BIN where record_id in (select max(record_id) 
                from VI_411.dbo.cnam_storage where npa+nxx+line = AccessNumber 
                COLLATE Latin1_General_BIN )) c on c.npa+c.nxx+c.line = AccessNumber COLLATE Latin1_General_BIN 
                and c.company_id = '" + custId + "' where numberwarehouse.custid = '" + custId + "' and Avail = 0)a"; 


                String conString = ConfigurationManager.ConnectionStrings["DTH"].ConnectionString;
                DataTable dataTable = new DataTable();
                using (SqlConnection connection = new SqlConnection(conString))
                {
                    connection.Open();


                    using (SqlDataAdapter adapter = new SqlDataAdapter())
                    {
                        adapter.SelectCommand = new SqlCommand(sqlCommand, connection);
                        adapter.Fill(dataTable);


                        ViewState["GridData"] = dataTable;


                        if (ViewState["GridData"] != null)
                        {
                            MyLocalDIDsGrid.DataSource = dataTable;
                        }


                        MyLocalDIDsGrid.DataBind();
                    }
                }
            }
            catch (Exception ex)
            {
                System.Web.HttpContext.Current.Response.Write(ex.Message.ToString());
                return;
            }
        }


        protected void MyLocalDIDsGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            if (ViewState["GridData"] != null)
            {
                MyLocalDIDsGrid.DataSource = ViewState["GridData"];
            }
        }


        protected void MyLocalDIDsGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
                if (e.Item is GridEditableItem && e.Item.IsInEditMode)
                {
                    GridEditableItem editItem = (GridEditableItem)e.Item;
                    RadTabStrip editTabStrip = (RadTabStrip)editItem.FindControl("EditTabStrip");


                    CheckBox callerIdCheckBox = (CheckBox)editItem["CallerIdBit"].Controls[0];
                    editTabStrip.Tabs[1].Visible = callerIdCheckBox.Checked ? true : false;


                    CheckBox e411CheckBox = (CheckBox)editItem["E411Bit"].Controls[0];
                    editTabStrip.Tabs[2].Visible = e411CheckBox.Checked ? true : false;
                }
            }
            catch (Exception ex)
            {
                System.Web.HttpContext.Current.Response.Write(ex.Message.ToString());
                return;
            }
        } 


        protected void EditCallerIdBit_OnCheckedChanged(object sender, EventArgs e)
        {
            try
            {
                CheckBox chkbx = (CheckBox)sender;
                RadTabStrip editTabStrip = (RadTabStrip)chkbx.NamingContainer.FindControl("EditTabStrip");
                editTabStrip.Tabs[1].Visible = chkbx.Checked ? true : false;
            }
            catch (Exception ex)
            {
                System.Web.HttpContext.Current.Response.Write(ex.Message.ToString());
                return;
            }
        }


        protected void EditE411Bit_OnCheckedChanged(object sender, EventArgs e)
        {
            try
            {
                CheckBox chkbx = (CheckBox)sender;
                RadTabStrip editTabStrip = (RadTabStrip)chkbx.NamingContainer.FindControl("EditTabStrip");
                editTabStrip.Tabs[2].Visible = chkbx.Checked ? true : false;
            }
            catch (Exception ex)
            {
                System.Web.HttpContext.Current.Response.Write(ex.Message.ToString());
                return;
            }
        }
    }
}



Maria Ilieva
Telerik team
 answered on 15 Apr 2011
2 answers
198 views
protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)  
    {  
        if (e.Item.AccessKey.ToString() == "1")  
        {  
            Control control = LoadControl("home.ascx");  
            control.ID = control.ToString();  
            ContentPlaceHolder1.Controls.Clear();  
            ContentPlaceHolder1.Controls.Add(control);  
        }  
        else 
        {  
            Control control = LoadControl("abt.ascx");  
            control.ID = control.ToString();  
            ContentPlaceHolder1.Controls.Clear();  
            ContentPlaceHolder1.Controls.Add(control);  
        }  
    } 

Hi. On RadMenu1_ItemClick i dynamically load a usercontrol to the content placeholder and the refresh is handled by the AjaxManager. Thanks to telerik. For further development process i need the above functionality to be done using javascript, Is that possible. If there are any other method to be done please let me know.

Thanks in Advance
Arun.M
mohammad imran rizvi
Top achievements
Rank 1
 answered on 15 Apr 2011
2 answers
77 views
Hi 

I am a telerik component user.In our project we use the radgrid component to show the data from the database.However,we have problems of filtering and paging.In the demos the filtering and paging is working  very well we try to do the same thing but filtering and paging does not work.

Can you help me it is very important and  urgent.

yours sincerely.

Sertac Tanrikulu

(Related example demo link is here : http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx)
Pavlina
Telerik team
 answered on 15 Apr 2011
3 answers
255 views
Hi,

I am using the latest version of File Explorer.
I want to rename a file or folder by double clicking the item on the grid of File Explorer.

Can you please help?

Thanks & Regards,
Naveen.
Dobromir
Telerik team
 answered on 15 Apr 2011
1 answer
220 views
Hi,

I have radcombobox in my radgrid. i want to hide the radnumerictextbox in default. clicking checkbox want to display in client side. client side when i am using same code set_visible(false) and set_visible(true). but i want to set  set_visible(false) for radnemerictext box.

Please give me a tips.

Thanks in advance,
Dhamu.
Veli
Telerik team
 answered on 15 Apr 2011
3 answers
100 views
Hi,

I want to display Edit column of Rad grid as the first column. Now it shows as the last column of the grid.

Could some one help me how can I move this column to very first column.

Thanks
monika
Top achievements
Rank 1
 answered on 15 Apr 2011
3 answers
94 views
Hello,

We use radwindows in several places in our application.  Errors cause a redirect either to our login page or to an error page.  Most common is due to session timeout. 

It is a problem when this happens while the user is in a radwindow and the radwindow itself displays the login page.   We have fixed this for IE by placing this javascript on our login page:

 

<script type="text/javascript">
        if (window != window.top) window.top.navigate(window.location.href);
</script>

This doesn't work on Mozilla.  This may be because mozilla creates each window on a seperate thread and thinks that the radwindow IS the top window?

Can you please advise how we can handle this issue.

Thanks
Marin Bratanov
Telerik team
 answered on 15 Apr 2011
1 answer
161 views
Page_ClientValidate doesn't seem to work with RadCaptcha, anyone had the same problem?

 

if (typeof (Page_ClientValidate) == 'function') {

 

 

 

// if we are doing a validation, return if it's false

 

 

if (Page_ClientValidate() == false) { return false; }

 

 

}

Thanks.

Pero
Telerik team
 answered on 15 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?