I'm currently trying to integrate telerik tilelayout inside telerik tabstrip dynamically?
for example
<TabStripTab Class="@(filteredRows.Any() ? GetTabWidth() : "auto")" Title="@tabtitle1["tabtitle"].ToString()">
<TelerikTileLayout Columns="12"
RowHeight="auto"
Resizable="true"
Reorderable="true">
<TileLayoutItems>
@foreach (DataRow row in filteredRows)
{
<_Data columnspan='Convert.ToInt32(row["columnspan"])' rowspan='Convert.ToInt32(row["rowspan"])' pageId="@pageId" oDt="row" encryptQueryString="@data"></_Data>
}
</TileLayoutItems>
</TelerikTileLayout>
</TabStripTab>
}
@if (filteredRows2.Any())
{
<TabStripTab Title="@tabtitle2["tabtitle"].ToString()">
<TelerikTileLayout Columns="12"
RowHeight="auto"
Resizable="true"
Reorderable="true">
<TileLayoutItems>
@foreach (DataRow row in filteredRows2)
{
<_Data columnspan='Convert.ToInt32(row["columnspan"])' rowspan='Convert.ToInt32(row["rowspan"])' oDt="row" data="@data"></_Data>
}
</TileLayoutItems>
</TelerikTileLayout>
</TabStripTab>
when i set persist content to true it reloads the components which invoke the database calling ?I s there any way to do without component being refreshed?
I have a layout of three tiles like so:
<TelerikTileLayout Columns="3"
RowHeight="18vh"
Resizable="true"
Reorderable="true"
>
<TileLayoutItems>
<TileLayoutItem RowSpan="2" ColSpan="2">
<Content>
content
</Content>
</TileLayoutItem>
<TileLayoutItem RowSpan="4">
<Content>
content
</Content>
</TileLayoutItem>
<TileLayoutItem RowSpan="2" ColSpan="2">
<Content>
content
</Content>
</TileLayoutItem>
</TileLayoutItems>
</TelerikTileLayout>
Hi there!
I have created a component (Component) that is a TileLayoutItem. It renders fine for the first time but it doesn't re-render after its properties changes (OnClickHandler).
Am I doing something wrong? The exact same code works if added directly on Main.
Running example: https://blazorrepl.telerik.com/mnbQmvlX24maslQE52
Component
<TileLayoutItem>
<HeaderTemplate>
<a href="#">Component<span class="k-icon k-i-caret-alt-right widget-title-icon"></span></a>
</HeaderTemplate>
<Content>
@test
<TelerikButton OnClick="@OnClickHandler">Click me!</TelerikButton>
</Content>
</TileLayoutItem>
@code {
private string test = "Button was not clicked yet";
private void OnClickHandler(MouseEventArgs args)
{
test = "Button was clicked at: " + DateTime.Now.ToString();
}
}
Main
<TelerikTileLayout Columns="1">
<TileLayoutItems>
<Component></Component>
<Component></Component>
<TileLayoutItem>
<HeaderTemplate>
<a href="#">TileLayoutItem<span class="k-icon k-i-caret-alt-right widget-title-icon"></span></a>
</HeaderTemplate>
<Content>
@test
<TelerikButton OnClick="@OnClickHandler">Click me!</TelerikButton>
</Content>
</TileLayoutItem>
</TileLayoutItems>
</TelerikTileLayout>
@code {
private string test = "Button was not clicked yet";
private void OnClickHandler(MouseEventArgs args)
{
test = "Button was clicked at: " + DateTime.Now.ToString();
}
}
Hello all,
In my app I use tile layout to let the user manage a bunch of charts and other things. when in "edit mode" I want the headers of the tiles to be displayed, but in "browse" mode I want the headers of the tiles to be invisible as the title of the tile et all is already in the chart displayed in the tiles content.
Using an empty <HeaderTemplate> I still get an empty one line header for each tile.
Is there a way around this,? Otherwise, please see this as a FR.
Regards,
Hans
I'm working on a landing page builder, I need to be able to do a couple of extra things with TileLayout. I would like this behaviour to be added optionally by configuration.
I would like to Drag & Drop elements between two TelerikTileLayout collections.
In my dahsboard I want to have groups of tiles, like the ones in SAP launchpad, here are some images. I want to move tiles from one section to another.
I would like to specify the actual position of a element with the Row & Column index.
I want to build a launchpad like the one in Azure. Here are some images of what I want to build. As you can see, you are free to chose any row/col you want in the grid.
https://adamtheautomator.com/wp-content/uploads/2022/09/image-93.png
Hi there,
I'm facing a problem with charts in a tile layout. I have a TileLayout in my applicaton and added some charts (which are in another component) to it. I checked the documentation about TileLayout and resizing so I followed those steps. Please check out my code:
Razor MainPage:
<TelerikTileLayout Columns="5"
ColumnWidth="300px"
Reorderable="true"
Resizable="true"
OnResize="TileItemResize">
<TileLayoutItems>
<TileLayoutItem HeaderText="My Item Text" RowSpan="2">
<Content>
<TurnoverComparisonWidget @ref="TurnoverComparisonRef" SelectedWidget="widget" IsLoad="true"></TurnoverComparisonWidget>
</Content>
</TileLayoutItem>
</TileLayoutItems>
</TelerikTileLayout>
Razor TurnoverComparisonWidget:
<TelerikChart @ref="ChartRef" Height="100%">
<ChartTooltip Visible="true"></ChartTooltip>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Column" Data="ChartData" Field="@nameof(ChartDataItem.Value)" CategoryField="@nameof(ChartDataItem.CategoryName)">
<ChartSeriesLabels Visible="true" Format="{0:C2}"></ChartSeriesLabels>
</ChartSeries>
</ChartSeriesItems>
</TelerikChart>
C# MainPage:
public TurnoverComparisonWidget TurnoverComparisonRef { get; set; }
private void TileItemResize()
{
TurnoverComparisonRef.Refresh();
}
C# TurnoverComparisonWidget:
public TelerikChart ChartRef { get; set; }
public void Refresh()
{
ChartRef.Refresh();
}
But the chart is not resizing when I resize the tile layout item. It just stays the same size and never changes. Did I forget anything? I can't figure it out.
Best Regards,
Roman
I recall being told I would have access to source code once I buy a licence.
Now that I have a licence, how do I get access to the source so I can do a local build?
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."); } }
Right now, each tile can be created in each Content and TilelLayoutItem tag. The way my current list works is to use the TileLayout inside of a TelerikListView component using my list as the data. Like this:
<TelerikListView Data=@Data
Pageable="true"
PageSize="int.MaxValue">
<Template>
<TelerikTileLayout Columns="1"
Reorderable="true"
Resizable="false"
RowHeight="180px">
<TileLayoutItems>
<TileLayoutItem HeaderText="Descriptors">
<Content>@context.Description</Content>
</TileLayoutItem>
</TileLayoutItems>
</TelerikTileLayout>
</Template>
</TelerikListView>
It shows each item from the list in a new tile as expected, but the problem with this is that since I put it in just one Content/TileLayout tag, each tile somehow counts as one tile, so the Reorderable feature doesn't work. You can test this by adding a another Content tag. The contents of the second tag will only be able to swap with the contents of the first tag, but the contents of the first tag still won't be able to swap with each other. Does the same thing if you use a foreach loop to display the list data as well.
How do I achieve using Tile Layout to display preexisting data/ list items that can reorder? Or how can I reorder the tiles while using a foreach loop?
Hi,
I'm using Telerik UI for Blazor and I want to use the "alert-danger" bootstrap css class to change the color of a tile item.
I put the css class in the TileLayoutItem (@_cssClass) :
But the color is overrided by the k-card class. I know I could create my custom css class and put !important in it, but I would just copy the same code as in alert-danger class.
I also tried to set the class in the html element I built, but the background color is not "expanding" to all the tiles :
If I put the css class in the div k-tilelayout-item-header and in the div k-tilelayout-item-body, I can have the desired result too, but I didn't find a way to set those in the code.
Is there another way I could acheive the result I want without having to create my own css class ?
Thank you.