Telerik Forums
UI for Blazor Forum
1 answer
821 views

Hi I'm having a cascading menu on the right side of the page, So it is natural to make the popup direction to the left.

like bootstrap dropdown dropleft

https://getbootstrap.com/docs/4.5/components/dropdowns/#dropleft

Does anyone know whats the solution for this common layout?  Thanks in advance.

This is the current behaviour when the menu is on the right side of the page.

 

This is my code, taken and modified from https://docs.telerik.com/blazor-ui/components/menu/overview


<h3>menu on Right side</h3>

<div class="toolbar-buttons">
    <TelerikMenu Data="@MenuItems" Orientation="MenuOrientation.Horizontal"
                 UrlField="@nameof(MenuItem.Page)"
                 ItemsField="@nameof(MenuItem.SubSectionList)"
                 TextField="@nameof(MenuItem.Section)">
                    
    </TelerikMenu>
</div>

@code {

    public List<MenuItem> MenuItems { get; set; }

    public class MenuItem
    {
        public string Section { get; set; }
        public string Page { get; set; }
        public List<MenuItem> SubSectionList { get; set; }
    }

    protected override void OnInitialized()
    {
        MenuItems = new List<MenuItem>()
        {
            new MenuItem()
            {
                Section = "Right aligned menu", // items that don't have a URL will not render links
                SubSectionList = new List<MenuItem>()
                {
                    new MenuItem()
                    {
                        Section = "menuItem1",
                        SubSectionList = new List<MenuItem>()
                        {
                            new MenuItem()
                            {
                                Section = "menuItem-subMenu1",
                                Page = "consultingservices"
                            },
                            new MenuItem()
                            {
                                Section = "menuItem-subMenu1",
                                Page = "education"
                            }
                       }
                    },
                    new MenuItem()
                    {
                        Section = "MenuItem2",
                        Page = "company/events"
                    }
              
                }
            },
        };

        base.OnInitialized();
    }
}

<style type="text/css">
    .toolbar-buttons {
        display: flex;
        flex-direction: row;
        justify-content: end;
    }
</style>

Marin Bratanov
Telerik team
 answered on 12 Sep 2021
0 answers
241 views

I would like to put individual form elements of a form into a tile layout so that the form elements can be moved around to suit the end user's layout preferences.

Is it possible?

Jstemper
Top achievements
Rank 2
Bronze
Iron
 asked on 11 Sep 2021
1 answer
1.6K+ views

Is there any way to have the OnChange event get called when they click enter but NOT when the textbox loses focus?

My textbox is in a modal and it performs a data search when Enter is clicked in the textbox, but the problem is when I click the Cancel button in my modal window it fires the event if I am still focussed on the textbox and it interferes with the closing of the modal.

 

Marin Bratanov
Telerik team
 answered on 09 Sep 2021
1 answer
203 views

As it stands at the moment, what I'm assuming are the grid keyboard settings means that shift-enter doesn't add a newline when typing text, it instead confirms the edit and saves the grid row. 

Is there a way around this?

 

All the best,
John

Marin Bratanov
Telerik team
 answered on 09 Sep 2021
1 answer
246 views
I am still evaluating Telerik UI for Blazor and would like to share my POC project with the evaluation team before purchase.  I have tried to deploy my POC to an Azure App Service but get a HTTP ERROR 500 when running the web app. I am quit eproficient in the deployment process and have deployed other blazor projects many times. Can I check if the reason for this error is due to running the trial version ? ... 
Dimo
Telerik team
 answered on 08 Sep 2021
2 answers
246 views

Hi I tried your blazor-ui demo, the Menu component to find out how it can collapse the sub-menu when user click outside of them.

Tested on android phone and the menu with sub-menu is not working. When I touch the menu with sub-menu, nothing happened.

https://demos.telerik.com/blazor-ui/menu/images
https://demos.telerik.com/blazor-ui/menu/overview

https://demos.telerik.com/blazor-ui/menu/template

 

I tried with 2 browser just to make sure.

 

 

 

 

 

Hristian Stefanov
Telerik team
 answered on 07 Sep 2021
1 answer
231 views

Hello everyone,

Is there any posibility to change the arrows from te left of the TreeView somehow?

Best regards,
Ciprian

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 07 Sep 2021
1 answer
293 views

#app { height: 100vh; /* grid container settings */ display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: 'header' 'main' 'footer'; }

Can I use named areas and fractions?

 

Marin Bratanov
Telerik team
 answered on 06 Sep 2021
1 answer
309 views
it would be great to have ability by having some method 
Marin Bratanov
Telerik team
 answered on 06 Sep 2021
1 answer
703 views

Hi,

I am trying to implement a custom CSV export for a Telerik Blazor Grid.  I want to be able to build up my CSV file manually so can't use the out of the box exporting solutions that the grids currently have.

I want to be able to generate the CSV header row and I want to be able to use the column header titles as they are displayed to the user.

This information doesn't appear to be exposed in the grid API.

I have found this article:

https://docs.telerik.com/blazor-ui/components/grid/state?_ga=2.72679824.2042974694.1630916775-1170839967.1533657392#get-current-columns-visibility-order-field

which shows that you can get a list of current column states but it doesn't look like you can get the properties of the column e.g. fieldName, columnHeaderTitle etc.

The linked article seems to suggest that:

This example also shows a workaround for getting the Field of the column that will be availale in a future release as part of the column state

 

Are there any updates on what release this will be available in and whether it will include more column properties like Title ?

Thanks.

Marin Bratanov
Telerik team
 answered on 06 Sep 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?