TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Cassie Mod
NA
488
70.5k
how to load content from severak ActionNames Kendo UI
Aug 15 2017 10:14 AM
HI ive't got a strange question:
We have a grid with vife tappages. Every tabpages loads corretly with the function "" .LoadContentFrom, exept the CustomerInvoices. It's not showing the last to columns. This is probably because these 2 columns use another actionname in the controller. \
here is my KendoTabStrip
<div
class
=
"row"
>
<div
class
=
"col-lg-12 col-md-12 col-sm-12 col-xs-12"
>
@(Html.Kendo().TabStrip()
.Name(
"CustomerDetailsTabStrip"
)
.Animation(
false
)
.Items(tabstrip =>
{
tabstrip.Add().Text(
"Diensten"
)
.Selected(_currentTab == 0)
.LoadContentFrom(Url.Action(
"CustomerServices"
,
"Service"
,
new
{ @id = Model.DebtorCode }));
tabstrip.Add().Text(
"Contractregels"
)
.Selected(_currentTab == 1)
.LoadContentFrom(Url.Action(
"CustomerContractLines"
,
"ContractLine"
,
new
{ @id = Model.DebtorCode }))
.Visible(!Authenticate.HasRight(Right.ManageGo));
tabstrip.Add().Text(
"Eenmalige kosten"
)
.Selected(_currentTab == 2)
.LoadContentFrom(Url.Action(
"CustomerCosts"
,
"Cost"
,
new
{ @id = Model.DebtorCode }))
.Visible(!Authenticate.HasRight(Right.ManageGo));
tabstrip.Add().Text(
"Facturen"
)
.Selected(_currentTab == 3)
.LoadContentFrom(Url.Action(
"CustomerInvoices"
,
"Invoice"
,
new
{ @id = Model.DebtorCode }))
.Visible(!Authenticate.HasRight(Right.ManageGo));
tabstrip.Add().Text(
"Locaties"
)
.Selected(_currentTab == 4)
.LoadContentFrom(Url.Action(
"CustomerLocations"
,
"Location"
,
new
{ @id = Model.DebtorCode }))
.Visible(!Authenticate.HasRight(Right.ManageGo));
tabstrip.Add().Text(
"Opmerkingen"
)
.Selected(_currentTab == 5)
.LoadContentFrom(Url.Action(
"Comments"
,
"Comment"
,
new
{ @id = Model.DebtorCode, commentType =
"1"
}));
tabstrip.Add().Text(
"Orders"
)
.Selected(_currentTab == 6)
.LoadContentFrom(Url.Action(
"CustomerOrders"
,
"Order"
,
new
{ @id = Model.DebtorCode }))
.Visible(!Authenticate.HasRight(Right.ManageGo));
})
)
</div>
</div>
And here is the different grid with the two columns that are missing in the tabstrip. How can i fix this so it is solso showning the last two columns ?
<div
class
=
"row"
>
<div
class
=
"col-lg-12 col-md-12 col-sm-12 col-xs-12"
>
<div
class
=
"hidden bg-danger"
id=
"errorMessage"
></div>
@(Html.Kendo().Grid<InvoiceGridItem>()
.HtmlAttributes(
new
{ @
class
=
"table-responsive"
})
.Name(
"Grid"
)
.Columns(columns =>
{
columns
.Bound(c => c.InvoiceNumber).ClientTemplate(
"#if (InvoiceNumber) {# <a href=\""
+ Url.Action(
"Details"
) +
"/#=InvoiceNumber#\">#=InvoiceNumber#</a> #}#"
);
columns
.Bound(c => c.InvoiceDate).Format(
"{0:d}"
);
columns
.Bound(c => c.CustomerDebtorCode).ClientTemplate(
"<a href=\""
+ Url.Action(
"Details"
,
"Customer"
) +
"/#=CustomerDebtorCode#\">#=CustomerDebtorCode#</a>"
);
columns
.Bound(c => c.CustomerName);
columns
.Bound(c => c.TotalExclVat).HtmlAttributes(
new
{ style =
"text-align: right;"
}).Format(
"€ {0:n2}"
);
columns
.Bound(c => c.TotalInclVat).HtmlAttributes(
new
{ style =
"text-align: right;"
}).Format(
"€ {0:n2}"
);
columns.Template(@<text></text>).Title(string.Empty).ClientTemplate(
"<a href=\""
+ Url.Action(
"PDF"
,
"Invoice"
) +
"/#=InvoiceNumber#\" class=\"glyphicon glyphicon-cloud-download\" target=\"_blank\" title=\"Factuur wordt getoond in nieuw venster/tabblad.\nOf klik met rechter muisknop en kies 'Opslaan als...'\"> </a>"
);
columns.Template(@<text></text>).Title(string.Empty).ClientTemplate(
"<a href=\"\\#\" onclick=\"openInvoiceEmailDialog('#=InvoiceNumber#', '#=CustomerEmailBilling#')\" class=\"glyphicon glyphicon-envelope\"> </a>"
);
if
(Model.UserAllowedToSeeInvoiceDetails)
{
columns.Template(@<text></text>).Title(string.Empty).ClientTemplate(
"<a href=\""
+ Url.Action(
"CDR"
,
"Invoice"
) +
"/#=InvoiceNumber#\" class=\"glyphicon glyphicon-cloud-download\" target=\"_blank\" title=\"Gespreksgegevens worden getoond in nieuw venster/tabblad.\nOf klik met rechter muisknop en kies 'Opslaan als...'\"> </a>"
);
columns.Template(@<text></text>).Title(string.Empty).ClientTemplate(
"<a href=\"\\#\" onclick=\"openCdrEmailDialog('#=InvoiceNumber#', '#=CustomerEmailBilling#')\" class=\"glyphicon glyphicon-envelope\"> </a>"
);
}
})
.ToolBar(toolbar =>
{
toolbar.Template(
@<text>
<div
class
=
"pull-right"
>
@*<input type=
"date"
id=
"invoicedDatePicker"
size=
"30"
placeholder=
"Factuurdatum"
/>*@
<input type=
"search"
class
=
"k-textbox"
id=
"searchTextBox"
size=
"30"
placeholder=
"Snel zoeken"
/>
</div>
</text>);
}).Selectable(s => s.Enabled(
false
))
.Reorderable(r => r.Columns(
false
))
.Resizable(r => r.Columns(
true
))
.Scrollable(s => s.Height(
"auto"
).Enabled(
false
))
.Sortable()
.Pageable()
.Filterable()
.DataSource(ds => ds
.Ajax()
.ServerOperation(
false
)
.Events(events => events.RequestStart(
"gridEventRequestStart"
))
.Events(events => events.Error(
"gridEventError"
))
.Read(read => read.Action(
"Index"
,
"Invoice"
).Data(
"additionalData"
))
)
)
</div>
</div>
thnxx
Reply
Answers (
2
)
ow to load contrent from serveral action names -- KENDO UI.
how i can upload multipal file upload in asp.net ?