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

[Solved] Ajax Hierarchy

7 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
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

7 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 06 Oct 2010, 07:20 AM
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
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?

DataBinding(dataBinding => dataBinding.Ajax()

.Select("_EmployeesHierarchyAjax", "Grid"))




Thanks,
Chandran
0
Accepted
Hristo Germanov
Telerik team
answered on 06 Oct 2010, 03:43 PM
Hello Venkitachalam,

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
0
Hristo Germanov
Telerik team
answered on 20 Oct 2010, 09:42 AM
Hello Venkitachalam,

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
0
Hristo Germanov
Telerik team
answered on 28 Oct 2010, 01:37 PM
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
Tags
Grid
Asked by
Venkitachalam
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Venkitachalam
Top achievements
Rank 1
Share this question
or