I'm using Trial for testing. But when the number of items is selected more, the text box displaying the item grows larger, breaking the interface of the page. I just want to show the number of selected items (Checked) to replace checked items, is it possible to process? Please guide how. Displays fine both when the event is selected and the initial default load of items is checked.
Example:
HI
I added the search with filter="FilterType.Contains" to the dropdowntree-editor control
Now if I select the parent checkbox, the children are no longer automatically selected.
How can I do?
Thank you
<form-item field="Destinatari" col-span="1">
<item-label text="Destinatari (attivi con capacità espositiva):" optional="false" />
<dropdowntree-editor LoadOnDemand="false" name="dropdowntree_Destinatari" auto-close="false" dataspritecssclassfield="spriteCssClass" value-template-id="dropdowntree-value-template" template-id="dropdowntree-template"
datatextfield="text"
filter="FilterType.Contains"
style="width: 100%" >
<hierarchical-datasource>
<schema>
<hierarchical-model id="id"></hierarchical-model>
</schema>
<transport>
<read url="@Url.Action("Items_GetDestinatari", "FormCampagna")" />
</transport>
</hierarchical-datasource>
<checkboxes check-children="true" enabled="true" />
</dropdown
How do you set, and get back the selected value of an dropdownlist-item set through local data binding? Here you can see that I have a list of judges, and a list of court dates for each judge, I would like to be able to set, and get back the id of each court date in the PostBack in razor pages. How do I do so?
<kendo-dropdowntree name="dropdowntree" auto-width="true" >
Good morning,
Code:
<form-item field="TipologiaFormato" col-span="1">
<item-label text="Tipologia Formato:" optional="false" />
<dropdowntree-editor auto-close="false" dataspritecssclassfield="spriteCssClass" value-template-id="dropdowntree-value-template" template-id="dropdowntree-template" name="dropdowntree" style="width: 100%">
<hierarchical-datasource>
<schema>
<hierarchical-model id="id"></hierarchical-model>
</schema>
<transport>
<read url="@Url.Action("Items_GetAction", "Controller")" />
</transport>
</hierarchical-datasource>
<checkboxes check-children="true" enabled="true" />
</dropdowntree-editor>
</form-item>
Hi,
As per the Github issue here, when the DropDownTree has Checkboxes enabled, is there a way to post its selected values to a controller, either as comma-separated IDs or an array?
I would have expected this to work in a similar way to the MultiSelect control, but unless I'm missing something that doesn't appear to be the case.
Many thanks in advance,
David.
Dear all,
i'm try to set the position of the DropDownButton Popup, but seams this option is not available?
In the Documentation it says "See Popup Documentation", where you have the Option "Position"
https://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownbutton/configuration/popup
Thanks, best regards
Patrick
PS: DropDownButton is missing as Tags here ;)
there is a form.Added element DropDownTree. When you click on the confirmation, you need to get the value in the controller Category. Preferably in the format string []. Tell me how you can get values, even in a different format.Thank you.
<form asp-action="CreateService" asp-controller="ServiceSubmit" asp-antiforgery="true" data-ajax="true" data-ajax-method="post" data-ajax-update="#result_login_register" >
<input name="IsValid" type="hidden" value="@ViewData.ModelState.IsValid.ToString()" />
<div class="form-group">
<label asp-for="Name">Краткое название</label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label>Категория</label>
@(Html.Kendo().DropDownTree()
.Name("Category")
.DataTextField("Category")
.HtmlAttributes(new { style = "width: 100%" })
.AutoClose(false)
.Checkboxes(checkboxes => checkboxes
.Name("checkedFiles")
.CheckChildren(true)
)
.DataSource(dataSource => dataSource
.Model(model => model
.Id("IdCategory")
.HasChildren("HasChildren")
)
.Read(read => read
.Action("CategoryPodServic_Read", "ServiceSubmit")
).ServerFiltering(false)
)
)
@*<span asp-validation-for="Category.CategoryPod" class="text-danger"></span>*@
</div>
<div class="form-group">
<input asp-for="Raion" class="form-check-input" type="checkbox" value="" id="Raion">
<label class="form-check-label" for="Raion">
Выезд на район
</label>
</div>
<div class="form-group">
<label asp-for="Description">Описание</label>
@(Html.Kendo().Editor()
.Name("Description")
.HtmlAttributes(new { style = "width: 100%; height:400px" })
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline()
.JustifyLeft().JustifyCenter().JustifyRight()
.InsertUnorderedList().InsertOrderedList()
)
)
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<button class="btn btn-success" type="submit" >Сохранить</button>
</form>
Hi,
Based on this checkboxes DropDownTree demo, is it possible to display only the checked parent node, say Kendo UI Project on the tagList but still have its children checked? Basically, when I check the Kendo UI Project node, I also want its children checked, but only display the "Kendo UI Project" on the tagList.
Thanks!
Hello,
I'm working with a DropDownTree which I create with the following code:
01.
@(Html.Kendo().DropDownTree()
02.
.Name(
"selectJobs"
)
03.
.DataValueField(
"id"
)
04.
.DataTextField(
"text"
)
05.
.HtmlAttributes(
new
06.
{
07.
@
class
=
"form-control"
08.
})
09.
.Filter(FilterType.Contains)
10.
.LoadOnDemand(
false
).MinLength(2)
11.
.BindTo((IEnumerable<DropDownTreeItemModel>)ViewBag.inlineDefault)
12.
.Events(e => e.Change(
"onJobChanged"
).DataBound(
"onJobDataBound"
))
13.
.Template(
"#= autocompleteFormatValue(data.item.text, 'selectJobsFilter') #"
)
14.
)
There is a way to change the content data of this tree, through an ajax call and when it completes, the following code is exeuted:
01.
function
(response) {
02.
var
ds =
new
kendo.data.HierarchicalDataSource({
03.
data: response,
04.
accentFoldingFiltering:
"fr-FR"
05.
});
06.
var
dropdowntree = $(
'#selectJobs'
).data(
'kendoDropDownTree'
);
07.
dropdowntree.setDataSource(ds);
08.
dropdowntree.treeview.expand(
".k-item"
);
09.
}
I believe I am using the 'accentFoldingFiltering' option properly, as per https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/accentfoldingfiltering
Yet, the diacritics filtering is not working. Any idea what is missing ?
For instance I would have the items you can see on my example1.png picture. And so I would expect that if I pressed e, which I do in example2.png, then I would see all the items that match "matie" including "matiè" but as you can see that's not the case.
Thanks!