Telerik Forums
UI for Blazor Forum
1 answer
201 views
We'd like to open the dropdownlist automatically when it receives focus, and then focus on the filter textbox inside the dropdown. Is this possible? Was hoping for an OnFocus event.
Nansi
Telerik team
 answered on 08 Jan 2024
5 answers
404 views

I have the following TreeList definition inside a model-dialog box.  The modal-dialog:overflow-y options (auto, hidden, scroll, visible) let me turn the dialog's scroll bar on and off.  However, none of them seem to work like I would expect.  How do I freeze the height of the modal-dialog so that the scroll bar on the TreeList becomes active?  It seems the dialog stretches off-screen.

 


@if (ShowDialog)
{
    <div class="modal fade show d-block" id="exampleModal" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="titleLabel">@Title</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close" @onclick="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">


                    <TelerikTreeList Data="@Groups"
                                     IdField="@nameof(SelectedGroup.Id)"
                                     ParentIdField="@nameof(SelectedGroup.ParentId)"
                                     SelectedItems="@SelectedGroups"
                                     FilterMode="@TreeListFilterMode.None">
                        <TreeListColumns>
                            <TreeListColumn Expandable="true" Field="Name" Title="Name" />
                        </TreeListColumns>
                    </TelerikTreeList>


                </div>
            </div>
        </div>
    </div>
}

<style>
    .modal-dialog, .modal-dialog img { /*same value to avoid overwidth*/
        width: 70%;
        height: 90%;
        margin: 15px auto;
        overflow-y: visible;
    }
</style>

Joel
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 08 Jan 2024
2 answers
109 views

Hi

We have run into some difficulties with charting a 'floating' stacked series. Is it possible to 'stack' series in a Range Column Chart? Where the data in this REPL would be represented by one column with two regions: https://blazorrepl.telerik.com/cRPGbRkN53vvK3Y152

We have been working around the issue by using a Column chart and creating an invisible stacked series to move the real series into position. However, we struggle when negative values are required, specifically if a column is to range between a positive value to a negative value, e.g. From 47 to -10. 

 

Thanks

Mark 

Mark
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 08 Jan 2024
0 answers
75 views

I need sample Drop-Down custom filter menu for this Grid, i dont see sample in telerik docs

<GridColumn Field="MoneyTransferCode" FieldType="@(typeof(int))" Title="نوع انتقال وجه" Width="200px" Groupable="true">
<GroupHeaderTemplate>
نوع انتقال وجه: @Data.Where(x => x.MoneyTransferCode == int.Parse(context.Value.ToString())).Select(x => x.MoneyTransferCodeName).FirstOrDefault()
</GroupHeaderTemplate>
<Template>
@{
var item = context as TermOfTransactionDto;
@item.MoneyTransferCodeName
}
</Template>
<EditorTemplate>
@{
var item = context as TermOfTransactionDto;
<TelerikDropDownList Data="@MoneyTransferCodeList"
ValueField="Value"
TextField="PersianDisplayName"
Width="100%"
@bind-Value="@item.MoneyTransferCode"/>
}
</EditorTemplate>
</GridColumn>

Ali
Top achievements
Rank 1
 asked on 06 Jan 2024
0 answers
117 views
HI i want defin custom filter menu for my Grid Column and this is my Grid
(
<GridColumn Field="MoneyTransferCode" FieldType="@(typeof(int))" Title="نوع انتقال وجه" Width="200px" Groupable="true">
<FilterMenuTemplate>
@{
<div class="filter-values-container">
@foreach (var country in MoneyTransferCodeList.Select(x => x.PersianDisplayName))
{
<div>
<TelerikCheckBox Value="@(GetFilterValues(context.FilterDescriptor).Contains(country))"
ValueChanged="@((bool value) => ColumnValueChanged(value, country, nameof(TermOfTransactionDto.MoneyTransferCode), context.FilterDescriptor))"
Id="@($"country_{country}")">
</TelerikCheckBox>
<label for="@($"country_{country}")">
@country
</label>
</div>
}
</div>
}
</FilterMenuTemplate>





<GroupHeaderTemplate>
نوع انتقال وجه: @Data.Where(x => x.MoneyTransferCode == int.Parse(context.Value.ToString())).Select(x => x.MoneyTransferCodeName).FirstOrDefault()
</GroupHeaderTemplate>
<Template>
@{
var item = context as TermOfTransactionDto;
@item.MoneyTransferCodeName
}
</Template>
<EditorTemplate>
@{
var item = context as TermOfTransactionDto;
<TelerikDropDownList Data="@MoneyTransferCodeList"
ValueField="Value"
TextField="PersianDisplayName"
Width="100%"
@bind-Value="@item.MoneyTransferCode"/>
}
</EditorTemplate>
</GridColumn>
)
and this is my function I need 
(
public void ColumnValueChanged(bool value, string itemValue, string columnName, CompositeFilterDescriptor filterDescriptor)
{
var filter = filterDescriptor.FilterDescriptors.FirstOrDefault(f => (f as FilterDescriptor).Value?.ToString() == itemValue);

int itemValueNumber = MoneyTransferCodeList.First(x => x.PersianDisplayName == itemValue).Value;

filterDescriptor.LogicalOperator = FilterCompositionLogicalOperator.Or;

if (value && filter == null)
{
// var filterDescriptor1 = new FilterDescriptor(columnName, FilterOperator.IsEqualTo, itemValue);
// filterDescriptor.FilterDescriptors.Add(filterDescriptor1);
filterDescriptor.FilterDescriptors.Add(new FilterDescriptor(columnName, FilterOperator.IsEqualTo, itemValueNumber));


}
else if (!value && filter != null)
{
filterDescriptor.FilterDescriptors.Remove(filter);
}
}
)
and when i use this filter its truly work but i cant see the item that i select in front end , also I see a sample like this in telerik docs but its for string values and in this case i want use for int values pleas help me.
Ali
Top achievements
Rank 1
 asked on 06 Jan 2024
1 answer
239 views

How can I get the TreelList to show all children of parents who match a filter (or searchbox) condition, and keep the expandability of filtered nodes, even if children don't match the filter condition? Currently children that don't match the search are hidden and the parents become non-expandable.

For example, if I have a tree with an item "Fruit" with children "Apple", "Orange", "Grape", I would like "Apple", "Orange" and "Grape" to still show if I search for "Fruit" in the search box. If the "Fruit" node was not expanded, I want it to stay expandable.

I am using the TreeList with load data on demand. I am currently partially achieving the desired result by adding "dummy" child nodes that match the parent so the parent stays expandable on search, then removing the dummy nodes on expand and replacing with the real child items. I have also tried using hidden fields. It seems like the TreeList should have a built in option to support this use case.   

Nansi
Telerik team
 answered on 05 Jan 2024
1 answer
569 views

One of the most basic features, and a reason why many would want to use an HTML editor, is to use style tags to style the content of the HTML editor.

 

However, it appears if you use the iframe, you cannot do this.  The whole point of an iframe is to stop scope creep both ways, which means style tags should work without issue.   Although they seem to be ignored in the editor, and HTML is placed inside an <textarea> outside of the iframe, making the style tag affect the entire web app.

 

And if you use a div instead of an iframe, you get the scope creep.

 

Seriously.... why is this not implemented????

 

Is there a way to make the iframe honor the style tags?

Dimo
Telerik team
 updated answer on 04 Jan 2024
1 answer
149 views

Hello,

I have problem with horizontal scrollbar on grid - it works ok on all browser except Opera. It seems that it exists (when i press and drag mouse on scroll area it moves grid) but is invisible.

The same problem occurs even on example:

https://demos.telerik.com/blazor-ui/grid/scrolling

That's how it looks on Opera:

 

I have the latest version of Opera: 106.0.4998.19 (chromium version:120.0.6099.130). I've also check on version 105.0.4970.60.

Is there anything that i can do with that?

Thanks for help.

Hristian Stefanov
Telerik team
 answered on 03 Jan 2024
1 answer
547 views

For mobile view in column item i want to add the a three dot menu.
On click of that button there will be a popup with two buttons (Like image)
I tried a number of things but not able to figure out which component will be helpful in this condition.

Any help will be appreciated 

(Kendo Blazor) 

 

Nansi
Telerik team
 answered on 03 Jan 2024
1 answer
434 views

I need a country code selector prepended with mobile number  in kendo Blazor
But not find any component that can be used.

Any help on this will be appreciated .


Svetoslav Dimitrov
Telerik team
 answered on 03 Jan 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?