init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
"))
|
Loading…
Add table
Add a link
Reference in a new issue