Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Hello good afternoon,

I'm developing a website and I added a Telerik.Web.Ui.RadScheduler. It all works fine but now that I'm about to publish it I saw that if I run the website thru Google Chrome the Scheduler appears without the normal display. Should I add something to the App_Browser folder?

Best regards.

Hope to ear from you soon,

João Machado
Veronica
Telerik team
 answered on 15 Apr 2011
1 answer
184 views
Hi,

    I just wanted to know if there is a time limit for the progress bar? I am using ProgressArea control (without progress actually, just elapsed time is displayed as I dont have progress of the work being done) for a very heavy work. I see that elapsed time stopped at 9:57 and stop updating itself. 

    Is that the maximum time it can hold a webpage or there must be something wrong elsewhere?

    Thanks,
Genady Sergeev
Telerik team
 answered on 15 Apr 2011
1 answer
141 views
Hi
Placed inside collapsible panel - table - scrollable area - RadButton does not keep permanent position inside table's cell, it flows around vertically, and jumps into its place on mouse over or click.

Max
Pero
Telerik team
 answered on 15 Apr 2011
2 answers
219 views
I know that I can set the selected date of the date picker in the properties window under the "Date Selection"  section but I want to set the date in the code behind, how do you do that?

Thanks
John
Top achievements
Rank 1
 answered on 15 Apr 2011
1 answer
151 views
can any one suggest which version of IE will  not support for Telerik.Web.UI.dll with version number 2010.3.1317.20

I have tried with IE 6 and IE7 ,  ALL UI which was developed using teleric are working fine, but i have doubt whether it will support for IE8 and IE9

Sebastian
Telerik team
 answered on 15 Apr 2011
1 answer
81 views
Hi - I just upgraded to q1 2011 and now my scrollers have lost loads of formatting.

Looking at the code it looks like they are now being rendered using tables rather than the previous method of div tags.

I have written custom styles that rely on them being rendered in the same was as before - is there any way to get around this?

Thanks
John
Top achievements
Rank 1
 answered on 15 Apr 2011
7 answers
140 views
Hello,

My project team is using the 2009 Q3 Telerik controls. We found that on Internet Explorer the listbox control cannot be accessed by the Tab key on the keyboard. Our project must be 508 compliant and we are discouraged from using access keys because they can override existing keys. We also tried setting the TabIndex but that did not help. Do you have any suggestions on how to use the tab key to navigate to and select from the Telerik listbox?

Thanks,

Lauren
Dimitar Terziev
Telerik team
 answered on 15 Apr 2011
1 answer
87 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
256 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
112 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?