Telerik Forums
UI for Blazor Forum
2 answers
297 views

Hello.

 

I use Custom Batch editing Grid and need to perform some validation when save all changes.

I try in the view


<ValidationMessage class="col-sm-12 text-danger" For="@(() => CurrentlyEditing.tlkpLocalisationId)" />

with something like this in the razor.ca file


    public async Task SaveAllChanges()
    {
...
        messageStore?.Add(editContext.Field("tlkpLocalisationId"), "test");  
....
    }

Not working.  And more if user change/add some invalid data (multiple rows) so those rows must be validated too.

Thanks for your time

Louis
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 25 Mar 2023
1 answer
520 views

I have an odata endpoint that I would like to filter records based on a boolean value in a sub object.

How would I go about using FilterDescriptors to create the following bolded Query parameters in my OData call?

http://MyODATAEndPoint/MyRecords?$count=true&$expand=Flags($filter=IsCleared ne true)

Nadezhda Tacheva
Telerik team
 answered on 24 Mar 2023
0 answers
596 views

I have a Windows setup as a modal. On the window I have a small form.  When I hit the save button on the form the data saves but then I want to automatically close the modal window.  

This is my Save method:

private bool isModalVisible { get; set; } = false;  
protected void OnDoubleRowClickHandler(GridRowClickEventArgs args)
  {
   isModalVisible = true;
 }   

public async void OnSubmitHandler(EditContext editContext)
    { 
        bool isFormValid = editContext.Validate();
        MyVM myClass = (MyVM)editContext.Model;
        if (isFormValid)
         {
         var result = await _myService.SaveMyClass(myClass);
         isModalVisible = false;
        }
    }

I  make the modal window visible in a double-click event on a grid row.

 

HYow do I close the modal from inside my SubmitHandler method?

Jstemper
Top achievements
Rank 2
Bronze
Iron
 asked on 23 Mar 2023
1 answer
267 views

The content area of my tabs have grid controls on them. I have them configured to go to a detail page when a row is double clicked.

When the detail page comes up I lose the tab strip.  

Is there a strategy or technique for keeping the tabstrip at the top even when navigating from grid to a detail page?

Nadezhda Tacheva
Telerik team
 answered on 22 Mar 2023
1 answer
242 views
 Hello,
 
 How to collapse the pane using their collapse/expand buttons  or double-clicking the split bars,
 so that the minimum size the pane is taken into account.
 Currently the whole panel is closed.
 
 Thank you very much
Dimo
Telerik team
 answered on 22 Mar 2023
0 answers
291 views

I have two tables: Team Basic Info and Team Stats

Considering the yellow cells.  Team Basic Info and Team Stats are two Buttons. Team Basic Info is the default View. How can I implement the Team Stats Button so it shows the team stats table and hides the Team Basic Info and vice-versa?

Thanks for any help

Ponlu
Top achievements
Rank 1
 asked on 22 Mar 2023
1 answer
183 views

When transition is true the gauge operates in a visually unappealing way by default and I'm wondering if there is a setting or method to make it work better.

Basically if the gauge (linear or radial) has a value of 20 then jumps to 30, the needle drops to 0 then transitions to 30. When really it should transition from 20 to 30. 

To reproduce use the Telerik demo page @ :

https://demos.telerik.com/blazor-ui/radialgauge/overview

Paste in 35 into the Change Pointer Value box and watch what happens.

Note : Don't type in 35 because it will jump to 0 then to 3 before you type the 5 so it makes it harder to see.

Is there a way to stop this and have the gauge go from the last value to the new value??

Nadezhda Tacheva
Telerik team
 answered on 21 Mar 2023
1 answer
154 views

Hello,

Is there any way in the Telerik Scheduler for Blazor to get the ExactTimeReadring feature enabled ?

Like it is here for example : https://demos.telerik.com/aspnet-ajax/scheduler/examples/exacttimerendering/defaultvb.aspx

Fabien

Nadezhda Tacheva
Telerik team
 answered on 21 Mar 2023
1 answer
384 views

This error occurred on 2023-03-15.

 error CS0012: The type 'DataSourceRequest' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.DataSource, Version=2.1.3.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92'.

[RESOLVED] Error CS0012: The type 'DataSourceRequest' is defined in an assembly that is not referenced. You must add a reference to assembly Telerik.DataSource, Version=2.1.3.0 in UI for Blazor | Telerik Forums

I know it was discussed at this URL.
But when I build the Dockerfile, the error is still there.

When will this error be fixed?

Package : Telerik.UI.Blazor(4.1.0)

Dimo
Telerik team
 answered on 21 Mar 2023
1 answer
495 views

I'm displaying text in a grid cell that contains line feeds and like normal those line feeds get removed when rendered. The conventional wisdom to preserve line feeds is to apply CSS, something like "white-space: pre-wrap". However when I do that in a Telerik grid cell via 

 

.k-grid td, .k-grid .k-table-td {

        white-space: pre-wrap;
}

 

The rendered td element gets unnecessarily tall, wasting space. I saw this post:

https://www.telerik.com/forums/multi-line-text-in-grid-cell

And with that I was able to get the end result to look okay using this:

                <Template>
                    @(new MarkupString((context as LocationDto).RMRAddress?.DisplayText.Replace(Environment.NewLine, "<br/>")))
                </Template>

But I really don't like having to use a markup string like that. Is there a way to apply CSS to the grid cell to preserve the line feeds without creating the unnecessary height? See the attached screenshot. Yellow highlight shows the wasted space I'm referring to.

 

Thanks.

Yanislav
Telerik team
 answered on 21 Mar 2023
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?