This question is locked. New answers and comments are not allowed.
Venkitachalam
Top achievements
Rank 1
Venkitachalam
asked on 05 Oct 2010, 01:20 PM
Hello,
I am trying to implement the Ajax Hierarchy in project.
I don't want 3 layer hierarchy. I want only 2 layer hierarchy.
Not firing any ajax event and reder child grid.
I am sending project as attachment.
Please check and let me know.
Thanks,
Chandran
I am trying to implement the Ajax Hierarchy in project.
I don't want 3 layer hierarchy. I want only 2 layer hierarchy.
Not firing any ajax event and reder child grid.
I am sending project as attachment.
Please check and let me know.
Thanks,
Chandran
7 Answers, 1 is accepted
0
Hello Venkitachalam,
Thank you for contacting us.
There is a couple of mistakes that I have noticed in your code:
1. You need to add our all our scripts and contents. Please examine our help topic.
2. Your code isn't format correctly. Please examine our online example and our help topic.
If you need help do not hesitate to ask.
Sincerely yours,
Hristo Germanov
the Telerik team
Thank you for contacting us.
There is a couple of mistakes that I have noticed in your code:
1. You need to add our all our scripts and contents. Please examine our help topic.
2. Your code isn't format correctly. Please examine our online example and our help topic.
If you need help do not hesitate to ask.
Sincerely yours,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Venkitachalam
Top achievements
Rank 1
answered on 06 Oct 2010, 11:00 AM
Hello Hristo,
I have added the script and content in my project, but still not showing second grid?
Please can elaborate mistake in this project related to grid bind and model structure
When event("_EmployeesHierarchyAjax") will call the method?
Thanks,
Chandran
I have added the script and content in my project, but still not showing second grid?
Please can elaborate mistake in this project related to grid bind and model structure
When event("_EmployeesHierarchyAjax") will call the method?
DataBinding(dataBinding => dataBinding.Ajax()
.Select("_EmployeesHierarchyAjax", "Grid"))
Thanks,
Chandran
0
Accepted
Hello Venkitachalam,
1. If you want only Ajax binding you need to bind your grid with this line of code:
instead of
2. The Select method works with (actionName, controllerName). In your case you need to add Select("_EmployeesHierarchyAjax", "Home"):
instead of Select("_EmployeesHierarchyAjax", "Grid") because we don't have a grid controller:
The other mistakes that you make are relevant to the formatting of the grid. You can try to add a grid first and then you can try to add second grid with:
I have attached a sample project how to do that.
Kind regards,
Hristo Germanov
the Telerik team
1. If you want only Ajax binding you need to bind your grid with this line of code:
Html.Telerik().Grid<EmployeeViewModel>()instead of
Html.Telerik().Grid(Model)2. The Select method works with (actionName, controllerName). In your case you need to add Select("_EmployeesHierarchyAjax", "Home"):
.DataBinding(dataBinding => dataBinding.Ajax() .Select("_EmployeesHierarchyAjax", "Home"))instead of Select("_EmployeesHierarchyAjax", "Grid") because we don't have a grid controller:
.DataBinding(dataBinding => dataBinding.Ajax() .Select("_EmployeesHierarchyAjax", "Grid"))The other mistakes that you make are relevant to the formatting of the grid. You can try to add a grid first and then you can try to add second grid with:
.DetailView(details => details.ClientTemplate(//second grid here))I have attached a sample project how to do that.
Kind regards,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Venkitachalam
Top achievements
Rank 1
answered on 20 Oct 2010, 08:00 AM
Hello Hristo,
Thanks for answer.
In child grid no record avaliable. I want to hide that child grid.
Thanks,
Ketan
Thanks for answer.
In child grid no record avaliable. I want to hide that child grid.
Thanks,
Ketan
0
Hello Venkitachalam,
Currently, this functionality is not supported.
All the best,
Currently, this functionality is not supported.
All the best,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Venkitachalam
Top achievements
Rank 1
answered on 28 Oct 2010, 10:08 AM
Hello Hristo ,
Thanks for information,. instead of hide child grid. can we show label "No record found" in place of child grid.
Thanks,
Chandran
Thanks for information,. instead of hide child grid. can we show label "No record found" in place of child grid.
Thanks,
Chandran
0
Hello Venkitachalam,
Unfortunately this feature is not supported too.
Greetings,Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items