Telerik Forums
UI for Blazor Forum
1 answer
465 views

I read this Telerik article here and still have many questions not covered in that article:

  1. Typo in the article "SingnalR" ... I think you mean SignalR.
  2. WASM Blazor can run "offline" but without connectivity to server based web APIs and database what would WASM do for me, ability to write data to local file and populate later when connectivity returns?
  3. Can either (WASM or Server) be coded exclusively with DOM and C# and be fully functional, no JavaScript/TypeScript special cases?
  4. Are there any differences on how WASM vs. Server consumes web API ... security difference, CORS, etc.?  Article suggests a "built-in" feature for keeping code secure and private but doesn't expand on that?
  5. Are there any differences on what can be accomplished with a UI/UX with WASM vs Server?
  6. What is the relevance to "SignalR" in either WASM or Server?
  7. I don't see any Telerik templates in VS 2022 for building Blazor WASM or Server application, only the default Microsoft provided templates?

My goal is to minimize the technology stack staying with .NET 6/7 core/EF (web APIs), C#, DOM, Blazor so that code maintenance is easier and less demanding on hired skill sets and less fragile (more resilient)   Nothing against JS and TypeScript, it's just that for my development case, I want to avoid JS and mixing it in with my application.

My application requirements are fairly standard, both public facing and private web application calling web API that communicates with back end database.  The UI needs to be nice/modern but doesn't need to be a marketing/sales type of website.  I need easy databinding, validation, and powerful grid control (filters, groups, sorts), touch signature image capture, and there will be some interaction with cameras for image capture and OCR and of course standard reporting to a report server.

I am reading up on your training course here.

Any insight would be helpful as I get more familiar with Blazor.

Many thanks.

Dimo
Telerik team
 answered on 26 Oct 2022
4 answers
4.3K+ views

I need customized Click event on clicking Modal popup close button.

<WindowActions><WindowAction Name="Close" /></WindowActions>

Instead of above code, I need as below

<WindowActions>
        <WindowAction Icon="@IconName.Close" OnClick="@OnCloseClick" />
 </WindowActions>

 async Task OnCloseClick()
{

}

Hao
Top achievements
Rank 1
Iron
 updated answer on 26 Oct 2022
1 answer
343 views

Hello

I'm using Telerik.UI.for.Blazor 3.6.0

I would like to make async query on TelerikFilter ValueChanged EventCallback ( change found items count ) but when i change my implementation

from

private void OnFilterValueChanged(CompositeFilterDescriptor filter){
//code here
}

to

private async Task OnFilterValueChanged(CompositeFilterDescriptor filter){
//code here validation and get filteringRules
int count = await dispatcher.QueryAsync(new CountItemsQuery(filteringRules));
//code here
}

TelerikFilter stop working properly 

When i add second filter condition and then i would like remove it nothing hapens (GUI do not reload)

Second try remove filter condition throws Exception: Index was out of range.

Am i doing something wrong or it's error?

Best regards

Svetoslav Dimitrov
Telerik team
 answered on 26 Oct 2022
1 answer
276 views

I have a notification component defined on my MasterLayout page like below.   and then shared with all my other pages via a cascading parameter.

<TelerikNotification @ref="@NotificationReference" AnimationType="@AnimationType.ZoomOut" Class="notification"
                                                 HorizontalPosition="NotificationHorizontalPosition.Center" VerticalPosition="NotificationVerticalPosition.Top"/>

Everything works fine, but I am noticing that if i am scrolled down on a child page, the notification stays at the top of the page (off the visible screen) instead of being relative to the top of the window.  How can i make sure the notification is always visible to the end users regardless of how far down a page they might be scrolled too?

Thanks in advance,

Eric
Top achievements
Rank 2
Iron
Iron
 answered on 25 Oct 2022
1 answer
278 views

I have a text box user can type or paste a value into.

A hidden button should appear once a value is in the box.

The thing that's happening is after the value is pasted in, no button. user has to press a button in the textbox for the button to appear.

Now the really strange thing is I put the pages code in your https://blazorrepl.telerik.com/ tool and it appears to work.

Just not in my main project or a test project using just the sample project app code that gets made when you create a blazor server project.

I have include the code I have stuck in your tool, in the txt file, and my sample project in the zip file.

The page in the project is: CopyNPasteTest.

Would love to know whats going on.

Thanks.

Deasun.

Nadezhda Tacheva
Telerik team
 answered on 25 Oct 2022
1 answer
209 views
I want to prevent user to deselct one of grid rows. Grid has check box sellection turned on. Grid purpose is an users sellection for an application role. I want user to be unable to remove Administrator user from Administrators role by deselecting it. Now, in SelectedItemsChanged event i'm exammining selected users collection for Role is Administrators and user Administrator not present in sellected users collection. If so, i'm adding it back and submit MySelectedItems = IEnumerable (MySelectedItems is two way bound to SelectedItems of grid) with Administrator user added.  After that, sittuation go a little bit shizophremic. The Administrator user row remains selected on the grid but the CheckBox selector of that user remains deselected...  So, haw to prevent check box sellection of a single row?
Dimo
Telerik team
 answered on 25 Oct 2022
1 answer
86 views

Nice job on Telerik, Kendo UI and Test Studio R3 2022!   I like the PDF Viewer UI Controls.  Question: Any plans to add annotations and comments to client-side .NET Blazor MAUI libraries such as this serverside solution?

Dimo
Telerik team
 answered on 25 Oct 2022
19 answers
1.9K+ views

Hi Marin and happy new year!

I don't know if you can advise, but we've noticed that when selecting multiple rows of the grid (not using the checkbox), the selection seems to be noticeably slow. There seems to be quite a delay when clicking one or more rows (using shift in the latter case) and the highlight colour changing to show the selection.

Our grid is quite complex as we use RowTemplate and a manual datasource, but I notice that there is a similar albeit less pronounced delay in your demo. Any idea what might be causing this?

Kind Regards,
Nick.

<TelerikGrid Data=@Items TItem="Item" Sortable="true" Height="100%" Pageable=true OnRead="@ReadItems"
             PageSize=50 TotalCount=@Total class="viewgrid"
             SelectionMode=Telerik.Blazor.GridSelectionMode.Multiple
             @bind-SelectedItems="@SelectedItems">
    <RowTemplate Context="item">
        @foreach (var viewColumn in ViewDefinition.Columns)
        {
            <ViewGridColumn ViewColumn="@viewColumn" Item="@item" OnDoubleClick="@RowClicked" />
        }
 
    </RowTemplate>
    <GridColumns>
        @foreach (var viewColumn in ViewDefinition.Columns)
        {
            <GridColumn Title="@viewColumn.Label" Field="@viewColumn.FieldName" Width="@(viewColumn.Width + "px")"></GridColumn>
        }
    </GridColumns>
</TelerikGrid>


Hao
Top achievements
Rank 1
Iron
 answered on 24 Oct 2022
0 answers
123 views

I have a filterable virtualized ComboBox, using OnRead to load data.
Pressing TAB while the ComboBox has focus doesn't work, nothing happens.
Shift-TAB works as expected.

Robert
Top achievements
Rank 1
 asked on 24 Oct 2022
0 answers
285 views

I'm running into an issue trying to implement a horizontally scrolling grid in the main content of a page alongside a push drawer. From what I understand, scrolling horizontally requires a fixed width TelerikGrid, but using push mode on a drawer requires the same width to not be set. Currently, if I set a fixed width for the grid, it will always remain at that width, regardless of whether the drawer is expanded or closed. If I don't set a width, the grid will expand to its full width and go off the screen, rather than remaining on the screen and expanding/contracting when the drawer is opened or closed.

Is there a good way to implement horizontal scrolling in a Telerik Grid while still allowing the grid to increase and decrease in width when the drawer is opened/closed?

Carter
Top achievements
Rank 1
 asked on 24 Oct 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?