GridTemplateColumn with batch mode

6 posts, 1 answers
  1. Ashraf Sabry
    Ashraf Sabry avatar
    88 posts
    Member since:
    Jan 2011

    Posted 30 Dec 2013 Link to this post

    Greetings,

    I have a sever problem with template columns when on batch mode. To see and reproduce the problem I made a web page that can be downloaded from here.
    Please download and run the referenced website with the latest version of RadControls. Do the following to produce the error:
    1. Click the "add new record" button
    2. Then click on any of the other closed rows

    What happens is that the newly added row cells are all closed except the template column cell (the one with the search box).
    I dug into the client side code, and noticed that for the template column there are two editor DIVs. One is inserted to the edited row while the other stays as is. One of the DIVs corresponds to the edit template while the other to the insert template.

    Am I doing something wrong? How to combine the two editor DIVs into one?
    I tried creating an inherited GridTemplateColumnEditor but found that the column doesn't use it.

  2. Ashraf Sabry
    Ashraf Sabry avatar
    88 posts
    Member since:
    Jan 2011

    Posted 30 Dec 2013 Link to this post

    Please view the attached animated gif
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 30 Dec 2013 Link to this post

    Hello Ashraf,

    As documented in our help article "Batch Editing", when using template columns only the editor in the EditItemTemplate will be initialized and will work properly.

    Nevertheless, our developers team is currently working on this functionality (for supporting InsertItemTemplate with Batch edit mode) and it should be introduced in one of our future releases.

    For the time being, only the EditItemTemplate should be used.


    Regards,
    Konstantin Dikov
    Telerik
    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 the blog feed now.
  5. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 30 Dec 2013 Link to this post

    Hello Ashraf,

    As documented in our help article "Batch Editing", when using template columns only the editor in the EditItemTemplate will be initialized and will work properly.

    Nevertheless, our developers team is currently working on this functionality (for supporting InsertItemTemplate with Batch edit mode) and it should be introduced in one of our future releases.

    For the time being, only the EditItemTemplate should be used.


    Regards,
    Konstantin Dikov
    Telerik
    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 the blog feed now.
  6. Ashraf Sabry
    Ashraf Sabry avatar
    88 posts
    Member since:
    Jan 2011

    Posted 30 Dec 2013 Link to this post

    It's already working! When I removed the InsertItemTemplate everything worked alright.
    This is exactly what I want. I want just one template. InsertItemTemplate was an annoying redundancy.

    Did you implement this in the last service pack? I remember I once tested removing the InsertItemTemplate and found that when adding rows the target cell was blank.

    Maybe InsertItemTemplate is not logical in the batch mode. What do you (and your clients) think?
  7. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 02 Jan 2014 Link to this post

    Hi Ashraf,

    I am glad to see that everything is working as expected now.

    As for the InserItemTemplate, it is yet to be implemented and it is not available in our latest release. 

    Regarding the need of the InsertItemTemplate, it is always a plus to have a way to customize the look and feel and to have more control. Also, I may assure you that the implementation of the InsertItemTemplate will not break the current workflow of the grid.


    Regards,
    Konstantin Dikov
    Telerik
    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 the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017