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
Saravanan Np
NA
171
35.9k
How to add Jquery Mask Numeric to gridview inside textbox
May 6 2016 3:34 AM
Dear All,
I have a gridview which has textbox, i want to add textbox numeric masking to this textbox. it is working outside gridview textbox but not working for inside gridview
My Script Code for :
<script type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_pageLoaded(function () {
//Decimal 2 digit value
$("#<%=textbox1.ClientID %>.inputmask("numeric", {
placeholder: "0",
digits: 2,
digitsOptional: false,
radixPoint: ".",
groupSeparator: ",",
autoGroup: true,
allowPlus: false,
allowMinus: true,
clearMaskOnLostFocus: false,
removeMaskOnSubmit: true
});
});
</script>
My Gridview Code for:
<asp:GridView ID="asp:GridView1" runat="server" Width="100%" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField HeaderText="Amount" >
<ItemTemplate>
(in Rs.'000')
<asp:TextBox Style="text-align: right" ID="TextBox1" placeholder="0.00" runat="server" Text='<%# Eval("Amount") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Reply
Answers (
14
)
Implementation of SAML SSO 2.0 in .net
How to show the asp:comparevalidator message in Alert Box?