get_batchEditingManager not working in the Radgrid inside a repeater control

3 posts, 0 answers
  1. Nisheet
    Nisheet avatar
    7 posts
    Member since:
    Mar 2019

    Posted 18 Jun 2019 Link to this post

    Hi Team,

    I have a requirement where I need to create a dynamic editable grid inside a repeater record. I have referred the following telerik links to do the implementation:

    https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultvb.aspx?show-source=true

    https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/commanditem/command-item-template#how-to-customize-the-add-new-recordrefresh-text-in-the-commanditem-area

    However, the javascript call to get_batchEditingManager method is not working for the RadPushButton under CommandItemTemplate. Please note that the difference in my implemenation is that the RadGrid is dynamically bound and is nested inside a repeater. Please refer the attached code snippet for your reference.

    Regards,

    Nisheet

     

  2. Nisheet
    Nisheet avatar
    7 posts
    Member since:
    Mar 2019

    Posted 18 Jun 2019 Link to this post

    Can anyone please respond to this post as it's a bit urgent.
  3. Vessy
    Admin
    Vessy avatar
    2070 posts

    Posted 19 Jun 2019 Link to this post

    Hi Nisheet,

    The faced behavior is caused due to the Static IDs used for the Telerik controls on the page. It is recommended by Microsoft to use ClientIDMode set to Static only for static controls.The controls from the UI for ASP.NET AJAX suite on the other hand are controls with complex hierarchies of child controls and templates so setting their ClientIDMode property to Static breaks their functionality. Can you, please, set the ClientIDMode = "AutoID" property of RadGrid and see if the problem persists?

    You can read more details on this matter here:
    https://docs.telerik.com/devtools/aspnet-ajax/general-information/troubleshooting/general-troubleshooting#setting-clientidmode-property-to-static-breaks-the-telerik-controls-functionality

    Regards,
    Vessy
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top