Telerik Forums
UI for Blazor Forum
0 answers
154 views

I'm trying to use TelerikGrid to drag and drop items from subgrid to subgrid (Using another TelerikGrid in the DetailTemplate).  I have gotten it to work well when moving rows around the same grid, but it doesn't work when I try to drag from one grid to another.  The event only fires for the source grid and not the destination grid, whereas the documentation says it should fire for both.

I'm not sure whether I'm doing something wrong or if this function just doesn't work if the two grids don't have the same parent component.

Here's a sample of my code:
                <TelerikGrid Data=@_items
                             Height=@GetHeightValue()
                             Width=@GetWidthValue()
                             FilterMode="@GridFilterMode.FilterMenu"
                             Pageable=@Pageable
                             PageSize=@(PageSize ?? DefaultPageSize)
                             OnRowClick="@OnRowClick"
                             DetailTemplate="@GetGridDetailContent()"
                             RowDraggable=@RowDraggable
                             OnRowDrop="@((GridRowDropEventArgs<DataType> args) => OnRowDropHandler(args))"
                             @ref=@_grid>
                    <GridSettings>
                        <GridRowDraggableSettings DragClueField="@nameof(DataType.Name)">
                        </GridRowDraggableSettings>
                    </GridSettings>
In this case GetGridDetailContent() returns another component of the same type to be able to display three levels of hierarchical data.  Am I missing anything, or does this just not work unless, like in the examples, both grids are part of the same component?
Christopher
Top achievements
Rank 1
Iron
 asked on 05 Jun 2024
1 answer
115 views

I have a grid with bound columns of numeric fields, when we go to edit mode and try to paste the any formatted numbers (e.g. 1,234,567.89), its not getting pasted.

urgent solution is required to accomplish this task.

Hristian Stefanov
Telerik team
 answered on 05 Jun 2024
2 answers
404 views

Hi we have been trying to utilise the TelerikTooltip dynamically for a number of different reasons across various controls and buttons. We notice part of the tooltip icon will still display if the controls tooltip property is either null or empty (see the code snippit from the REPL below.

 

Is there an existing way with the TelerikTooltip (without too much hacking) that it will NOT show the tooltip if the target title is null or empty or whitespace?

 

With this snippit you may also notice an issue with trying to use dynamic tooltips in that the tooltip on the button does not update when pressed. Similar to the question found here: https://feedback.telerik.com/blazor/1460642-the-tooltip-should-be-able-to-re-evaluate-targets-tooltip-not-working-for-elements-not-present-at-first-rendering 


@if (RepaintTooltipFlag)
{
    <TelerikTooltip TargetSelector=".tooltip-target">
    </TelerikTooltip>
}
<TelerikButton class="tooltip-target" title="@buttonTooltip" OnClick="@AddMoreContent">show more content</TelerikButton>
@code{
    string buttonTooltip {get;set;} = "";
    bool AllContentVisible { get; set; }
    //part of workaround
    bool RepaintTooltipFlag { get; set; } = true;
    async Task AddMoreContent()
    {
        AllContentVisible = true;
        buttonTooltip = "More Content Tip";
        //workaround
        RepaintTooltipFlag = false;
        await Task.Delay(30);
        RepaintTooltipFlag = true;
    }
}




Tsvetomir
Telerik team
 answered on 05 Jun 2024
1 answer
211 views

I dont' understand why I need to buy "UI for .NET MAUI", if I have already "UI for Blazor"? Could you me explain ?

With Hybrid option I can creare Windows, MAC, Ios and Android, using only "UI for Blazor".

Thanks.

Andrea

Nadezhda Tacheva
Telerik team
 answered on 05 Jun 2024
1 answer
276 views
Hi, I'm using a Data Grid where I have a button list of documents, I have a button to pop open a window with the PDF viewer, there is a slight delay, and I was wondering if possible, to have a loading screen when click then when Window pop open it stops loading...
Hristian Stefanov
Telerik team
 answered on 04 Jun 2024
1 answer
146 views
Is it possible to have the "More settings" option in the print screen expanded by default? I have a requirement that the "More settings" options be expanded by default.
Hristian Stefanov
Telerik team
 answered on 04 Jun 2024
1 answer
125 views
Hello.
I have changed almost all the variables in the theme builder but I have not been successful so I ask: what is the Sass variable to change the color of the buttons of the components in the ThemeBuilder?


Dimo
Telerik team
 answered on 03 Jun 2024
1 answer
219 views

(.Net 8, Telerik Blazor 6.0.0)

Adding GridAggregates to a detail template when running in InteractiveServer mode appears to cause it not to render the detail grid, although the rows are "there". The attached example has grouping activated on the detail grid. Grouping by a column, the rows appear.

I tested this on Telerik.UI.for.Blazor.Trial 5.1.1 and it works fine (rows always render), so it seems to be a problem on 6.0.0. We have quite a few DetailTemplates with GridAggregates so would appreciate feedback on this.

Attaching an example taken from Telerik examples.

Many thanks,

 

Michael.

 

Tsvetomir
Telerik team
 answered on 03 Jun 2024
1 answer
331 views

Hello,

We are using the PDF viewer to display a report that we made with Telerik Reporting.

When we display it on the screen, everything work great, the format is correct (landscape) and the margin are correct (custom margin)

When we click on the print button (made with <PdfViewerToolBarPrintTool />), the preview window show our report in "portrait" and with "default margin". Because of that, our report take 5 pages instead of 2. If we manually change the settings to "landscape" and "no margin" in the print preview, the print is correct.

Is there a way to change that ? Change the default page orientation and the default margin so that our client doesn't have to do it themselve?

We tried using the new release from may 2024 (blazor 6.0), the quality of the print went up, but I dont see any option which would let me do that.

Thank you
David

Svetoslav Dimitrov
Telerik team
 answered on 03 Jun 2024
1 answer
176 views

I have added 3 Custom buttons to my toolbar in the editor. I would like to use Spacer similar to ToolbarSpacer and would like the clear and save comment buttons to be right justified. How would I do that or if I can't, can it be added?

Hristian Stefanov
Telerik team
 answered on 31 May 2024
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?