Edit form now showing controls in popup form ?

2 posts, 0 answers
  1. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 06 Apr 2016 Link to this post

    I am trying to get inline popup working but for some resson its displaying nothing no editable fields for the user the insert and cancel are showing fine. I have made sure to have ajax manager and a ajax loader as per demo


    01.<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
    02.       <AjaxSettings>
    03.           <telerik:AjaxSetting AjaxControlID="rpNotes">
    04.               <UpdatedControls>
    05.                   <telerik:AjaxUpdatedControl ControlID="rpNotes" LoadingPanelID="RadAjaxLoadingPanel1" />
    06.               </UpdatedControls>
    07.           </telerik:AjaxSetting>
    08.       </AjaxSettings>
    09.   </telerik:RadAjaxManager>
    10.                           <telerik:RadAjaxPanel ID="rpNotes" runat="server">
    11.                                 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    12.                               <telerik:RadGrid ID="rgNotes" runat="server" GroupPanelPosition="Top" Skin="Bootstrap">
    13.                                   <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
    14.                                   <MasterTableView NoDetailRecordsText="No notes for this Appointment" AutoGenerateColumns="False" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Notes" AllowAutomaticInserts="true" EditMode="InPlace">
    15.                                       <Columns>
    16.                                             <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
    17.                   </telerik:GridEditCommandColumn>
    18.                                           <telerik:GridBoundColumn DataField="Subject" FilterControlAltText="Filter Subject column" HeaderText="subject" ReadOnly="True" SortExpression="Subject" UniqueName="Subject">
    19.                                           </telerik:GridBoundColumn>
    20.                                       </Columns>
    21.                                   </MasterTableView>
    22.                               </telerik:RadGrid>
    23.                           </telerik:RadAjaxPanel>
    24.                           <div></div>
    25.                       </div>
    26.                       <br />

    I am filling my rad grid using dal access which is the following routine.


    01./// <summary>
    02./// Gets the allnotes by appointment.
    03./// </summary>
    04./// <param name="id">The identifier.</param>
    05./// <returns></returns>
    06.public List<tblApertureNetNote> getNotesByAppointment(int id)
    08.    try
    09.    {
    10.        var _notes = apertureNetEntities.tblApertureNetNotes.Where(f => f.isDeleted == false && f.appointment_id == id).OrderByDescending(o => o.authCreatedDate).ToList();
    11.        return _notes.AsQueryable().ToList();
    12.    }
    13.    catch (Exception ex)
    15.    {
    16.        string inner = string.Empty;
    17.        if (ex.InnerException != null)
    18.        {
    19.            inner = ex.InnerException.ToString();
    20.        }
    21.        logger.Error("Error in IQueryable function getNotesByAppointment " + ex.ToString() + " " + inner);
    22.        return null;
    23.    }

  2. Eyup
    Eyup avatar
    4085 posts

    Posted 11 Apr 2016 Link to this post

    Hi Philip,

    Could you please make sure that you are not using DataBind() to bind the grid? Performing complex grid operations such as Inserting, Deleting, Updating, Hierarchy relations, Grouping, Exporting, Paging, Sorting, Filtering, etc. require accommodating appropriate database operations.  Therefore, we suggest you to avoid Simple Databinding and strongly recommend the use of more advanced databinding methods, which automatically handle the aforementioned functions:
    Declarative DataSource
    Programmatic Data Binding
    (NeedDataSource and DetailTableDataBind event)

    You should set the DataSource property only within these event handlers.

    Also, temporarily disable any AJAX on the page if present (RadAjaxManager, RadAjaxPanel, UpdatePanel, etc.) and enable your script debugger (FireBug or F12) to see whether there are any script or server errors interfering. You've stated that disabling AJAX fixes the problem, but nevertheless, there can be some script error hiding.

    I hope this will prove helpful.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top