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

Error when add record in TreeList

2 Answers 55 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Henry John
Top achievements
Rank 1
Henry John asked on 06 Jul 2011, 12:39 PM
When i click add button in Header of TreeList i will show form template to add record, after that i click add button in item template it's also show form template to add record. I put blank in textbox afterthat I click save asp validate catch blank text in two form template.Anybody help me how to prevent show form template twice. I have attachment for that scenario. Thanks

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 11 Jul 2011, 03:14 PM
Hi Henry John,

The described behaviour is by design and there is no built in mechanism for avoiding this functionality. Currently possible workaround for you could be to add the validation function depending on the item level, This way you could partially validate the controls in edit form. please see the following demo for more information on this matter:
http://demos.telerik.com/aspnet-ajax/treelist/examples/dataediting/validation/defaultcs.aspx

Best wishes,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Henry John
Top achievements
Rank 1
answered on 12 Jul 2011, 06:46 AM
Thanks
Tags
TreeList
Asked by
Henry John
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Henry John
Top achievements
Rank 1
Share this question
or