RadAjaxPanel and RadAjaxManager

8 posts, 0 answers
  1. Willem
    Willem avatar
    5 posts
    Member since:
    Oct 2012

    Posted 22 Oct 2012 Link to this post

    Hello,

    I have a master page and a content page.
    Is it possible to have a RadAjaxPanel on a master page and a RadAjaxManger on a content page?

    Greetings,
    Willem Vissser
  2. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 24 Oct 2012 Link to this post

    Hi Willem,

    Please note that using RadAjaxManager simultaneously with RadAjaxPanel or UpdatePanel ( or implementing multiple wrapped RadAjaxPanels ) is not a supported scenario and we highly recommend to avoid such implementation. Please either use just the manager to update your controls replacing the RadAjaxPanel with a regular asp:Panel, or use the RadAjaxPanel alone to wrap your page.

    Furthermore, if you are using a complex scenario like WebUserControls or Master/ContentPages, we recommend you to place RadAjaxManager instance on the main/master page and add a proxy control to the user control/content page as described in the following help topic:
    RadAjax and MasterPage

    I hope the clarification was helpful.

    Kind regards,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Badrinarayanan
    Badrinarayanan avatar
    21 posts
    Member since:
    Apr 2008

    Posted 26 Oct 2012 Link to this post

    Hi,
    I have a rad grid and a link button with the grid, which inturn will open a radwindow.  To close the radwindow I am using the following code,
     
    function GetRadWindow() {
          var oWindow = null;
          if (window.radWindow)
              oWindow = window.radWindow;
          else if (window.frameElement.radWindow)
              oWindow = window.frameElement.radWindow;
          return oWindow;
      }
      function ClosePopUp() {
          var owindow = GetRadWindow();
          owindow.Close("Close");
      }

    Upon close of radwindow, I need to rebind the radgrid.  To make this, I am using OnClientClose and it calls the following javascript.

    function RadWindowClosedEvent() {
     
             document.forms[0].submit();
            }

    In this scenario, the radajaxpanel is not working while rebinding the radgrid.  Due to this, it appears as though the page has stopped working. 
    How to get the radajaxpanel working in this situation ? 

    Thanks
    Badrinarayanan
  5. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 30 Oct 2012 Link to this post

    Hello Badrinarayanan,

    Please try using the following approach to rebind the grid:
    var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
    masterTable.rebind();

    I hope this will prove helpful.

    All the best,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Badrinarayanan
    Badrinarayanan avatar
    21 posts
    Member since:
    Apr 2008

    Posted 04 Nov 2012 Link to this post

    Hi,

    I have a btnRefresh button in the parent window.  Upon click of this button, I am setting the datasource and databind for RadGrid.
    DataTable dt = GetData();
     radgridTiTleExaminer.DataSource = dt
     radgridTiTleExaminer.Databind();

    In the RAD window close event I am calling the above button click event.
    function RadWindowClosedEvent() {
       
     document.getElementById("ctl00_ContentPlaceHolderRow2_btnRefresh").click();
            }

    But, since there is RADAjaxPanel, though this event gets called, the RAD grid does not refresh.
    I tried placing the btnRefresh outside the RADAjaxPanel.  But it did not help.

    If i comment the RADAjaxPanel, the RADGrid gets refreshed and bound correcly.  But, this strips me off the loading panel.

    Thanks
    Badri
  7. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 07 Nov 2012 Link to this post

    Hi Badrinarayanan,

    I have created a sample RadGrid web site where I implemented the described scenario. On my end everything works as expected and the grid is being refreshed correctly. Could you please check out the attached application and determine the crucial differences between our projects?

    Additionally, please note that performing complex grid operations such as Inserting, Deleting, Updating, Hierarchy relations, Grouping, Paging, Sorting, Filtering require accommodating appropriate database operations. To use them with Simple Databinding you will need to declare custom event handling for every operation which requires binding to your DataSource. Therefore, we strongly recommend the use of more advanced databinding methods, which automatically handle the aforementioned functions:
    Declarative DataSource
    Advanced Data Binding

    Regards,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  8. Badrinarayanan
    Badrinarayanan avatar
    21 posts
    Member since:
    Apr 2008

    Posted 19 Dec 2012 Link to this post

    Hi,
    Thanks for the reply.  The grid is refreshing correctly after the radwindow closes.  Yet, the old datatable gets assigned again after 1 or 2 seconds delay.  This is visible only in firefox and chrome browsers.  In IE, it appears like the grid has not got refreshed.  My code is attached below.

    Please help.

    aspx:
    <%@ Page Title="MDKPortal :: Title Examiner" Language="C#" MasterPageFile="~/Main.Master"
        AutoEventWireup="true" CodeBehind="TitleExaminer.aspx.cs" Inherits="Casee.WebPortal.New.TitleExaminer" %>
     
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <style type="text/css">
            .rgHeader
            {
                background-image: none !important;
                background-color: #eadf89 !important;
            }
            .rdTop
            {
                border: 1px solid #C1B02C;
            }
            .rdMiddle
            {
                border-left: 1px solid #C1B02C;
                border-right: 1px solid #C1B02C;
            }
            .rdBottom
            {
                border-top: 1px solid #C1B02C;
            }
            .rdLeft, .rdCenter, .rdRight
            {
                background-image: none !important;
            }
            .rdTop .rdLeft, .rdTop .rdCenter, .rdTop .rdRight
            {
                background-color: #eadf89 !important;
            }
            .RadDock .rdTitleBar em
            {
                text-align: left;
                color: #000000 !important;
                font-weight: bold;
            }
        </style>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" InitialDelayTime="0"
            MinDisplayTime="1000" Transparency="30" BackColor="#E0E0E0">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanelTitleExaminer" runat="server" LoadingPanelID="AjaxLoadingPanel"
            OnAjaxRequest="RadAjaxManager1_AjaxRequest">
            <div id="divPanel" runat="server" class="box2 width900">
                <div class="caption">
                    <span>Title Examiner</span>
                    <hr />
                </div>
                <br />
                <asp:Label ID="lblPasswordMsg" runat="server" CssClass="errorcaption width500"></asp:Label>
                <br />
                <div id="CollabseSearchDiv">
                    <telerik:RadDockLayout runat="server" ID="RadDockLayout1">
                        <telerik:RadDockZone ID="RadDockZone" runat="server" Orientation="Vertical" MinHeight="60px"
                            BorderColor="Transparent" CssClass="width900 center">
                            <telerik:RadDock runat="server" ID="RadDockContent" DefaultCommands="ExpandCollapse"
                                Title="Search Criteria" EnableAnimation="true" EnableRoundedCorners="true" Top="20"
                                EnableDrag="false" Left="20">
                                <ContentTemplate>
                                    <table style="width: 100%;">
                                        <br />
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblState" runat="server" Text="State" CssClass="formlabel2 right" />
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlState" runat="server" Width="150">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblOrder" runat="server" Text="Order Type" CssClass="formlabel2 right" />
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlOrder" runat="server" Width="150">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblCaseRef" runat="server" Text="Case Ref" CssClass="formlabel2 right" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCaseRef" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblStatus" runat="server" Text="Status" CssClass="formlabel2 right" />
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlStatus" runat="server" DataTextField="" DataValueField="">
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblMDKFileNo" runat="server" Text="MDK File No." CssClass="formlabel2 right" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtMDKFileNo" runat="server" />
                                            </td>
                                            <td>
                                                <asp:Label ID="lblAddress" runat="server" Text="Address" CssClass="formlabel2 right" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtAddress" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                  
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="6" class="btn acenter">
                                                <asp:ImageButton ID="imgbtnSearch" runat="server" ImageUrl="~/Images/Search_btn.png"
                                                    OnClick="btnSearch_Click" AlternateText="Search" />
                                                <asp:ImageButton ID="imgbtnReset" runat="server" ImageUrl="~/Images/reset_btn.png"
                                                    OnClick="btnReset_Click" AlternateText="Reset" />
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </telerik:RadDock>
                        </telerik:RadDockZone>
                    </telerik:RadDockLayout>
                </div>
                <div class="box2 width900">
                    <asp:Image ID="imgDetailPrint" runat="server" ImageUrl="~/images/print_ico.png" Style="float: right;
                        cursor: pointer" ToolTip="Print" onclick="javascript:printDiv('RadGridListingDiv');"
                        Visible="false" />
                    <asp:ImageButton ID="imgbtnExportToExcel" runat="server" ImageUrl="~/Images/excell_ico.png"
                        OnClick="imgbtnExportToExcel_Click" AlternateText="ExportToExcel" Style="float: right;
                        margin-right: 10px; cursor: pointer" ToolTip="Export To Excel" Visible="false" />
                </div>
                <div id="RadGridListingDiv" class="box2 width900">
                    <telerik:RadGrid ID="radgridTiTleExaminer" AutoGenerateColumns="false" PageSize="10"
                        AllowSorting="true" runat="server" OnNeedDataSource="radgridTiTleExaminer_NeedDataSource"
                        AllowPaging="true" Width="900" Style="margin: 0px auto;" Visible="false">
                        <GroupingSettings CaseSensitive="false" />
                        <MasterTableView Width="100%">
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="Casee #" HeaderStyle-Width="90px">
                                    <ItemTemplate>
                                        <span class="gridbtngroup"><a onclick='javascript:PopUp(<%#Eval("TitleID") %>);return false;'>
                                            <asp:Label ID="lnkDetails" runat="server" Text='<%#Eval("FILENO") %>' ToolTip="Details"></asp:Label>
                                        </a></span>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="CaseRef" HeaderText="CaseRef" SortExpression="CaseRef" />
                                <telerik:GridBoundColumn DataField="TYPEOFORDER" HeaderText="Type Of Order" SortExpression="TYPEOFORDER" />
                                <telerik:GridBoundColumn DataField="INSTRUCTIONS" HeaderText="Instructions" SortExpression="INSTRUCTIONS" />
                                <telerik:GridBoundColumn DataField="COUNTY" HeaderText="County" SortExpression="COUNTY" />
                                <telerik:GridBoundColumn DataField="StateName" HeaderText="State" SortExpression="State" />
                                <telerik:GridBoundColumn DataField="TURNAROUND" HeaderText="TurnAround" SortExpression="TURNAROUND" />
                                <telerik:GridBoundColumn DataField="DATERECEIVED" HeaderText="Date Received" SortExpression="DATERECEIVED" />
                                <telerik:GridBoundColumn DataField="AGEOFORDER" HeaderText="Age of Order" SortExpression="AGEOFORDER" />
                                <telerik:GridBoundColumn DataField="TITLESTATUS" HeaderText="Title Status" SortExpression="TITLESTATUS" />
                                <telerik:GridBoundColumn DataField="DATESUBMITTED" HeaderText="Date Submitted" SortExpression="DATESUBMITTED" />
                            </Columns>
                            <PagerStyle Position="Bottom" Mode="NumericPages" HorizontalAlign="Left" BackColor="#eadf89" />
                        </MasterTableView>
                        <HeaderStyle CssClass="Gridlink" />
                        <ItemStyle BackColor="#ffffff" />
                        <AlternatingItemStyle BackColor="#fbf7d8" />
                    </telerik:RadGrid>
                </div>
                <asp:HiddenField ID="hdnAccept" runat="server" />
                <asp:HiddenField ID="hdnReject" runat="server" />
                <asp:HiddenField ID="hdnEmailNotification" runat="server" />
                <asp:HiddenField ID="hdnPortalStatusUpdateNotification" runat="server" />
            </div>
            <telerik:RadWindowManager ID="RadWindowManager" runat="server" OnClientShow="" OnClientClose=""
                LoadingPanelID="AjaxLoadingPanel" EnableEmbeddedSkins="false" VisibleStatusbar="true">
                <Windows>
                    <telerik:RadWindow ID="DialogViewer" OpenerElementID="" Top="50px" OffsetElementID=""
                        Left="200px" Modal="true" runat="server" Width="800px" Height="500px" Title="Modal Window"
                        NavigateUrl="" VisibleTitlebar="false" Behavior="None" VisibleStatusbar="false"
                        RegisterWithScriptManager="true" ShowContentDuringLoad="false" OnClientClose="RadWindowClosedEvent"
                        Style="z-index: 200; position: absolute;">
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
            <asp:Button ID="btnRefresh" runat="server" OnClick="btn_Refresh" Text="Refresh" Style="display: none;" />
        </telerik:RadAjaxPanel>
        <script type="text/javascript">
     
            function PopUp(vFileNo) {
                var vUrl = 'popup/PopUpTitleExaminer.aspx?Type=TitleExaminer&ID=' + vFileNo;
                var oWnd = window.radopen(vUrl, "DialogViewer");
            }
            function RadWindowClosedEvent(sender, eventArgs) {
                var arg = eventArgs.get_argument();
                if (arg != "closebtn") {
                    document.forms[0].submit();
                    //document.getElementById("ctl00_ContentPlaceHolder1_RadDockContent_C_btnRefresh").click();
                    document.getElementById("ContentPlaceHolder1_btnRefresh").click();
                     
                }
            }
            function printDiv(divName) {
                var printContents = document.getElementById(divName).innerHTML;
                var originalContents = document.body.innerHTML;
                document.body.innerHTML = printContents;
                window.print();
                document.body.innerHTML = originalContents;
            }
        </script>
    </asp:Content>


    c# :

    namespace Casee.WebPortal.New
    {
        public partial class TitleExaminer : BaseForm
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                try
                {
                    //ScriptManager scriptmanager = (ScriptManager)Master.FindControl("scriptmanager");
     
                    //if (scriptmanager != null)
                    //{
                    //    scriptmanager.RegisterPostBackControl(imgbtnExportToExcel);
                    //    //scriptmanager.RegisterPostBackControl(btnRefresh);
                    //}
     
                    
                        LoadTitleStatusMaster();
                        LoadOrderStatusMaster();
                        LoadStateMaster();
                        ddlStatus.SelectedIndex = 1; //Defaulting to 'New' status
     
                     
                }
                catch (Exception ex)
                {
                    throw ex;
                }
     
            }
            protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
            {
                try
                {
                    if (e.Argument == "Rebind")
                        radgridTiTleExaminer.Rebind();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            protected void radgridTiTleExaminer_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
            {
                try
                {
                    radgridTiTleExaminer.Visible = true;
                    DataTable dt = GetData();
                    dt.Columns.Add("CaseNumber1");
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        dt.Rows[i]["CaseNumber1"] = dt.Rows[i]["FILENO"].ToString().Replace("-", "");
                    }
     
                    radgridTiTleExaminer.DataSource = dt.DefaultView;
     
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            protected void btnSearch_Click(object sender, EventArgs e)
            {
                try
                {
                    DataTable dt = GetData();
                    dt.Columns.Add("CaseNumber1");
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        dt.Rows[i]["CaseNumber1"] = dt.Rows[i]["FILENO"].ToString().Replace("-", "");
                    }
     
                    imgDetailPrint.Visible = true;
                    imgbtnExportToExcel.Visible = true;
                    radgridTiTleExaminer.Visible = true;
                    radgridTiTleExaminer.DataSource = dt;
                    radgridTiTleExaminer.DataBind();
     
                    if (ddlStatus.SelectedValue == "COMPLETE")
                    {
                        radgridTiTleExaminer.Columns[10].Visible = true;
                    }
                    else
                    {
                        radgridTiTleExaminer.Columns[10].Visible = false;
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            protected void btn_Refresh(object sender, EventArgs e)
            {
                try
                {
                    //radgridTiTleExaminer.Rebind();
                    DataTable dt = GetData();
                    imgDetailPrint.Visible = true;
                    imgbtnExportToExcel.Visible = true;
                    radgridTiTleExaminer.DataSource = dt;
                    radgridTiTleExaminer.Rebind();
     
                    if (ddlStatus.SelectedValue == "COMPLETE")
                    {
                        radgridTiTleExaminer.Columns[10].Visible = true;
                    }
                    else
                    {
                        radgridTiTleExaminer.Columns[10].Visible = false;
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            protected void btnReset_Click(object sender, EventArgs e)
            {
                try
                {
                    ddlState.SelectedItem.Text = "--ALL--";
                    ddlOrder.SelectedValue = "--ALL--";
                    ddlStatus.SelectedValue = "NEW";
                    txtCaseRef.Text = string.Empty;
                    txtMDKFileNo.Text = string.Empty;
                    txtAddress.Text = string.Empty;
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
     
            protected void imgbtnExportToExcel_Click(object sender, EventArgs e)
            {
                try
                {
                    if (ViewState["vsReportDT"] != null)
                    {
                        DataTable dtTiTleExaminerListing = (DataTable)ViewState["vsReportDT"];
     
                        dtTiTleExaminerListing.Columns.Remove("TitleID");
                        dtTiTleExaminerListing.Columns.Remove("CompanyID");
                        dtTiTleExaminerListing.Columns.Remove("StateID");
                        dtTiTleExaminerListing.Columns.Remove("TitleExaminerID");
                        dtTiTleExaminerListing.Columns.Remove("TYPE");
                        dtTiTleExaminerListing.Columns.Remove("BORROWER2NAME");
                        dtTiTleExaminerListing.Columns.Remove("PropertyID");
                        dtTiTleExaminerListing.Columns.Remove("CaseNumber1");
     
                        dtTiTleExaminerListing.Columns["FILENO"].SetOrdinal(0);
                        dtTiTleExaminerListing.Columns["BORROWER1NAME"].SetOrdinal(1);
                        dtTiTleExaminerListing.Columns["TYPEOFORDER"].SetOrdinal(2);
                        dtTiTleExaminerListing.Columns["COUNTY"].SetOrdinal(3);
                        dtTiTleExaminerListing.Columns["StateName"].SetOrdinal(4);
                        dtTiTleExaminerListing.Columns["TURNAROUND"].SetOrdinal(5);
                        dtTiTleExaminerListing.Columns["DATERECEIVED"].SetOrdinal(6);
                        dtTiTleExaminerListing.Columns["AGEOFORDER"].SetOrdinal(7);
                        dtTiTleExaminerListing.Columns["TITLESTATUS"].SetOrdinal(8);
     
                        dtTiTleExaminerListing.Columns["FILENO"].ColumnName = "CASENUMBER";
                        dtTiTleExaminerListing.Columns["BORROWER1NAME"].ColumnName = "BORROWER";
                        dtTiTleExaminerListing.Columns["TYPEOFORDER"].ColumnName = "TYPEOFORDER";
                        dtTiTleExaminerListing.Columns["COUNTY"].ColumnName = "COUNTY";
                        dtTiTleExaminerListing.Columns["StateName"].ColumnName = "STATE";
                        dtTiTleExaminerListing.Columns["TURNAROUND"].ColumnName = "TURNAROUND";
                        dtTiTleExaminerListing.Columns["DATERECEIVED"].ColumnName = "DATERECEIVED";
                        dtTiTleExaminerListing.Columns["AGEOFORDER"].ColumnName = "AGEOFORDER";
                        dtTiTleExaminerListing.Columns["TITLESTATUS"].ColumnName = "TITLESTATUS";
     
                        ExportToCSV(dtTiTleExaminerListing, "TiTleExaminerExcelReport" + DateTime.Now.ToString("_dd_MM_yyyy_hh_mm_ss"), ",");
                    }
     
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
     
     
            #region Private Helper Methods
            private void ExportToCSV(DataTable dt, string fileName, string delimiter)
            {
                //prepare the output stream                       
                Response.Clear();
                Response.ContentType = "text/csv";
                Response.AppendHeader("Content-Disposition",
                    string.Format("attachment; filename={0}", fileName + ".csv"));
     
                //write the csv column headers
                for (int i = 0; i < dt.Columns.Count; i++)
                {
                    Response.Write(dt.Columns[i].ColumnName);
                    Response.Write((i < dt.Columns.Count - 1) ? delimiter : Environment.NewLine);
                }
     
                //write the data
                foreach (DataRow row in dt.Rows)
                {
                    for (int i = 0; i < dt.Columns.Count; i++)
                    {
                        Response.Write(row[i].ToString());
                        Response.Write((i < dt.Columns.Count - 1) ? delimiter : Environment.NewLine);
                    }
                }
     
                Response.End();
     
            }
            private void LoadTitleStatusMaster()
            {
                DataTable dtTitleStatus = CaseControlLibrary.LookUp.PortalfdtStatusList("TITLEEXAMSTATUS");
                System.Data.DataRow dr = dtTitleStatus.NewRow();
                dr["StatusName"] = "--ALL--";
                dtTitleStatus.Rows.InsertAt(dr, 0);
                ddlStatus.DataSource = dtTitleStatus.DefaultView;
                ddlStatus.DataTextField = "StatusName";
                ddlStatus.DataValueField = "StatusName";
                ddlStatus.DataBind();
            }
            private void LoadOrderStatusMaster()
            {
                DataTable dtTypeOfOrderStatus = CaseControlLibrary.LookUp.PortalfdtForeclosure_TitleSearchTypeList();
                System.Data.DataRow dr = dtTypeOfOrderStatus.NewRow();
                dr["TitleSearchTypeDescription"] = "--ALL--";
                dtTypeOfOrderStatus.Rows.InsertAt(dr, 0);
                ddlOrder.DataSource = dtTypeOfOrderStatus.DefaultView;
                ddlOrder.DataTextField = "TitleSearchTypeDescription";
                ddlOrder.DataValueField = "TitleSearchTypeDescription";
                ddlOrder.DataBind();
            }
            private void LoadStateMaster()
            {
                DataTable dtMDKState = MDK.Business.Common.State.PortalMDKStateList().Tables[0];
                System.Data.DataRow dr = dtMDKState.NewRow();
                dr["StateName"] = "--ALL--";
                dtMDKState.Rows.InsertAt(dr, 0);
                ddlState.DataSource = dtMDKState.DefaultView;
                ddlState.DataTextField = "StateName";
                ddlState.DataValueField = "StateID";
                ddlState.DataBind();
            }
            private DataTable GetData()
            {
                string xRoot = CreateXML();
                DataSet dsResult = CaseControlLibrary.TitleExaminer.PortalNew_TitleExaminerListing(xRoot.ToString());
                //ViewState["vsReportDT"] = dsResult.Tables[0];
                return dsResult.Tables[0];
            }
            private string CreateXML()
            {
                string TitleExamierIDData = Convert.ToString(foGetFromSession("TitleExaminerIDData"));
                string[] TitleExaminerIDdata = TitleExamierIDData.Split(',');
     
                XElement xTitleExaminer = new XElement("TitleExaminer");
                XElement xItem = new XElement("Item");
                XElement xRootTitleExaminerData = new XElement("TitleExaminerData");
                for (int i = 0; i < TitleExaminerIDdata.Length; i++)
                {
                    xRootTitleExaminerData.Add(new XElement("TitleExaminerID", TitleExaminerIDdata[i].ToString()));
                }
                xItem.Add(xRootTitleExaminerData);
                xItem.Add(new XElement("MDKStateID", ddlState.SelectedValue));
                xItem.Add(new XElement("CaseNumber", txtMDKFileNo.Text.Trim()));
                xItem.Add(new XElement("CaseRef", txtCaseRef.Text.Trim()));
                xItem.Add(new XElement("PropertyAddress", txtAddress.Text.Trim()));
                xItem.Add(new XElement("TitleStatus", ddlStatus.SelectedValue));
                xItem.Add(new XElement("TypeOfOrder", ddlOrder.SelectedValue.ToString()));
                xTitleExaminer.Add(xItem);
                return xTitleExaminer.ToString();
            }
            #endregion
        }
    }



    Thanks
    Badrinarayanan
  9. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 24 Dec 2012 Link to this post

    Hi Badrinarayanan,

    In case you want to use an external edit form, please check out the following demos and choose which implementation best matches your requirements:
     Grid / PopUp Edit Form
     Grid / Editing with External Form 
     Window / Use as controls container
     Window / Edit Dialog for RadGrid
     Grid / Insert with Tooltip

    I hope this will prove helpful.

    All the best,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017