init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
@model object
|
||||
<input type="hidden" id="@(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))" data-constTemplate="@(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))">
|
||||
<span>@(ViewData["constText"])</span>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Areas.Tanulo.Models
|
||||
|
||||
@{
|
||||
var domId = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty);
|
||||
var query = @ViewData["query"] ?? string.Empty;
|
||||
}
|
||||
|
||||
@model object
|
||||
@Html.KretaComboBoxFor(Model => Model, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = ViewData["ddlController"], action = ViewData["ddlAction"] })+ query, "Text", "Value").AutoBind(true).Events(e=>e.DataBound(@"
|
||||
function (e) {
|
||||
KretaComboBoxHelper.onDataBound(e);
|
||||
var uid = $('#" + @ViewData["gridId"] + @"').find('.k-grid-edit-row').attr('data-uid');
|
||||
var data = KretaGridHelper.getGridRowData('" + @ViewData["gridId"] + @"', uid);
|
||||
var baseValue = parseFloat( data." + @ViewData["ddlProperty"] + @");
|
||||
if(!isNaN(baseValue) && baseValue > 0){
|
||||
var cb = $('#" + @domId + @"').data('kendoComboBox');
|
||||
cb.value(baseValue);
|
||||
cb.trigger('change');
|
||||
}
|
||||
}
|
||||
"))
|
|
@ -0,0 +1,11 @@
|
|||
@model short?
|
||||
@{
|
||||
var controlName = ViewData.TemplateInfo.GetFullHtmlFieldName("");
|
||||
}
|
||||
@(
|
||||
Html.Kendo().DropDownListFor(m => m)
|
||||
.Name(controlName)
|
||||
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
|
||||
.HtmlAttributes(new { data_value_primitive = true })
|
||||
.Filter(FilterType.Contains)
|
||||
)
|
|
@ -0,0 +1,15 @@
|
|||
@model object
|
||||
<div class="kendoGridEditableTemplate">
|
||||
@{
|
||||
var domId = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty);
|
||||
var gridId = ViewData["gridId"];
|
||||
var spanId = gridId + domId;
|
||||
}
|
||||
|
||||
<span id="@spanId"></span>
|
||||
<script type="text/javascript">
|
||||
var uid = $("#@gridId").find(".k-grid-edit-row").attr("data-uid");
|
||||
var data = KretaGridHelper.getGridRowData("@gridId", uid);
|
||||
$("#@spanId").text(data.@domId);
|
||||
</script>
|
||||
</div>
|
|
@ -0,0 +1,8 @@
|
|||
@model double
|
||||
|
||||
@(Html.Kendo().NumericTextBoxFor(m => m)
|
||||
.Min(0)
|
||||
.Step(0.25D)
|
||||
.Max(Kreta.Core.Constants.General.TantargyfelosztasImportMaxOraszam)
|
||||
.HtmlAttributes(new { style = "width:100%" })
|
||||
)
|
|
@ -0,0 +1,27 @@
|
|||
@{
|
||||
var domId = ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty);
|
||||
}
|
||||
|
||||
<input id="@domId" name="@domId" data-value-primitive="True" />
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var uid = $("#@domId").closest("tr").attr("data-uid");
|
||||
var data = KretaGridHelper.getGridRowData('@ViewData["gridId"]', uid);
|
||||
|
||||
var tantargyId = Number(data.@ViewData["tantargyPropName"]);
|
||||
var semaIdId = Number(data.@ViewData["semaPropName"]);
|
||||
|
||||
var element = $("#@domId");
|
||||
|
||||
element.attr("data-Tid", tantargyId);
|
||||
element.attr("data-Sid", semaIdId);
|
||||
|
||||
element.kendoDropDownList({
|
||||
dataTextField: "Text",
|
||||
dataValueField: "ID",
|
||||
dataSource: @(ViewData["dataSourceFunction"])(),
|
||||
filter: "contains",
|
||||
autoWidth: true,
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue