Telerik Forums
UI for ASP.NET Core Forum
1 answer
30 views

 

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:

Mihaela
Telerik team
 answered on 24 May 2023
1 answer
86 views

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

Alexander
Telerik team
 answered on 12 Apr 2023
1 answer
72 views

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" >
                                    <items>
                                        @{
                                            foreach (var judge in @Model.JudgesTreeView)
                                            {
                                                <dropdowntree-item text="@judge.Name" title="@judge.Name">
                                                    <items>
                                                        @{
                                                            foreach (var hearings in judge.HearingDate)
                                                            {
                                                                <dropdowntree-item text="@hearings.Text" >                                                               
                                                                </dropdowntree-item>
                                                            }
                                                        }
                                                    </items>
                                                </dropdowntree-item>
                                            }
                                        }
                                    </items>
                                </kendo-dropdowntree>
Stoyan
Telerik team
 answered on 24 Mar 2023
1 answer
112 views

 

Good morning,
I have a problem with model binding
The component loads the data correctly but if I select multiple values ​​it binds me to only one value in "TipologiaFormato" present in the model.
"TipologiaFormato" is a string

What type of field must it be to bind all selected data?
Thank you

 

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>

Mihaela
Telerik team
 answered on 17 Feb 2023
1 answer
72 views

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.

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 16 Sep 2022
1 answer
62 views

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/aspnet-core/api/Kendo.Mvc.UI.Fluent/DropDownButtonBuilder#popupsystemactionkendomvcuifluentdropdownbuttonpopupsettingsbuilder

https://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownbutton/configuration/popup

Thanks, best regards
Patrick

 

PS: DropDownButton is missing as Tags here ;)

Aleksandar
Telerik team
 answered on 10 Aug 2022
1 answer
152 views

 

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>


Mihaela
Telerik team
 answered on 29 Dec 2021
1 answer
94 views
I am looking for adding scroll bars to my Telerik Kendo Dropdown Tree as the tree list contains very long list containing more than 5000 items. Need help.
Alexander
Telerik team
 answered on 29 Dec 2021
1 answer
151 views

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!

Georgi
Telerik team
 answered on 24 May 2021
18 answers
243 views

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!

 

saad
Top achievements
Rank 1
 answered on 01 Apr 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?