Posts

Showing posts from July, 2014

asp.net mvc checkbox binding with model

You can use this sample:

<td> @Html.LabelFor(model => model.IsActive) </td> <td> @Html.CheckBoxFor(model => model.IsActive, new { @style = "z-index: 99999 !important; margin-top: 0px;" }) @Html.ValidationMessageFor(model => model.IsActive) </td>

Kendo UI adding row at Runtime(Client Side)

You can easily add item in you kendo grid in client side.

In your button or other control:


<table style="clear: left"> <tr> <td> @Html.LabelFor(model => model.JV_ACCOUNT_CODE) </td> <td> @Html.TextBoxFor(model => model.JV_ACCOUNT_CODE) @Html.ValidationMessageFor(model => model.JV_ACCOUNT_CODE) </td> <td> @Html.LabelFor(model => model.JV_CurrentBalance) </td> <td> @Html.TextBoxFor(model => model.JV_CurrentBalance) @Html.ValidationMessageFor(model => model.JV_CurrentBalance) </td> </tr> </table> <br /> <table> <tr> <td> @Html.LabelFor(model => model.JV_NOTES) </td> <td> @Html.TextBo…