<div class="col-9"> @(Html.Kendo().TabStrip() .Name("TabWorkflow") .Animation(false) .SelectedIndex(0) .Items(tab => { tab.Add().Text("Statuses").Enabled(Model.WorkflowId != 0).LoadContentFrom("Index", "WorkflowStatus", new { workflowId = Model.WorkflowId }); }) ) </div>
I seem to have hit a stumbling block which I cannot find a simple solution to. Can someone point a direction for me to persue?
I am designing a website which will present to the user a tabbed interface. Each tab will represent a collection of available options/items for the user to fill out when submitting changes to an edited object.
That sounds simple in concept. I have used several host objects. TabStrips, ExpansionPanels have been tried. Both seem to render the same results. Any "content" panels which are not rendered initially do not render properly when selected.
I.E., Tab #0 looks fine. Tab#1, which is obscured/hidden, contains controls that when viewed lack things such as labels, icons, most script driven features. The same logic fails when other non-tabstrip items used.
Here is a quicky sample showing the problem. In theory, expansion panels 1, 2, and 3 should all render content. Only panel #1 shows valid content, 2 and 3 are malformed at best.
My root problem seems to be my inability to dynamically show content not visible when the page is initially rendered. Can someone point me the correct direction? I have tried the "loadfrom" content options all having the same results.
@(Html.Kendo().ExpansionPanel()
.Name("reoccurringItems")
.Title("Reoccurring")
.SubTitle("Items running more than one time")
.Expanded(false)
.Content("Test Text to test feature..")
)
@(Html.Kendo().ExpansionPanel()
.Name("nonReoccurringItem")
.Title("Run Once")
.SubTitle("A item run one time only")
.Expanded(false)
.Content(@<text>
<div>
@(Html.Kendo().DateTimePickerFor(m => m.OneTimeOccurrenceAtDateandTime)
.Label(lbl => lbl.Content("Run Once At Date/Time").Floating(true))
.Rounded(Rounded.Full).ToClientTemplate())
</div>
</text>)
)
@(Html.Kendo().ExpansionPanel()
.Name("nonReoccurringTestItem")
.Title("Test Two")
.SubTitle("Test With Textbox")
.Expanded(false)
.Content(@<text>
<div>
@(Html.Kendo().TextBoxFor(m => m.ScheduleDescription).Label(lbl => lbl.Content("Description").Floating(true)))
</div>
</text>)
)

I am encountering an issue while integrating a Kendo Grid within a TabStrip. Whenever I attempt to add the Grid, I receive the attached error(image.png) in the browser console: Uncaught Error: Invalid template.
Below is the code I am trying to put inside TabStrip. Not sure Please let me know what the mistake I am doing.
<div id="divEquipmentDetailsGrid" >
@(Html.Kendo().Grid<EPP.Core.DTOs.UserEqupmentDetailsDTO>(Model.UserEquipDetails)
.Name("EquipmentDetailsGrid")
.Columns(columns =>
{
columns.Bound(p => p.EquipmentName).Title("ss");
columns.Bound(p => p.AssertTag).Width(130).Title("tt");
columns.Bound(p => p.Accessories).Width(130).Title("rr");
})
)
</div>If I remove the above code I am able to see tabs and data inside the tabs but When I add above code, nothing is displaying and getting error.
I am attaching full code cshtml file.
I need to be able to render a tabstrip with a dynamic number of tabs, and then within each tab a griid to display records that relate to the tab.
Basically it is grouping sets of data into tabs, and then displaying the records from that group in the grid.
The underlying source of the grids is all the same, albeit each one would be showing a different subset of records.
The number of tabs/grids required would be unknown until the data is loaded.
Is this even possible? I have searched but can't find an example doing exactly what I need.
Thanks
I have used partial views in many places, usually nested within a tab control, but also in some places nested inside a for EditorTemplate.
This was done using following type of code :
Html.Partial("_PartialViewName", Model)Visual Studio was warning of :
MVC1000 : Use of IHtmlHelper.Partial may result in application deadlocks. Consider using <partial> Tag Helper or IHtmlHelper.PartialAsync.
So I went through and changed code where I could to :
awaits Html.PartialAsync("_PartialViewName", Model)This works fine where the partial was within a tab control, or direct on the view but not when it's within an EditorTemplate on a form. Trying the same code gives this error :
The 'await' operator can only be used within an async lambda expression. Consider marking this lambda expression with the 'async' modifier.
I have tried a few things but nothing that VS will accept. Can it be done?
Thanks
I have build my parent child table grid by referring above link. Still i need to have check box for each row just like checkbox tree.
For that i need to bind my child row id in template, I tried as below.
Issue is:
At runtime, it is trowing error from child table by saying that it can not bind "OrderId" (No order id is not found).
Further i found out, This template only able to bind the date from parent data source only.
I have list of tabs in my model like
In cshtml: my Tabstrip looks like this
Since Html.Action is no longer works in .net 8. Need suggestion to overcome this issue.
Now, I'm unable to navigate to the page which has this tabstrip due to Html.Action issue
