I use
@(Html.Kendo().DropDownList()
.Name("size")
.BindTo(new List<string>() {
"S - 6 3/4\"",
"M - 7 1/4\"",
"L - 7 1/8\"",
"XL - 7 5/8\""
})
.HtmlAttributes(new { style = "width: 100%" })
)
on Index page and it working
The same I use in dialog but unsuccesfully
Code of dialog:
<div id="popup_assignAnOrder" style="display: none; z-index: 10; background-color: white; position: absolute; left: 0; top: 0; width: 100%; height: 100%"></div>
<script>
function click_assignAnOrder() {
var grid = $("#grid").data("kendoGrid");
var data = {
selectedIds: Object.keys(grid._selectedIds)
};
$.ajax({
type: "post",
url: "/Grid/PopupAsignPrikazi",
data: data,
success: function (data) {
var dialog = document.getElementById("popup_assignAnOrder");
dialog.innerHTML = data;
$(dialog).show('fast');
action
[HttpPost]
public ActionResult PopupAsignPrikazi(string[] selectedIds)
{
ViewBag.Tip = _db.Prikazs.Select(p => new SelectListItem(){ Value = p.Tipp.Kod_tipp.ToString(), Text = p.Tipp.Tipp1 }).Distinct().ToList();
ViewBag.Osnovanie = _db.Prikazs.Select(p => p.Osnovanie).Distinct().ToList();
ViewBag.SelectedIds = selectedIds.Select(Int32.Parse);
return PartialView("~/Views/Home/_PopupAddPrikazi.cshtml");
}
when splitter moved to the right, Gantt's header's width was expanded,but The Width of Gantt's timeLine was not expanded.
I think your Gantt's timeLine's width is not Automatic calculated.
How can I solve this situation?
In angular10, we use your Gantt
we want to modify Gantt’s dayHeaderTemplate In my own Customize Format Method。
but Google browser tell us my Customize Format Method was not defined.
How to solve this problem?
Is there a way to check if the click event on a node had the control key? Unlike the drag/drop events where you can get the original event, I cannot see the same with the select event...
Matt
Good day,
P.S. Please keep in mind that I am still very new to KendoUI.
Scenario : I have a KendoGrid with 4 columns , being used as a form of a Checklist, So I have 2 columns containing the question and its category , then 2 columns with a radio button group of answers , and a text field for notes (optional).
01.
columns: [
02.
{
03.
field:
"Category"
,
04.
title:
"Category"
,
05.
width:
"150px"
06.
},
07.
{
08.
field:
"Task_Description"
,
09.
title:
"Task Description"
,
10.
width:
"300px"
11.
},
12.
{
13.
field:
"User_Answer"
,
14.
title:
"User Answer"
,
15.
width:
"150px"
,
16.
template: templateFunction
17.
},
18.
{
19.
field:
"Item_Notes"
,
20.
title:
"Item Notes"
,
21.
template:
'# {# <input type="textbox" class="editableTextboxTemplate" onchange="SaveAndProgress(this);" /> #} #'
,
22.
width :
"250px"
23.
}],
Goal : I want to be able to auto save the row upon selection of a answer on the radio Button group, and If the user adds a note , Save that too. I feel like its worth mentioning ,that I would eventually like to have the entire grid with answers in JSON format which I can pass to my controller.
Problem : I cant seem to call a row an have the values which have been selected in the radio button group to be inside the JSON string , nor the text from the text box.
Log after populating : {Category: "Supporting Documentation: ", Task_Description: "Question ", User_Answer: null , Item_notes: null, Id: 1, …}
Is it possible to achieve my goal in a simpler way, and am I complicating the situation?
Thanks for your time.