Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
277 views
I am trying to updated a RadGrid based on what is selected in a RadComboBox but the grid displays nothing.  The Grid's SQL DataSource is tied to a stored procedure which accepts a parameter (CustBill) from the RadComboBox.  Ajax Manager is setup to update both the RadGrid and RadComboBox but the stored procedure returns 0 results no matter what is selected in the combo box.  Here is the AjaxManager, RadComboBox, and SQL Datasource code.  Is AjaxManager refreshing the controls properly?  Your help is appreciated. 
-Scott

 

 

***
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

 

 

 

DefaultLoadingPanelID="RadAjaxLoadingPanel1">

 

 

 

  <AjaxSettings>

 

 

 

  <telerik:AjaxSetting AjaxControlID="RadComboBox1">

 

 

 

    <UpdatedControls>

 

 

 

        <telerik:AjaxUpdatedControl ControlID="RadComboBox1" />

 

 

 

        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

    </UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>



***
<telerik:RadComboBox ID="RadComboBox1" Runat="server"

 

 

 

    DataSourceID="SqlDataSource1" DataTextField="CustBill"

 

 

 

    DataValueField="CustBill" Height="122px" Skin="Windows7" Width="319px">

 

 

 

 

 

 

 

    <Items>

 

 

 

 

 

 

 

        <telerik:RadComboBoxItem Text="All" Value="0" Selected="true" />

 

 

 

 

 

 

 

    </Items>

 

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 


*** This SQL Data Source populates the combo box ***

 

<

 

 

asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

 

    ConnectionString="<%$ ConnectionStrings:crmDashboardConnectionString %>"

 

 

 

    SelectCommand="SELECT TOP (10) CustBill FROM crmSalesSuperior WHERE (CustBill IN (SELECT CustBill FROM crmSalesSuperior AS crmSalesSuperior_1 WHERE (Branch = 102))) GROUP BY CustBill ORDER BY CustBill">

 

 

 

 

</asp:SqlDataSource>

 

 

 

 



*** This is the Grid's SQL data source, calling a stored procedure with a parameter from combo box. ***

 

 

 

 

<asp:SqlDataSource ID="SqlDataSource2" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:crmDashboardConnectionString %>"

 

 

 

SelectCommand="CRMDashboardSales" SelectCommandType="StoredProcedure">

 

 

 

 

    <SelectParameters>

 

 

 

 

        <asp:ControlParameter Name="CustBill" ControlID="RadComboBox1"

 

 

 

            PropertyName="SelectedValue" Type="String"

 

 

 

            DefaultValue="Power Equipment Co " />

 

 

 

 

    </SelectParameters>

 

 

 

 

</asp:SqlDataSource>

 

 

 

 




 

Scott
Top achievements
Rank 1
 answered on 03 Feb 2011
3 answers
104 views
I am using the Q3 2008 controls currently.

I have a radWindow I am opneing and setting options via JavaScript:

 

 

 

function openWindow() {  
        window.setTimeout(function() {  
            var oManager = GetRadWindowManager();  
            var rdWin = oManager.open('<%=WindowURL%> ''rwVideoTutorial');  
            rdWin.set_status('Video Tutorial <%=HelpVideoID %> ');  
            rdWin.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move);  
            rdWin.center;  
            rdWin.remove_resize;  
            rdWin.add_dragEnd(OnClientDragEnd);  
            rdWin.setSize(620, 430);  
        }, 1000);  
    }  
 
    function OnClientDragEnd(sender, eventArgs) {  
        var oManager = GetRadWindowManager();  
        var oWnd = oManager.getWindowById(sender.get_id());  
                oWnd.reload();  
 
          
    } 

I am embeding a YouTube video on a page that is loaded by the RadWindow. In IE8 some strange things are happening. I added the OnClinetDragEnd in hopes that the content would reload, but it doesn't in IE8 unless I have IE8 in compatability mode. If hte winodw is draged in IE8 the audio cuts out fromt he video, so I thought I could jsut reload the content. Also, when the window closes and the video is still running, you can still hear the audio after the window is clsoed. I am not experiencing any of these issues with FireFox. 

Ultimately, I would like the content to reload as it does in FireFox, but in FireFox I really don't need to reload the content, because even after the window is done being dragged the video plays from where it left off.

If I can;t get this to work IN IE8 like it does in FF, how can I set the window to be destroyed via Javascript? I have the window set to be destroyed in the ASPX code, but I guess, since I am openeing it via javascript that doesn't matter.

Daniel

 

 

Georgi Tunev
Telerik team
 answered on 03 Feb 2011
4 answers
150 views
Hello,

I have a web site that has a radmenu at the top of the page, with a radtabstrip directly below it, then a radwindow(s) below that.  I'm using the tabstrip and radwindows to simulate tabs with different web pages, much like IE and other browsers do only this is all within my web site.  I am having an issue with the latest build where the radmenu is showing behind the radwindows.  Previously this worked fine - I had the z-index on the radmenu set to a large number and the menu would always show on top.  When I upgraded to the latest build, the radmenu shows above the tabstrip but below the radwindow.  I've tried setting the z-index of the radmenu to something insanely high and also tried setting the z-index to a low value on my radwindowmanager.  Neither seem to work, the radmenu always shows behind the radwindow.  Is this a bug with the latest build, or is there something new that I need to account for in my page?  I downgraded to the previous build and verified this works fine.  It's just the latest build that seems to act differently.

Thanks!
Richard
Richard
Top achievements
Rank 1
 answered on 03 Feb 2011
1 answer
60 views
Hello,

I'm trying to implement the Tooltipified RadGrid in my web user control.  I've followed all the instructions  according to your attached file telerikradtooltipsample.zip. I'm also using this example: http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx
I'm working on DotNetNuke and the following exception appears.
Error: TestToolTip is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
My code snippets:

TestToolTip.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TestToolTip.ascx.cs" Inherits="SU_SaleStatisticImport.TestToolTip" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
<%@ Register Src="ActivityDetails.ascx" TagName="ActivityDetails" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server">
    </asp:ScriptManager>
    <Telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </Telerik:RadAjaxLoadingPanel>
    <Telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="ManualClose"
        Width="250" Height="350" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate"
        RelativeTo="Element" Position="MiddleRight">
    </Telerik:RadToolTipManager>
    <Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <Telerik:AjaxSetting AjaxControlID="rgCampaigns">
                <UpdatedControls>
                    <Telerik:AjaxUpdatedControl ControlID="rgCampaigns" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <Telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                </UpdatedControls>
            </Telerik:AjaxSetting>
        </AjaxSettings>
    </Telerik:RadAjaxManager>
    <Telerik:RadGrid ID="rgCampaigns" runat="server" OnItemDataBound="rgCampaigns_ItemDataBound"
        AutoGenerateColumns="false">
        <MasterTableView runat="server" DataKeyNames="GlobalCode">
            <Columns>
                <Telerik:GridTemplateColumn HeaderText="First">
                    <ItemTemplate>
                        <asp:Label ID="lblTitle" runat="server" Text="Show ToolTip"></asp:Label>
                    </ItemTemplate>
                </Telerik:GridTemplateColumn>
                <Telerik:GridBoundColumn DataField="SecondColumn" HeaderText="Second">
                </Telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </Telerik:RadGrid>
    </form>
</body>
</html>

TestToolTip.ascx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace SU_SaleStatisticImport
{
    public partial class TestToolTip : System.Web.UI.UserControl
    {
        protected System.Data.DataTable GetData()
        {
            System.Data.DataTable tbl = new System.Data.DataTable();
            tbl.Columns.Add(new System.Data.DataColumn("GlobalCode"));
            tbl.Columns.Add(new System.Data.DataColumn("SecondColumn"));
            tbl.Columns.Add(new System.Data.DataColumn("ThirdColumn"));
            tbl.Columns.Add(new System.Data.DataColumn("FourthColumn"));
            tbl.Rows.Add(new object[] { "firstRecord1", "firstRecord2", "firstRecord3", "firstRecord4" });
            tbl.Rows.Add(new object[] { "secondRecord1", "secondRecord2", "secondRecord3", "secondRecord4" });
            tbl.Rows.Add(new object[] { "thirdRecord1", "thirdRecord2", "thirdRecord3", "thirdRecord4" });
            return tbl;
 
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rgCampaigns.DataSource = GetData();
                rgCampaigns.DataBind();
            }
        }
 
        protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }
        private void UpdateToolTip(string ActivityCode, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("~/ActivityDetails.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
 
            ActivityDetails details = (ActivityDetails)ctrl;
            details.ActivityCode = ActivityCode;
 
        }
 
        protected void rgCampaigns_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
 
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                Control target = e.Item.FindControl("lblTitle");
                if (!Object.Equals(target, null))
                {
                    if (!Object.Equals(this.RadToolTipManager1, null))
                    {
                        //Add the button (target) id to the tooltip manager
                        this.RadToolTipManager1.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("GlobalCode").ToString(), true);
 
                    }
                }
            }
 
 
        }
    }
}

ActivityDetails.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ActivityDetails.ascx.cs" Inherits="SU_SaleStatisticImport.ActivityDetails" %>
<asp:label id="lbltest" runat="server" text="Label"></asp:label>

ActivityDetails.ascx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace SU_SaleStatisticImport
{
    public partial class ActivityDetails : System.Web.UI.UserControl
    {
        public string ActivityCode
        {
            get
            {
                if (ViewState["ActivityCode"] == null)
                {
                    return "";
                }
                return (string)ViewState["ActivityCode"];
            }
            set
            {
 
                ViewState["ActivityCode"] = value;
 
            }
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            lbltest.Text += "<br>Activity code: " + ActivityCode;
        }
    }
}
Svetlina Anati
Telerik team
 answered on 03 Feb 2011
6 answers
598 views

I diamically added 2 columns to the grid when page load,  one GridHTMLEditorColumn is editable and another one is enabled=false, how I get both Radedit value (edited value and enabled=false's cell value) on InsertCommand and UpdateCommand?

 

 

On form load:

 

 

 

 

GridHTMLEditorColumn boundColumn = new GridHTMLEditorColumn();

 

 

 

// GridBoundColumn boundColumn = new GridBoundColumn(); 

 

 this.rgLanguages.MasterTableView.Columns.Add(boundColumn);

 

 

 

// this.rgLanguages.MasterTableView.Columns.Add(cBox.Text);

 

 

 

 

 

  

boundColumn.DataField = cBox.Text;

boundColumn.HeaderText = cBox.Text;

boundColumn.UniqueName = cBox.Value;

rgLanguages_InsertCommand;:

I tried (editedItem["English"].Controls[0] as RadEditor).Text to get value, it only works for NONE dinamically creaded value, but not work for dinamically created column.

How I get both editeable value and enbaled =false's Radedit value here?Thank,
Jessie

 

 

 

 

 

 

 

 

 

:

 

 

 

 

 

 

GP
Top achievements
Rank 1
 answered on 03 Feb 2011
1 answer
136 views
Hi.

I'm using a DatePicker to show data about a specific date, and there are also dates in which no data is related. Hence, I'm populating the picker with special days using the OnLoad event, enabling and disabling the dates between the MinDate and MaxDate, as it's being needed.

This is how I've done so far, populating from the picker's MinDate to the MaxDate, which works, but I'd like to populate by requesting dates everytime I navigate, within the picker's CalendarView, so everytime a request occurs, I only process no more than 40 Special Days, not every date of several months and so on:

protected void DatePicker_Load(object sender, EventArgs e)
{
            RadDatePicker picker = sender as RadDatePicker;
 
            DateTime[] dates = controller.GetCustomerBaseDates();
 
            picker.MinDate = dates.Min();
            picker.MaxDate = dates.Max();
 
            for (DateTime d1 = picker.MinDate; d1 <= picker.MaxDate; d1 = d1.AddDays(1))
            {
                RadCalendarDay day;
 
                bool exists = dates.Contains(d1);
 
                day = new RadCalendarDay { Date = d1, IsSelectable = exists, IsDisabled = !exists };
                day.ItemStyle.CssClass = exists ? "rcDataExists" : "rcDisabled";
 
                picker.Calendar.SpecialDays.Add(day);
            }
}


How could I add the special days every time navigation occurs?  I want to enable and disable these dates on navigation within the view, because a lot of dates would be involved in the process.

Regards.
Iana Tsolova
Telerik team
 answered on 03 Feb 2011
3 answers
220 views
I have nested radgrids in following order

Main RadGrid
Nested View Template
Tab Strip Control
Multi Page view
Rad Grid as child

I am using web user control for Edit/Insert in all child grids. How can I handle Insert and Update commands from child grids.  
Here is markup as is

<telerik:RadGrid  Width="100%" ID="MasterGrid" HorizontalAlign="Center"  runat="server"
             AllowSorting="True" ShowStatusBar="true" AllowAutomaticUpdates="true" ShowFooter="true" AllowAutomaticDeletes="true"  AllowFilteringByColumn="True"  AllowMultiRowSelection="False" AllowPaging="True" ShowGroupPanel="True" AutoGenerateColumns="False" GridLines="none">
            <GroupingSettings CaseSensitive="false" />
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"/>
                       <ExportSettings HideStructureColumns="true" />     
                 
                <MasterTableView Width="100%" ShowGroupFooter="true"  CommandItemDisplay="Top" DataKeyNames="custid" TableLayout="Auto"  Name="Customers">
 
                 
                   <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="Agency" FieldName="Agency"></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="Agency"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                                                         
                      <%--<CommandItemSettings ShowAddNewRecordButton="false"  ShowExportToWordButton="true" ShowExportToExcelButton="true"
                        ShowExportToCsvButton="true" />   --%>
                                                                                             
                    <CommandItemTemplate>
                          <div style="padding: 5px 5px;">
                                                <asp:LinkButton ID="btnExpandAll" runat="server" CommandName="ExpandAll" Visible="false"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Plus.gif" />Expand All</asp:LinkButton>  
                                                <asp:LinkButton ID="btnCollapseAll" runat="server" CommandName="CollapseAll" Visible="false"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Minus.gif" />Collapse All</asp:LinkButton>  
                                                <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# MasterGrid.EditIndexes.Count = 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>  
                                                <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# MasterGrid.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>  
                                                <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# MasterGrid.EditIndexes.Count > 0 Or MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# Not MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add new</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" />Add this customer</asp:LinkButton>  
                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')"
                        runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete selected customers</asp:LinkButton>  
                                                <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />Refresh customer list</asp:LinkButton>
                                            </div>  
                    </CommandItemTemplate
                                                         
                     
                    <NestedViewTemplate>
                    <fieldset class="viewWrap" runat="server">
                           <asp:Panel runat="server" ID="InnerContainer" Visible="true">
                           <telerik:RadTabStrip EnableViewState="true" OnClientTabSelected="onTabSelected" runat="server" Skin='<%# RadComboBox1.selectedItem.text %>'  ID="TabStrip1" MultiPageID="Multipage1"
                                SelectedIndex="0">
                                <Tabs>
                                    <telerik:RadTab runat="server" Text="Support" PageViewID="RadPageView1"/>
                                    <telerik:RadTab runat="server" Text="Sales" PageViewID="RadPageView2"/>
                                    <telerik:RadTab runat="server" Text="General Info" PageViewID="RadPageView3"/>
                                    <telerik:RadTab runat="server" Text="System Info" PageViewID="RadPageView4"/>
                                    <telerik:RadTab runat="server" Text="Notes" PageViewID="RadPageView5"/>
                                    <telerik:RadTab runat="server" Text="Shipping" PageViewID="RadPageView6"/>
                                    <telerik:RadTab runat="server" Text="Contact" PageViewID="RadPageView7"/>
                                    <telerik:RadTab runat="server" Text="Configuration" PageViewID="RadPageView8"/>
                                    <telerik:RadTab runat="server" Text="SAM" PageViewID="RadPageView9"/>
                                </Tabs>
                            </telerik:RadTabStrip>
                             
                              <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                                     <telerik:RadPageView runat="server" ID="RadPageView1">
                                            <asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("sid") %>' Visible="false" runat="server" />
                                            <telerik:RadGrid Skin='<%# RadComboBox1.selectedItem.text %>' Width="100%" ID="RadPageViewGrid1" AllowAutomaticUpdates="true"   DataSourceID="SqlDataSource2" HorizontalAlign="Center"  runat="server"
                                                AllowSorting="True" AllowFilteringByColumn="False"  AllowMultiRowSelection="False" ShowGroupPanel="true" AllowPaging="True" autoGenerateColumns="False" GridLines="none">
  
                                     <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"
                                                        DataKeyNames="recid" HierarchyLoadMode="ServerOnDemand" CommandItemDisplay="Top">
                                                       <CommandItemSettings ShowAddNewRecordButton ="false" />
                                                           <CommandItemTemplate>
                                                                  <div style="padding: 5px 5px;">
                                                                                        <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='true'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>  
                                                                                        <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='false'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>  
                                                                                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# MasterGrid.EditIndexes.Count > 0 Or MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>  
                                                                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# Not MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add new</asp:LinkButton>  
                                                                                        <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" />Add this customer</asp:LinkButton>  
                                                                <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')"
                                                                runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete selected customers</asp:LinkButton>  
                                                                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />Refresh customer list</asp:LinkButton>
                                                                                    </div>  
                                                            </CommandItemTemplate
                     
                                                             <Columns>
                                                            <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox id="CheckBox1" runat="server"> </asp:CheckBox>
                                                                </ItemTemplate>
                                                            </telerik:GridTemplateColumn>                                                                   
                                                            <telerik:GridDateTimeColumn EditFormColumnIndex="0" ItemStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" SortExpression="Date" HeaderText="Date" PickerType="DatePicker" HeaderButtonType="TextButton" DataField="Date" UniqueName="Date" DataFormatString="{0:MM/dd/yyyy}"/>
                                                            <telerik:GridDateTimeColumn   EditFormColumnIndex="0" ItemStyle-HorizontalAlign="Left" SortExpression="Date" HeaderText="Time" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderButtonType="TextButton" DataField="Date" UniqueName="Time" DataFormatString="{0:HH:mm tt}"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="0" ItemStyle-HorizontalAlign="Left" SortExpression="Duration" HeaderText="Duration" HeaderButtonType="TextButton" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" DataField="Duration" UniqueName="Duration"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="0" ItemStyle-HorizontalAlign="Left" SortExpression="Initials" HeaderText="Created By" HeaderButtonType="TextButton" DataField="Initials" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="Initials"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="Description" HeaderText="Issue Type" HeaderButtonType="TextButton" DataField="Description" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="Description"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="LogStatus" HeaderText="Status" HeaderButtonType="TextButton" DataField="LogStatus" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="LogStatus"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="name" HeaderText="Customer Contact" HeaderButtonType="TextButton" DataField="name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="name"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="phone" HeaderText="Call back #" HeaderButtonType="TextButton" DataField="phone" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="phone"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="2" ItemStyle-HorizontalAlign="Left" ColumnEditorID="GridTextBoxColumnEditor2" SortExpression="problem" HeaderText="Purpose" HeaderButtonType="TextButton" DataField="problem" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="problem"/>
                                                            <telerik:GridBoundColumn EditFormColumnIndex="2" ItemStyle-HorizontalAlign="Left" ColumnEditorID="GridTextBoxColumnEditor2"  SortExpression="solution" HeaderText="Result" HeaderButtonType="TextButton" DataField="solution" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="resolution"/>
                                                            
                                                        </Columns>
                                                       
                                                       
                                                                         <EditFormSettings UserControlName="~/UserControls/Support.ascx" EditFormType="WebUserControl">
                                                                            <EditColumn UniqueName="EditCommandColumn1">              
                                                                            </EditColumn>
                                                                        </EditFormSettings>
                                                                         
                                        </MasterTableView>
                                         
                                             <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                                                    <Selecting AllowRowSelect="True"></Selecting>
                                                    <Resizing AllowRowResize="False" ResizeGridOnColumnResize="False"></Resizing>
                                                    <ClientEvents OnRowDblClick="RowDblClick" OnColumnClick="ColumnClick" />
                                                </ClientSettings>
                                                <GroupingSettings ShowUnGroupButton="true" />      
                                     </telerik:RadGrid
                                      
                                                <telerik:GridTextBoxColumnEditor TextBoxMode="MultiLine" TextBoxStyle-Width="300px" TextBoxStyle-height="100px" ID="GridTextBoxColumnEditor2" runat="server">
                                                    <TextBoxStyle  BackColor="#edffc3" />
                                                </telerik:GridTextBoxColumnEditor>
                                                 
                                     <asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:CMSConnectionString %>"
                                                        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM vw_SupportLogs Where sid = @ScannerId
                                                        Order BY [Date] Desc"
                                                        runat="server">
                                                        <SelectParameters>
                                                            <asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="ScannerId" />
                                                        </SelectParameters>
                                      </asp:SqlDataSource
                                      
                                     </telerik:RadPageView>
 
                                       <telerik:RadPageView runat="server" ID="RadPageView2">
                                                                    
                                        </telerik:RadPageView>
                                         
                                       <telerik:RadPageView runat="server" ID="RadPageView3">
                                         
                                        </telerik:RadPageView>
 
                                       <telerik:RadPageView runat="server" ID="RadPageView4">
                                         
                                        </telerik:RadPageView>
                                         
                                       <telerik:RadPageView runat="server" ID="RadPageView5">
                                                    <asp:Label ID="Label2" Font-Bold="true" Font-Italic="true" Text='<%# Eval("sid") %>' Visible="false" runat="server" />
                                          
                                                 <telerik:RadGrid Skin='<%# RadComboBox1.selectedItem.text %>'  runat="server" ID="RadPageViewGrid5" DataSourceID="SqlDataSource3" ShowFooter="true" AllowSorting="true" EnableLinqExpressions="false">
                                                 <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"
                                                                    DataKeyNames="recid" HierarchyLoadMode="ServerOnDemand" CommandItemDisplay="Top">
                                                                    
                                                                   <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                    <CommandItemTemplate>
                                                                          <div style="padding: 5px 5px;">
                                                                                                <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# MasterGrid.EditIndexes.Count = 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# MasterGrid.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# MasterGrid.EditIndexes.Count > 0 Or MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# Not MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add new</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" />Add this customer</asp:LinkButton>  
                                                                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')"
                                                                        runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete selected customers</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />Refresh customer list</asp:LinkButton>
                                                                                            </div>  
                                                                    </CommandItemTemplate
                     
                                                                    <Columns>
                                                                        <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox id="CheckBox1" runat="server"> </asp:CheckBox>
                                                                            </ItemTemplate>
                                                                        </telerik:GridTemplateColumn>                                                                    
                                                                        <telerik:GridDateTimeColumn EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="Date" HeaderText="Date" PickerType="DatePicker" HeaderButtonType="TextButton" DataField="Date" UniqueName="Date" DataFormatString="{0:MM/dd/yyyy}"/>
                                                                        <telerik:GridDateTimeColumn   EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="Date" HeaderText="Time" HeaderButtonType="TextButton" DataField="Date" UniqueName="Time" DataFormatString="{0:HH:mm tt}"/>
                                                                        <telerik:GridBoundColumn EditFormColumnIndex="1" ItemStyle-HorizontalAlign="Left" SortExpression="LoggedBy" HeaderText="Logged By" HeaderButtonType="TextButton" DataField="LoggedBy" UniqueName="LoggedBy"/>
                                                                        <telerik:GridBoundColumn EditFormColumnIndex="0" ItemStyle-HorizontalAlign="Left" SortExpression="TypeOfNote" HeaderText="Type Of Note" HeaderButtonType="TextButton" DataField="TypeOfNote" UniqueName="TypeOfNote"/>
                                                                        <telerik:GridBoundColumn ColumnEditorID="TextEditor1"  EditFormColumnIndex="0" ItemStyle-HorizontalAlign="Left" SortExpression="Notes" HeaderText="Notes" HeaderButtonType="TextButton" DataField="Notes" UniqueName="Notes"/>
                                                                    </Columns>
                                                                   
                                                                         <EditFormSettings UserControlName="~/UserControls/Notes.ascx" EditFormType="WebUserControl">
                                                                            <EditColumn UniqueName="EditCommandColumn1">              
                                                                            </EditColumn>
                                                                        </EditFormSettings>
                             
                                                    </MasterTableView>
                                                     
                                                                <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                                                                        <Selecting AllowRowSelect="True"></Selecting>
                                                                        <ClientEvents OnRowDblClick="RowDblClick" />
                                                                    </ClientSettings>
                                                 </telerik:RadGrid
                                                  
                                                 
                                                                <telerik:GridTextBoxColumnEditor TextBoxMode="MultiLine" TextBoxStyle-Width="300px" TextBoxStyle-height="100px" ID="TextEditor1" runat="server">
                                                                <TextBoxStyle  BackColor="#edffc3" />
                                                            </telerik:GridTextBoxColumnEditor>
                         
                                                 <asp:SqlDataSource ID="SqlDataSource3" ConnectionString="<%$ ConnectionStrings:CMSConnectionString %>"
                                                                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM Notes Where sid = @ScannerID
                                                                    Order BY [Date] Desc"
                                                                    runat="server">
                                                                    <SelectParameters>
                                                                        <asp:ControlParameter ControlID="Label2" PropertyName="Text" Type="String" Name="ScannerID" />
                                                                    </SelectParameters>
                                                  </asp:SqlDataSource>   
                                        </telerik:RadPageView>
 
                                       <telerik:RadPageView runat="server" ID="RadPageView6">
                                         
                                        </telerik:RadPageView>
                                         
                                       <telerik:RadPageView runat="server" ID="RadPageView7">
 
                                                   <asp:Label ID="Label3" Font-Bold="true" Font-Italic="true" Text='<%# Eval("sid") %>' Visible="False" runat="server" />
                                          
                                                 <telerik:RadGrid Skin='<%# RadComboBox1.selectedItem.text %>' runat="server" ID="RadPageViewGrid7" DataSourceID="SqlDataSource4" ShowFooter="true" AllowSorting="true" EnableLinqExpressions="false">
                                                  
                                    
                                                 <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"
                                                                    DataKeyNames="id" HierarchyLoadMode="ServerOnDemand" CommandItemDisplay="Top">
                                                                    
                                                                    <CommandItemSettings ShowAddNewRecordButton="false" />
                                                                    <CommandItemTemplate>
                                                                          <div style="padding: 5px 5px;">
                                                                                                <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# MasterGrid.EditIndexes.Count = 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# MasterGrid.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# MasterGrid.EditIndexes.Count > 0 Or MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# Not MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add new</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# MasterGrid.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" />Add this customer</asp:LinkButton>  
                                                                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')"
                                                                        runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete selected customers</asp:LinkButton>  
                                                                                                <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />Refresh customer list</asp:LinkButton>
                                                                                            </div>  
                                                                    </CommandItemTemplate
                                                                     
                                                                    <Columns>
                                                                        <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox id="CheckBox1" runat="server"> </asp:CheckBox>
                                                                            </ItemTemplate>
                                                                        </telerik:GridTemplateColumn>                                                                   
                                                                        <telerik:GridBoundColumn  ItemStyle-HorizontalAlign="Left" SortExpression="ContactProfileName" HeaderText="Contact Profile" HeaderButtonType="TextButton" DataField="ContactProfileName" UniqueName="ContactProfileName"/>
                                                                        <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" SortExpression="EntityName" HeaderText="Entity Name" HeaderButtonType="TextButton" DataField="EntityName" UniqueName="EntityName"/>
                                                                        <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" SortExpression="FullName" HeaderText="Full Name" HeaderButtonType="TextButton" DataField="FullName" UniqueName="FullName"/>
                                                                        <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" SortExpression="Phone" HeaderText="Phone" HeaderButtonType="TextButton" DataField="Phone" UniqueName="Phone"/>
                                                                        <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" SortExpression="Mobile" HeaderText="Mobile" HeaderButtonType="TextButton" DataField="Mobile" UniqueName="Mobile"/>
                                                                        <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" SortExpression="Email" HeaderText="Email" HeaderButtonType="TextButton" DataField="Email" UniqueName="Email"/>
                                                                    </Columns>
                                                                   
                                                                    
                                                                         <EditFormSettings UserControlName="~/UserControls/Contact.ascx" EditFormType="WebUserControl">
                                                                            <EditColumn UniqueName="EditCommandColumn1">              
                                                                            </EditColumn>
                                                                        </EditFormSettings>
                            
                                                    </MasterTableView>
                                                     
                                                                <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                                                                        <Selecting AllowRowSelect="True"></Selecting>
                                                                        <ClientEvents OnRowDblClick="RowDblClick" />
                                                                    </ClientSettings>
                                                 </telerik:RadGrid
                                                  
                                                 
                                                                <telerik:GridTextBoxColumnEditor TextBoxMode="MultiLine" TextBoxStyle-Width="300px" TextBoxStyle-height="100px" ID="GridTextBoxColumnEditor1" runat="server">
                                                                <TextBoxStyle  BackColor="#edffc3" />
                                                            </telerik:GridTextBoxColumnEditor>
                         
                                                 <asp:SqlDataSource ID="SqlDataSource4" ConnectionString="<%$ ConnectionStrings:CMSConnectionString %>"
                                                                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM vw_Contacts Where sid = @ScannerID Order By CreateDate Desc"
                                                                    runat="server">
                                                                    <SelectParameters>
                                                                        <asp:ControlParameter ControlID="Label3" PropertyName="Text" Type="String" Name="ScannerID" />
                                                                    </SelectParameters>
                                                  </asp:SqlDataSource>
 
                                                 <asp:SqlDataSource ID="SqlDataSource5" ConnectionString="<%$ ConnectionStrings:CMSConnectionString %>"
                                                                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT [ContactProfileId],[ContactProfileName] FROM [ContactProfileMaster]"
                                                                    runat="server">
                                                  </asp:SqlDataSource>
                                                                                                                        
                                        </telerik:RadPageView>
                             
                           <telerik:RadPageView runat="server" ID="RadPageView8">
                             
                            </telerik:RadPageView>
                             
                           <telerik:RadPageView runat="server" ID="RadPageView9">
                             
                            </telerik:RadPageView
                                                                  
                              </telerik:RadMultiPage>
                            </asp:Panel>
                    </fieldset>
                    </NestedViewTemplate>
                                                
                   <Columns>
                        
                       <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                       </telerik:GridEditCommandColumn>
                     
                        <telerik:GridBoundColumn EditFormColumnIndex="0" Aggregate="Count" FooterText="Total Records: " SortExpression="Agency" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="Agency" HeaderButtonType="TextButton"
                            DataField="Agency">
                        </telerik:GridBoundColumn>
 
                        <telerik:GridBoundColumn EditFormColumnIndex="0" SortExpression="blsid" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="BLSID"
                         HeaderButtonType="TextButton"
                            DataField="blsid">
                        </telerik:GridBoundColumn>
 
                        <telerik:GridBoundColumn EditFormColumnIndex="0" SortExpression="scannerid" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="LSID" HeaderButtonType="TextButton"
                            DataField="scannerid">
                        </telerik:GridBoundColumn>
                         
                        <telerik:GridBoundColumn EditFormColumnIndex="0" SortExpression="groupnum" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="Group" HeaderButtonType="TextButton"
                            DataField="groupnum">
                        </telerik:GridBoundColumn>
                                  
                        <telerik:GridBoundColumn EditFormColumnIndex="0" SortExpression="maintenance" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="Support Type" HeaderButtonType="TextButton"
                            DataField="maintenance">
                        </telerik:GridBoundColumn
                                
                        <telerik:GridDateTimeColumn EditFormColumnIndex="0" FilterControlWidth="120px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" DataField="maintExp" HeaderText="Support Exp Date"
                            SortExpression="maintExp" UniqueName="maintExp" PickerType="DatePicker"
                            DataFormatString="{0:MM/dd/yyyy}">
                            <HeaderStyle Width="160px" />
                        </telerik:GridDateTimeColumn>
                         
                        <telerik:GridBoundColumn EditFormColumnIndex="1" SortExpression="Description" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="Scanner Model" HeaderButtonType="TextButton"
                            DataField="Description">
                        </telerik:GridBoundColumn>                                 
 
                        <telerik:GridBoundColumn EditFormColumnIndex="1" SortExpression="buildver" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="SW Version" HeaderButtonType="TextButton"
                            DataField="buildver">
                        </telerik:GridBoundColumn>
                         
                        <telerik:GridBoundColumn EditFormColumnIndex="1" SortExpression="ReleaseDate" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="True" HeaderText="Rel Date" HeaderButtonType="TextButton"
                            DataField="ReleaseDate">
                        </telerik:GridBoundColumn>
                         
                        <telerik:GridBoundColumn EditFormColumnIndex="2" SortExpression="Make" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderText="PC" HeaderButtonType="TextButton"
                            DataField="Make">
                        </telerik:GridBoundColumn>
                         
                        <telerik:GridBoundColumn EditFormColumnIndex="2" SortExpression="ostype" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderText="OS" HeaderButtonType="TextButton"
                            DataField="ostype">
                        </telerik:GridBoundColumn>  
                </Columns>
                 
                 
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="19px" />
                    </ExpandCollapseColumn>
                     
                  <EditFormSettings EditFormType="Template">
                             <FormTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td width="20%" align="right">
                                            Contact Profile: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox1" Text='<%# Bind("Agency") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Phone: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox7" Text='<%# Bind("scannerid") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Address 1: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox10"  Text='<%# Bind("groupnum") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%" align="right">
                                            Contact Profile: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox2" Text='<%# Bind("Agency") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Phone: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox17" Text='<%# Bind("scannerid") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Address 1: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox18"  Text='<%# Bind("groupnum") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%" align="right">
                                            Contact Profile: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox19" Text='<%# Bind("Agency") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Phone: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox20" Text='<%# Bind("scannerid") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Address 1: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox21"  Text='<%# Bind("groupnum") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%" align="right">
                                            Contact Profile: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox22" Text='<%# Bind("Agency") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Phone: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox23" Text='<%# Bind("scannerid") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Address 1: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox24"  Text='<%# Bind("groupnum") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%" align="right">
                                            Contact Profile: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox25" Text='<%# Bind("Agency") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Phone: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox26" Text='<%# Bind("scannerid") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Address 1: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox27"  Text='<%# Bind("groupnum") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="20%" align="right">
                                            Contact Profile: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox28" Text='<%# Bind("Agency") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Phone: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox29" Text='<%# Bind("scannerid") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                        <td width="20%" align="right">
                                            Address 1: </td>
                                        <td width="20%" align="left">
                                            <telerik:RadTextBox ID="RadTextBox30"  Text='<%# Bind("groupnum") %>' Runat="server" Width="300px"></telerik:RadTextBox>
                                        </td>
                                    </tr>                                                                                                                                                                                   
                                </table>
                             </FormTemplate>
                  </EditFormSettings>
            </MasterTableView>
             
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                <Selecting AllowRowSelect="True"></Selecting>
                <Resizing AllowRowResize="False" ResizeGridOnColumnResize="False"></Resizing>
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>           
            <GroupingSettings ShowUnGroupButton="true" />
        </telerik:RadGrid>




Iana Tsolova
Telerik team
 answered on 03 Feb 2011
5 answers
209 views
Hi;
I am using Telerik RadGrid in a panel which open by modal extender popup.
but some how in IE6.0 the background is not greyed but work fine in IE8.0
I think it has do some thing with z-index property in both browser
Can you please tell What is the z index property set for Telerik RadGrid
in IE8.0 and in IE 6.0
Daniel
Telerik team
 answered on 03 Feb 2011
2 answers
139 views
I have a page with a panel (pnlA), a radcombobox and a usercontrol. I have added ajaxsettings which allow the radcombobox to update the panel using ajax. I would like for the controls in the usercontrol to also update the panel. I have tried to add ajaxsettings so that the usercontrol itself is the ajaxified control. I have also tried wrapping the user control in a panel and using this container panel as the ajaxified control.  I have tried wrapping the controls in the usercontrol in a panel and then exposing this panel as a property of the user control, and then setting this as the ajaxified control. Lastly, I have tried exposing the individual controls as properties of the usercontrol, and then setting these as the ajaxifiedcontrols. None of these seems to allow the controls within the user control to update the original panel (pnlA) in my page. How can I do this?
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 03 Feb 2011
1 answer
89 views
Hi,
I am using 2009.3.1103.20 version of Telerik Controls.
Now, on my RadGrid, I process something serverside when row is clicked, and then visible other panel of my page.
Everything works fine but actually I want to display progressbar when Grid's row is clicked and its processing something.
I already have a Div which I display on everypostback to display progressbar and I want to call the same javascript function to display that progressbar when Grid's row is clicked.
I tried but could not achieve this.
So what I am looking for here is, when Grid's row is clicked, Want to call a javascript function which displays progressbar.
I need to pass clicked Row as object so that I can display progressbar at the same level, if its not possible, I can surely pass RadGrid itself to display progressbar at top of Grid. But my first preference is passing Row as object to my function.
Here is my code.
<div class="Scrollgrid" style="width: 1100px; height: 600px;"
                                                <telerik:RadGrid ID="RadGridAllRequests" runat="server" AllowPaging="true" AllowSorting="true"
                                                    AllowFilteringByColumn="true" AutoGenerateColumns="False" BorderStyle="None"
                                                    GridLines="Both" OnNeedDataSource="RadGridAllRequests_needdatasource" OnItemDataBound="RadGridAllRequests_ItemDataBound"
                                                    OnItemCreated="RadGridAllRequests_ItemCreated" OnItemCommand="RadGridAllRequests_ItemCommand"
                                                         
                                                         
                                                    AllowMultiRowSelection="true" SelectedItemStyle-CssClass="SelectedItem" Width="100%"
                                                    Skin="WebBlue"
                                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" AlwaysVisible="true" /> 
                                                    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true"
                                                        <Selecting AllowRowSelect="true" /> 
<%--<ClientEvents OnRowClick="RowClicked" />--%>
                                                    </ClientSettings
                                                        
                                                        
                                                        
                                                    <MasterTableView 
                                                           
                                                    ShowHeadersWhenNoRecords="true" 
                                                    AllowFilteringByColumn="true" DataKeyNames="RequestInfoID"
                                                        <Columns
                                                                
                                                            <telerik:GridNumericColumn DataField="RequestInfoID" HeaderText="Request No." SortExpression="RequestInfoID"
                                                                DataType="System.Int64" FilterControlWidth="40px" HeaderStyle-Width="100px"
                                                                      
                                                                
                                                                       
                                                            </telerik:GridNumericColumn
</Columns
                                                        <EditFormSettings
                                                            <PopUpSettings ScrollBars="None" /> 
                                                        </EditFormSettings
                                                        <ExpandCollapseColumn Resizable="False" Visible="False"
                                                            <HeaderStyle /> 
                                                        </ExpandCollapseColumn
                                                        <RowIndicatorColumn Visible="False"
                                                            <HeaderStyle /> 
                                                        </RowIndicatorColumn
                                                    </MasterTableView
                                                </telerik:RadGrid
                                            </div>
  
  
  
  
DIV AT THE BOTTOM OF PAGE:
    <div class="WaitDisplay" id="divWait" style="display: none; width: auto;">
        <img alt="" src="Images/spinner2.gif" />
        <div id="divWaitMessage">
            Processing...
        </div>
    </div>
  
  
  
JAVASCRIPT:
  
function buttonClicked_WithObj(obj) {
  
    divWaitMessage.innerHTML = "Processing........<br />Please wait<br />"
    displayBanner_WithObj(divWait, obj);
}
  
function displayBanner_WithObj(oDiv, obj) {
    oDiv.style.position = "absolute";
  
  
    var leftPos = getAbsoluteLeft(obj);
    var topPos = getAbsoluteTop(obj);
  
  
    oDiv.style.top = topPos - 30;
    oDiv.style.left = leftPos;
  
    oDiv.style.display = "block";
  
}
  
  
function getAbsoluteLeft(oNode) {
    var oCurrentNode = oNode;
    var iLeft = 0;
    while (oNode != null && oCurrentNode.tagName != "BODY") {
        iLeft += oCurrentNode.offsetLeft;
        oCurrentNode = oCurrentNode.offsetParent;
    }
  
    return iLeft;
}
  
function getAbsoluteTop(oNode) {
    var oCurrentNode = oNode;
    var iTop = 0;
    while (oNode != null && oCurrentNode.tagName != "BODY") {
        iTop += oCurrentNode.offsetTop;
        oCurrentNode = oCurrentNode.offsetParent;
    }
    return iTop;
}

Now in Above code, I want to call something like
onRowClick="javascript:Page_BlockSubmit = false;buttonClicked_WithObj(this);"

Any idea how can I call this javascript function to display my Div by passing clicked row as object or by passing Grid as object?

This javascript is working fine for all the controls on screen so just need to call to display progressbar on clicked row.

Thanks in advance,





Maria Ilieva
Telerik team
 answered on 03 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?