Click here to Skip to main content
15,915,770 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my Webgrid i want to apply on focus on textbox which is in webgrid....how to do that....???



@if (@Model != null)
{
@grdTaxType.GetHtml(
tableStyle: "webgrid webgridwidth",
headerStyle: "webgridheader",
alternatingRowStyle: "webgridaltrowstyle",
selectedRowStyle: "select",
rowStyle: "webgridrowstyle",
footerStyle: "webgridfooter",
columns: grdTaxType.Columns(


grdTaxType.Column(header: "From Date",format: (item) => Html.TextBox("txtFromdate", null, new { ID = "txtFromdate" })),

grdTaxType.Column(header: "To Date", format: (item) => Html.TextBox("txttodate", null, new { ID = "txtFromdate" })),

grdTaxType.Column(header: "Percentage", format: (item) => Html.TextBox("percentage", null,new { ID = "txtFromdate" })),

grdTaxType.Column(header: "Delete", format: @<text><img

src="../../Image/delete.GIF" alt="" style="border: none;" />
)

))
}







and on focus i want to apply


function Apply_Maskdate(obj) {
var Apply_Maskdate = "#" + obj.id;
$(txtFromdate).mask("99/99/9999");
}


thanx in advance....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900