This is a migrated thread and some comments may be shown as answers.

RadTreeList edit with RadGrid causes some problems

3 Answers 60 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
jacobi
Top achievements
Rank 1
jacobi asked on 04 Jun 2014, 01:59 PM
Hi.

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.

3 Answers, 1 is accepted

Sort by
0
jacobi
Top achievements
Rank 1
answered on 04 Jun 2014, 02:04 PM
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?

Thanks.
0
Accepted
Konstantin Dikov
Telerik team
answered on 09 Jun 2014, 09:13 AM
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.


Regards,
Konstantin Dikov
Telerik
 

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.

 
0
jacobi
Top achievements
Rank 1
answered on 09 Jun 2014, 01:13 PM
Hi Konstantin Dikov.

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

Good wishes.
Jacobi.
Tags
TreeList
Asked by
jacobi
Top achievements
Rank 1
Answers by
jacobi
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or