Telerik Forums
UI for Blazor Forum
2 answers
464 views

Hello.

I would like to know how is the best way to reference the components that are inside a grid detail template from the code behind. 
To exemplify the situation I leave the following code:

<TelerikGrid TItem="@MyModel" @ref="_myMainGridReference" OnRead="@OnReadHandler" OnRowDoubleClick="@OnGridDoubleClickHandler">
    <GridColumns>
            - Main grid columns here -
    </GridColumns>
<DetailTemplate>
@{
        /*  Child component inside detailtemplate => how can I reference from the code behind? */
        var ctex = context as JobViewModel;
        <TelerikGrid @ref="??????" Data="@ctex.data" SelectionMode="@GridSelectionMode.Multiple">
               <GridColumns>
                       - Detail grid columns here -
               </GridColumns>
        </TelerikGrid>
}
    </DetailTemplate>
</TelerikGrid>

I have some ideas on how to achieve this but I don't know if they are the most appropriate. For that reason I would like to know what your approach would be to solve it. 
Best regards, 
Twain
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 23 Dec 2022
1 answer
271 views
Is there a way to navigate to a hierarchical detail template within the grid using the arrow keys?  Currently in keyboard navigation demo, it mentions putting some type of focusable element into the template and hitting the tab key to get to it, but this is rather counter-intuitive for a screen reader user with the keyboard if they are using the arrow keys to navigate the grid cells, and then having to tab to get within the detail. If they tab again it's going to take them out of the grid completely.
Dimo
Telerik team
 answered on 23 Dec 2022
0 answers
323 views

I'm trying to use the new Blazor Signature feature in a form but the pad isn't letting me draw. Nothing happens when I touch or use the mouse. Why is that?

 

<TelerikForm Model = "NewSignoff"
                     Orientation="@FormOrientation" OnValidSubmit="@HandleValidSubmit">
            <FormValidation>
                <DataAnnotationsValidator></DataAnnotationsValidator>
            </FormValidation>
            
            <FormItems>
                <FormItem Field="@nameof(Signoff.Email)"></FormItem>
                <FormItem Field="@nameof(Signoff.JobTitle)"></FormItem>
                <FormItem Field="@nameof(Signoff.Signature)"></FormItem>
              @*  <FormItem Field="@nameof(Signoff.SigSign)"></FormItem>*@
              

                <p>
     <div class="signature-wrapper">
                 <TelerikSignature Width="600"
                    Class="SigBox"
                     Height="200px"
                     Color="black"
                     ValidateOn="@ValidationType"
                     @bind-Value="@NewSignoff.SigSign">
                  </TelerikSignature>

   
</div>
                   
            </FormItems>
        </TelerikForm>

 

Even when I copy and paste the example to a new razor page, it doesn't work.

Kezi
Top achievements
Rank 1
 asked on 22 Dec 2022
0 answers
190 views

Help :)

 

How can I make it work and apply on a IQueryable if possible ?

 

John
Top achievements
Rank 1
 updated question on 22 Dec 2022
1 answer
479 views

If a value is "0" then I want to display an empty field. But if a value is greater that "0" I want to format it with 2 decimals.

I can not figure an easy way how.

Actually I have the choice between "#,###.##" and "#,##0.00".  I have a lot of those fields so I need a kind of generic solution...

Dimo
Telerik team
 answered on 22 Dec 2022
1 answer
195 views
I have a Tabstrip with 3 tabs.  I have buttons on the 2nd tab.  I select the 2nd tab and click on a button and the active tab goes back to the 1st tab even when the button I clicked on doesn't do anything.  How do I prevent the selected tab from resetting to the first (default) tab?
Larry
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 21 Dec 2022
0 answers
417 views

I'm displaying "live" data in a telerik blazor grid that is refreshed every 30 seconds by a timer from a database. I've tried following the examples to preserve the grid state, but all rows collapse after StateHasChanged(). I do not want to store the state in the local browser. The reason I would like this feature, is that I will be displaying a large amount of nested data, and would like to only allow the user to look at one record at a time (to simplify the interface). I'm not able to successfully preserve the expanded state. I have also tried            

var state = Grid.GetState();

state.ExpandedItems = new List<MainModel> { mod };

await InvokeAsync(() => StateHasChanged());

await Grid.SetState(state)

But the state results in collapsed.

 

Sara
Top achievements
Rank 1
Iron
 asked on 21 Dec 2022
1 answer
296 views

The example for the OnReorder feature returns a null result. The Id (args.Id) is never shown in the console log message.

 

@* Handle the OnResized event *@ <TelerikTileLayout Columns="3" Reorderable="true" OnReorder="@OnReorderHandler"> <TileLayoutItems> <TileLayoutItem HeaderText="Panel 1"> <Content>Regular sized first panel.</Content> </TileLayoutItem> <TileLayoutItem HeaderText="Panel 2"> <Content>You can put components in the tiles too.</Content> </TileLayoutItem> <TileLayoutItem HeaderText="Panel 3" RowSpan="3"> <Content>This tile is three rows tall.</Content> </TileLayoutItem> <TileLayoutItem HeaderText="Panel 4" RowSpan="2" ColSpan="2"> <Content>This tile is two rows tall and two columns wide</Content> </TileLayoutItem> </TileLayoutItems> </TelerikTileLayout> @code{ async Task OnReorderHandler(TileLayoutReorderEventArgs args) { Console.WriteLine($"tile {args.Id} reordered, might be a good time to save the state."); } }

Yanislav
Telerik team
 answered on 21 Dec 2022
1 answer
188 views

Hi

Good native Gantt component - really pleased you have implemented most useful functions.

One that I use a lot is a baseline start and end date for activities - to visually see how delay or variation has occurred over time (se attached image for basic example)

Is there a way to do this at the moment? if not is this something you could think of adding?

Svetoslav Dimitrov
Telerik team
 answered on 21 Dec 2022
0 answers
303 views

Hello,

I have a scenario where I have a Telerik Notification with a Telerik progress bar embedded.  I am looking to update the progress bar of multiple instances of the notification independently based in separate threads.

Would this be possible?

Thanks,

Tony

 

Tony
Top achievements
Rank 1
 asked on 20 Dec 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?