Telerik Forums
UI for Blazor Forum
1 answer
205 views

Hello,

Is there any way to load the data in the FileManager control virtually. I would prefer to not have to traverse the entire file system to provide the folder/file structure. Can the OnRead method be used to provide just the data needed for the current view?

Thank You,

-Andy

Stamo Gochev
Telerik team
 answered on 25 May 2022
1 answer
116 views

Dear All,

The attached document contains a couple of Grid component document that I got from DevExpress and SyncFusion. I am interested in the one that is similar to the image attached, which I got from DevExpress. Does Telerik have something similar to this? I would also like to see one like that image on page 1 that is in 1-to-many relationship, where the form part represents the parent, and the grid part represents the child.

I am trying to develop a Blazor application that could mimic what I stated above, especially Form/Grid, where the Form represents the main form (parent), and the Grid, represents the child in a 1-to-many relationship respectively.

I got the image from this link: 

https://community.devexpress.com/blogs/aspnet/archive/2021/11/12/grid-for-blazor-standard-and-popup-edit-forms-now-available-in-v21-2.aspx

Your quick response to this request is greatly appreciated.

Sincerely,

Isaiah A.

Tsvetomir
Telerik team
 answered on 23 May 2022
1 answer
187 views

Dear All,

I am currently trying to create a Blazor Application.  If I had a list of records in a Grid, I would like to click a button to open a Form. Let us say that this form is a Customer Address (parent). Once this form is opened, I would like to see a Grid that contains the Orders (child). I can create class models for both Address/Orders. I will migrate them to an RDBMS like SQL Server. Does anyone know if Telerik has sample application like this or if you know any link that you can point me to? 

I have recently purchased a license for Telerik, and so far, I like what I see.

Your response to the above request is greatly appreciated.

Sincerely,

Isaiah A

 

Tsvetomir
Telerik team
 answered on 23 May 2022
0 answers
246 views

Hi

http://https://demos.telerik.com/blazor-ui/grid/editing-incell demo's incell editing, I noticed that with Ctrl+Enter I can navigate one row down after editing.

I wonder if the editboxes in the grid where not checkboxes (iusing the up and down arrow) I could use the arrow up and down to do the same?

 

Eric

Paul
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 23 May 2022
1 answer
155 views

Is it possible to change the EditMode during Runtime in C#?

please see the following code - MyGrid stays in Incell Editmode.


<Toolbar>
    <ToggleButton OnClick=@StartEditMode/>
    <ToggleButton OnClick=@StartSelectionMode/>
</Toolbar>
<Grid @ref="_myGrid" EditMode=Incell>
    ... columns....
</Grid>
</>Grid

StartEditMode()
{
    _myGrid.EditMode = GridEditMode.Incell;
    _myGrid.SelectionMode = GridSelectionMode.None;
    _myGrid.SelectedItemsChanged = EventCallback<IEnumerable<DataItem>>.Empty;
}

StartSelectionMode()
{
    _myGrid.EditMode = GridEditMode.None;
    _myGrid.SelectionMode = GridSelectionMode.Multiple;
    _myGrid.SelectedItemsChanged = Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, (IEnumerable<DataItem> items) => OnSelectionChanged(items.ToArray()));
}

OnSelectionChanged(DataItem[] items)
{
   ... do something here
}
Marin Bratanov
Telerik team
 answered on 22 May 2022
1 answer
106 views

Hello,

I have menu table in my database, which have menuid and parentmenuid columns.

I want to bind data retrieved from this table to blazor menu.

Is it possible ? there is no example showing how to bind blazor menu to remote data.

Thanks,

 

Milind Shevade

Marin Bratanov
Telerik team
 answered on 22 May 2022
1 answer
169 views
ValueChanged Event for Complex Types are not firing. Code example as below



@using Telerik.Blazor.Components;
<h1>Hello, Telerik REPL for Blazor! @selectedCodeBase.ItemName </h1>
             
<TelerikComboBox Data="@myComboData" 
    TextField="ItemName" 
    ValueField="ItemKey" 
    TValue="MyDataModel" 
    TItem="MyDataModel"
    ValueChanged="(MyDataModel  s)=>sValueChanged(s)"    
>
</TelerikComboBox>

@code {
public class MyDataModel{
    public string ItemName {get;set;}
    public long ItemKey {get;set;}
}
IEnumerable<MyDataModel> myComboData = Enumerable.Range(1, 20)
       .Select(x => new MyDataModel { ItemName = "item " + x, ItemKey = x });
       

    private MyDataModel selectedCodeBase = new MyDataModel();

 private async void sValueChanged(MyDataModel s)
    {
        await Task.CompletedTask;
    }


}
REPL Example

https://blazorrepl.telerik.com/cmuJFNan441IMFgm37


Please Help.

Thank you
Marin Bratanov
Telerik team
 answered on 22 May 2022
3 answers
133 views

Hi

Using Filtermenu  , an user set a filter on multiple columns,  i want to save  this filter in the database and reuse it later.

Is this possible.

 

Also when filtering , the user can not see what filters he or she placed.

Can it be possible to have a grid property that describes the filter like

( A > 10)  And ( (B=2) or B=3)  ) and COUNTRY = 'USA" ?

This way we can drop a label and attach t to the property

Eric

 

Paul
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 20 May 2022
1 answer
3.5K+ views

Hi, I was looking for a way to specify that a grid column should toggle thru the ListSortDirection in a different order. By default it appears a sortable column toggles through its sort directions in this order:

1st click to sort - Ascending

2nd click - Descending

3rd click - no sort

That works for a majority of our grids and their columns (primarily strings and numbers) but we have some columns like 'Last Modified' dates that I'd like it to:

1st click to sort - Descending

2nd click - Ascending

3rd click - no sort

This would also be more intuitive with our grids that we set their initial sort column to a date column in Descending order on page load. The 'first sort' a user expects is Descending on those columns.

I assume there's a way to use OnStateChanged to do this but it'd involve tracking state changes ourselves and other custom code to try to indicate a certain column should toggle sort directions through different orders. Way too much work for us to introduce into our product at this time. Other tech stacks provide a way to specify the toggle order via column properties, and was hoping such a feature either existed or could be added. Thanks!

Hristian Stefanov
Telerik team
 answered on 20 May 2022
2 answers
769 views
Is there a way to select the entire row automatically when a user presses key up or key down? 
Paul
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 20 May 2022
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?