RadTreeList edit with RadGrid causes some problems

4 posts, 1 answers
  1. jacobi
    jacobi avatar
    3 posts
    Member since:
    May 2014

    Posted 04 Jun 2014 Link to this post


    I'm new using telerik components, and I'm trying to develop something a little bit complicated.

    First of all, I have a RadTreeList, that can be editable. I've set the EditMode as "EditForms", and configured the Edit Settings to use a WebUserControl.
    My WebUserControl, has 3 fields and a RadGrid, that can be editable too, but this RadGrid is simple, it's the default edit form and I'm just using the Events, InsertCommand, EditCommand and DeleteCommand, to perform this actions in a List who is in 

    The first problem here, is that the Cancel command of the RadTreeList is not working, it just works if I comment the RadGrid.
    The second problem, is that when I press the Save button in the RadGrid EditForm, it validates all the field from RadTreeList too (attached figure: "Sample.png").

    If anyone can help me I'll be very grateful.

    Thanks in advance.

  2. jacobi
    jacobi avatar
    3 posts
    Member since:
    May 2014

    Posted 04 Jun 2014 in reply to jacobi Link to this post

    Wow, I forgot some interesting questions.

    Is this possible to be built? Or Telerik components doesn't support a RadGrid inner a RadTreeList?
    Anyone already tried something like this?

  3. Answer
    Konstantin Dikov
    Konstantin Dikov avatar
    2386 posts

    Posted 09 Jun 2014 Link to this post

    Hello Jabobi,

    I have examined the page and the user control that you have attached in the other thread that you have opened with the same question and I have noticed that you have multiple RadAjaxManager controls, which is not supported scenario. 

    Please note that when you have a RadAjaxManager on a page, in the user control you must use RadAjaxManagerProxy and not RadAjaxManager. Detailed information on this could be found at the following help articles:
    Please try changing the RadAjaxManager in your user control with RadAjaxManagerProxy and see if the cancel issue will be resolved on your end too.

    As for the validation, with your current settings, every postback within the user control will force the validation. For allowing the grid to perform operations without the validation, what I could suggest is that you use ValidationGroup for the TextBox, RequiredFieldValidator and RadButton (Inserir/Alterar).

    Hope that helps.

    Konstantin Dikov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  4. jacobi
    jacobi avatar
    3 posts
    Member since:
    May 2014

    Posted 09 Jun 2014 in reply to Konstantin Dikov Link to this post

    Hi Konstantin Dikov.

    Thanks for the answer, I've already tested your suggestions, and both work fine.

    Good wishes.
Back to Top