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

Hierarchical RadGrid Insert Child Table

2 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Iron
Brian asked on 16 Apr 2015, 07:53 PM

Hi,

I'm trying to insert a child table into a hierarchical RadGrid.  If there is already a child table under the master table, the Add New Record button appears.  When there are no child tables already existing, however, the grid just displays "No child records to display".  My desired functionality is to get a new child record to be created even if there are none existing via an Add New Record button.  Is this possible (through a property, button, or otherwise)?

I have provided a picture for reference.  The first two master records are unable to create new records underneath them, even though the third and fourth master records are.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 21 Apr 2015, 08:14 AM
Hi,

Actually the grid should render an empty GridTableView for the rows that do not contain records thus allowing you to perform inserts. Could you please share with us the page markup and code-behind so we could examine the configuration? That way we should be able to provide a straight to the problem solution.

Regards,
Angel Petrov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Brian
Top achievements
Rank 2
Iron
answered on 21 Apr 2015, 12:05 PM
[quote]Angel Petrov said:Hi,

Actually the grid should render an empty GridTableView for the rows that do not contain records thus allowing you to perform inserts. Could you please share with us the page markup and code-behind so we could examine the configuration? That way we should be able to provide a straight to the problem solution.

Regards,
Angel Petrov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

[/quote]

Hi Angel,

I found the answer to my issue.  I had mistakenly set the following flag:

ShowHeadersWhenNoRecords="false"

I have changed the code to the following:

ShowHeadersWhenNoRecords="true"

Thanks!

Tags
Grid
Asked by
Brian
Top achievements
Rank 2
Iron
Answers by
Angel Petrov
Telerik team
Brian
Top achievements
Rank 2
Iron
Share this question
or