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
Sagar Bandkar
1.1k
347
48.9k
check only one checkbox when (select all) checkbox click
Dec 3 2016 1:18 AM
check only one checkbox when (select all) checkbox click in Grid.MVC
Javascript:-
$("#checkbox1").click(function () {
$("#checkBox").prop('checked',
$(this).prop('checked'));
});
Grid Code:-
@Html.Grid(Model).Named("Grid").Columns(columns =>
{
columns.Add()
.Titled("<input name='allChk' type='checkbox' id='checkbox1'/>")
.Encoded(false)
.Sanitized(false)
.SetWidth(30)
.RenderValueAs(c => Html.CheckBox("checked", false, new { id = "checkBox", name = "inCtrId" })).SetWidth(100);
columns.Add(c => c.vcCosCode).Titled("Country Code").Filterable(true);
}).WithMultipleFilters()
Reply
Answers (
2
)
How to create POS application in ASP.NET MVC
how to create pie chart based on values using asp.net