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
Denmark Puso
NA
232
50.3k
How to show all Lined-up in DataTable?
Aug 14 2019 1:09 AM
in our system all data are showed i need to filter the DataTable. and show all Lined-up only any suggest. Thanks in advance.
<div
class
=
"ContainerBanner"
>
<h3
class
=
"orders"
>Orders</h3>
<table id=
"OrderList"
class
=
"display table table-striped"
style=
"width:100%"
>
<thead>
<tr>
<th>Agent</th>
<th>Client</th>
<th>Contact#</th>
<th>State</th>
<th>Address</th>
<th>Date Posted</th>
<th>Delivery Date</th>
<th>Quantity</th>
<th>Status</th>
<th>Date Delivered</th>
<th>Notes</th>
<th>Deleted</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
<a href=
"@Url.Action("
add
","
order
")"
class
=
"btn btn-primary btn-sm"
><i
class
=
"fas fa-cart-plus"
></i> Order a Box</a>
</div>
<script type=
"text/javascript"
>
$(
function
() {
$(
'#OrderList'
).DataTable({
"ajax"
:
"@Url.Action("
getorderlist
", "
order
")"
,
"columns"
: [
{
"data"
:
"AgentName"
},
{
"data"
:
"ClientFullName"
},
{
"data"
:
"PrimaryContact"
},
{
"data"
:
"State"
},
{
"data"
:
"Address"
},
{
"data"
:
"DatePosted"
},
{
"data"
:
"DeliveryDate"
},
{
"data"
:
"Quantity"
},
{
"data"
:
"Status"
},
{
"data"
:
"DateDelivered"
},
{
"data"
:
"Notes"
},
{
"data"
:
"IsDeleted"
},
{
"render"
:
function
(data, type, full, meta) {
return
"<button class='btn btn-primary btn-sm' onclick='edit("
+ full.Id +
")'><i class='fas fa-user-edit'></i></button>"
}
}
]
});
});
function
edit(id) {
window.location.href =
"@Url.Action("
add
", "
order
")?id="
+ id;
}
</script>
Reply
Answers (
3
)
How to get dynamic data into grid with dropdown using mvc
How to get custom claims in asp.net core?