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

EditForm inside Tab

2 Answers 606 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
Bob asked on 14 Sep 2020, 07:08 PM

Is it not possible to use an EditForm inside of a tab?

When I try, I am getting: System.InvalidOperationException: EditForm requires a Model parameter, or an EditContext parameter, but not both.

<TelerikTabStrip @bind-ActiveTabIndex="activeTabIndex">
    <TabStripTab Title="Information">
        <EditForm Model="@ticket" OnValidSubmit="@UpdateTicket">
 
        </EditForm>
    </TabStripTab>
    <TabStripTab Title="Time Entry">
 
    </TabStripTab>
    <TabStripTab Title="History">
 
    </TabStripTab>
</TelerikTabStrip>

2 Answers, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 15 Sep 2020, 11:18 AM

Hello Bob,

I have prepared a sample application which has a Telerik TabStip with a basic example of EditForm. You can see that project as an attached file. Could you run it locally and if it works as expected for you, compare it against your own and see what are the differences that cause the issue. If this does not help you move forward, could you modify the application so that the exception is reproducible and send it back to us so we can dive deeper and suggest another solution?

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 15 Sep 2020, 01:43 PM
I found my problem, thanks.  The error was misleading.  The problem was actually in the data I was getting back.
Tags
TabStrip
Asked by
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or