Telerik Forums
UI for Blazor Forum
0 answers
168 views
Has anyone found a way to handle this without it being an official feature yet?
Adam
Top achievements
Rank 1
 asked on 01 Sep 2022
1 answer
123 views

Hi

 

Except of these 2 packages, are there any packages that are recommended to install?

Eric

 

Dimo
Telerik team
 answered on 01 Sep 2022
1 answer
514 views

I created a treeView but for some reason, the data children are not included in the drop-down but separate. How would I set this up to have the children fall under their parent?

 <TelerikTreeView Data="@FlatData" @bind-ExpandedItems="@ExpandedItems">
                        <TreeViewBindings>
                            <TreeViewBinding ParentIdField="FlatData.Parent" />
                        </TreeViewBindings>
                    </TelerikTreeView>

@code {

 IEnumerable<TreeItem> FlatData { get; set; }
 IEnumerable<object> ExpandedItems { get; set; } = new List<TreeItem>();

private void CreateDeviceTreeList()
    {
        List<TreeItem> items = new List<TreeItem>();

        int count = 0;
        foreach(var a in devices.Items)
        {            
            items.Add(new TreeItem(){
               Id = count,
               Parent = null,
               Text = a.Name,
               HasChildren = true
            });
            count++;
            items.Add(new TreeItem(){
               Id = count,
               Parent = count-1,
               Text = a.Group,
               HasChildren = false
            });
            count++;
            items.Add(new TreeItem(){
               Id = count,
               Parent = count-1,
               Text = a.Sensor,
               HasChildren = false
            });
            count++;            
        } 
        FlatData = items;
        ExpandedItems = FlatData.Where(x => x.HasChildren == true).ToList();
        StateHasChanged();

    }

 protected async override void OnInitialized()
{

CreateDeviceTreeList();

}

}

 

 

 

 

 

 

Dimo
Telerik team
 answered on 01 Sep 2022
0 answers
178 views

I have a multiselect component that I'm trying to filter based on the options chosen in another multiselect component that I'm having trouble with. In my code I got the multiselect to only display text for the options I want but there are still empty rows included where I did not display text. I was wondering if there is a way to remove rows that do not have any text or if I'm just going about filtering the multiselect the wrong way. I've included the code below and a picture of the blank rows.


<TelerikMultiSelect Class="lightBlueGray col-2" Width="200px" Data="@MonthOptions" @bind-Value="@model.Months">

<ItemTemplate Context="ITContext"> @if (model.Year.Count() > 0) { @if (model.Year.ElementAt(0) != "(All)") { int validMonth = 0; int i = 0; while (i < model.Year.Count()) { if (ITContext.Contains(model.Year.ElementAt(i))) { validMonth = 1; } i++; } if (validMonth == 1) { @ITContext } } else { @ITContext } } else { @ITContext } </ItemTemplate>

</TelerikMultiSelect>


Ethan
Top achievements
Rank 1
 asked on 31 Aug 2022
1 answer
146 views

dojo:

https://blazorrepl.telerik.com/?_ga=2.175076642.1694966489.1661590183-1931469790.1620243254

as you can see on example above, the grid is filtered (during the onInitState event), but user look & feel still unchanged, i mean the filter button is not highlited, if you click on the filter button to expand, the filter item 1 is not selected

Dimo
Telerik team
 answered on 31 Aug 2022
1 answer
144 views

I am using CRUD operations where my grid has default data so, when it is displayed, will have two rows . 

I can add , edit and delete more rows but, I can not edit or delete the default specfic rows that I got: 

USER001 and USER002 can not be edited or deleted. How can I disable those two rows?

 

Dimo
Telerik team
 answered on 31 Aug 2022
1 answer
180 views

Hi, I would like to get some input on creating an editable tooltip system.

Each input field should have a question mark icon on the right. That shows some text when you hoover over it.

Text should be stored in a database and users should be able to edit the text directly on the form.

For edit, I imagine this: Hoover over should show the help text but also a small pencil ikon if the have the right to edit the text. Edit should show a new popup.

For identifying the field in the database I could maybe use classname.fieldname and get it using reflection. 
The text should be fetch and set on mouse over.

Can I get the classname.fieldname from the binding to the input field? and then use it in the function to get the text for the tooltip?

Link to tooltip documentation

Let os brainstorm together 😊 

Tsvetomir
Telerik team
 answered on 30 Aug 2022
1 answer
314 views

I make it short:

Is there any way to customize the text in the GroupPanel or get rid of it (not the Panel itself) ?

 

Svetoslav Dimitrov
Telerik team
 answered on 29 Aug 2022
0 answers
121 views
if we need to make some fields read-only for some specific rows
Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
 asked on 29 Aug 2022
2 answers
208 views

Hey,

I don't see any real way to support enums with the [Flags] attribute for Grid and Filter. The display in the grid column is fine, but the filter menu is useless as it only does a straight up comparison to single values.

It would be great if the filter on the grid (and the filter component) had an option for HasFlags, where you can select a value to compare for it. 

Nadezhda Tacheva
Telerik team
 answered on 29 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?