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

Table in Table

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 17 Sep 2015, 01:29 PM

I have an kendo report where i load a table. My problem here is that i want to load another table inside that table. I want to call my action method that looks like this:

 

     [DataObjectMethod(DataObjectMethodType.Select)]
        public IList<QuoteInfoItemDto> GetQuoteInfoItemsAccessories(int projectItemId)
        {
            return quoteItemModel.GetAccessories(projectItemId);
        }

The problem here is that i use an parameter projectItemId but the projectItemId is always the same and it's always of the last item in my (parent) table. How can i post the id of the current (parent)table so that i can fetch the data from my actionmethod to the (child) table?

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 17 Sep 2015, 03:27 PM
Hello Daniel,

When you have nested Data Items it is recommended to use the approach described in the How to use the ReportItem.DataObject property in expressions to send information from the parent data item to the child data item.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or