Hello,
I want to provide two modes for editing with the editor.
One full-featured editor with all tools (EditorToolSets.All) and one mode with none or only custom tools and I want to switch between the modes.
So I tried somethink likse this:
private List<IEditorTool> tools { get; set; } = new List<IEditorTool>();
protected override Task OnInitializedAsync()
{
tools = EditorToolSets.All;
tools.Add(new CustomTool("MyTool");
}
private void SwitchModel(MyMode mode)
{
if (mode == MyMode.Full)
{
tools = EditorToolSets.All;
}
if (mode == MyMode.None)
{
tools = Clear;
}
}
Hi,
I have a TelerikEditor with additional custom tools:
In the razor-file:
<TelerikEditor @bind-Value="@myContent" Toosl="@tools">
<EditorCustomTools>
@* Custom tools here *@
</EditorCustomTools>
</TelerikEditor>
in the code behind file:
private List<IEditorTool> tools { get; set; } = new List<IEditorTool>();
protected override Task OnInitializedAsync()
{
tools = EditorToolSets.All;
tools.Add(new CustomTool("MyTools");
return base.OnInitializedAsync();
}
At this point, all works as expected.
But when I navigate to another page in my wasm App and then navigate back to the page with the editor, the custom tools is renderd twice. If I navigate away and back to the page once more, the custom tool is now renderd three times. If I do it again: four times the custom tool ....
I tried:
tools = new();
as first line in OnInitializedAsync, but with the same result.
I think it is a rendering problem. I checked tools.Count at the beginning of OnInitializedAsync and it is alway 0.
Any suggestions? :-)
Hi,
I have set up my model the exact way it is in the demo. My client makes a JSON call to API to populate the scheduler. The post is successful but the get seems to break the scheduler. The error message is below:
I'm using version 2.24.0
Say I have a report with 13 month column names.
Depending on the date range given to report the columns names could be different.
How do I build the resulting class to hold the data for the gird in this case?
public class MgtRtp2Result
{
public string? TN { get; set; }
public string? BAN { get; set; }
public string? Platform { get; set; }
[DisplayFormat(DataFormatString = "{0:C}")]
public decimal Col1Amt { get; set; }
[DisplayFormat(DataFormatString = "{0:C}")]
public decimal Col2Amt { get; set; }
}
Col1Amt name in the SQL result coming back could be May2022 for first run but Jun2022 for next run.
Same thing can happen Col2Amt.
Thanks for the help.
I am having an issue with this control.
When testing it I init it from the OnInitialized section and it worked fine.
But in production app It does not get init until after a DDL on the page is chosen from by user.
In this case I keep getting NO Data displayed on the drop down part.
Take the same code and put in the OnInitialized section and the controll is filled in.
How can I get it to work after the ddl is chosen?
Thanks
Deasun.
I have a SP I call that takes 1 or 2 minutes to run.
I am running into the error:
system threading taskcanceledexception a task was canceled
atm the SP takes 1:08 to run.
At 35 seconds, using filters to get less data back, it runs fine!
We have many reports that take a bit to run.
How to I get this task thing to stop killing my app.
I have a TelerikGrid with OnRead set with code that retrieves Paged data via an API.
I store the items + page number + total items etc so that when the user returns they see their previous search.
I tried using OnStateInit, but it only lets me set the page number - not the data items or total results.
Hello,
I would like to customize the filtering view window in Gantt. Is there a possibility to search for simple values using a text field?
In addition, I would also like to make changes to the labels (language: German).
The same applies to the event settings (double-click on events), where I would also like to change the language to German.
Many thanks in advance.
When export the grid to excel is there a way to tell it to use the row colors the grid shows on the page?
Thanks.