I'm using the Template override specific background color:
<ItemTemplate>
@{
var appointment = context as ShiftCalendarBindingModel ?? new ShiftCalendarBindingModel();
}
<div style="height: 100%; width:100%; background-color:@(new MarkupString(appointment.BackGroundColor))">
<strong>@appointment.ProductionLineName</strong><br />
<p>Shift: @appointment.ShiftNumber </p>
</div>
</ItemTemplate>
The issue is that the appointment background color is clipped off (see attached image) and it shows either the schedule color or the resource color (if used), instead of the appointment color as assigned in the code above.
Any suggestions on how to assign the background color and have the appointment fully painted, without having to override CSS, which may effect other controls/color/formatting?
Why not have a color property on the appointment itself. It would be so easy to assign that color property when loading the data, and we could programmatically assign the color any way we'd like based upon the resource, the appointment/appointment type or any type of contextual data we need. The property would eliminate any "clever" work arounds such as the example code provided.
I've attached an image that shows the "clipping" at the end of the appointment. Note the colors seen at the clipping is the Resource color. It would be "white" the calendar background if the resources were not used.
Thanks,
Curt
Probably I do something very simple wrong but I try to follow the single instance per app example and if I debug my code I can see the cascading variable getting the instance.
I can send the following code without any error in the code or in the console of my browser
Notification.Instance.Show(new NotificationModel
{
Text = "TEST",
ThemeColor = ThemeConstants.Notification.ThemeColor.Error,
CloseAfter = 30000,
Closable = true
});
But I will not see the notification on screen.
It doesn't matter if this is somewhere in the code or in the
protected override async Task OnAfterRenderAsync(bool firstRender)
or
protected override void OnInitialized()
Hi
I want create a Blazor Server web app that we need use from mobile env.
The only issue is that using TextBox and similar sometimes soft-keyboard overlap the editing area.
Do you have any advise to optimize o minimize this issue ?
Is there any way I put a carriage return in the message for the Dialog?
I have tried putting <br/> in the string as well as Environment.NewLine and \n\r and nothing seems to work.
await Dialogs.ConfirmAsync("There are un-saved changes to the Account Detail. {I want a line break here} Do you want to save them before continuing?", "Un-saved Changes");
I would like to have the the scheduler show appointments in alphabetical order, regardless of start stop, even if it introduces a "gaps". Is there a way to override the order the control paints in the appointments? It appears that no matter the order of the Data (appointment) list, the appointments get painted the same way.
Thanks,
Curt
Updating Telerik UI for Blazor to 3.5 introduced an issue for us where a CascadingParameter was being set unintentionally. We found that setting the Navigable parameter on a TelerikGrid to true is being cascaded to our parameter.
REPL demonstrating the issue: Telerik REPL for Blazor - The best place to play, experiment, share & learn using Blazor.
Note that the switch in the grid toolbar is disabled only when the Navigable parameter is set to true.
Is this a bug or something that needs to be taken into consideration when using grids now?
Hi Team,
I was working working telerik Blazor UI from 3 months, But suddenly i started to get the below exception, whenever i was restoring nuget package.
Unable to load the service index for source https://nuget.telerik.com/v3/index.json. Response status code does not indicate success: 401 (Unauthorized).
is it happening due to licensee key expiry ?
I need to take photos and videos and save their path in IndexedDB from our web app so, when user decides to go to another page or reload it ..I can be able to retrieve the photos or video that user took through files' path and all of this should work in offline mode and from a tablet(Android's system) the user will submit the information later.
So, what our team thought to do is using File system Access API .
Here is demo: https://filehandle-indexeddb.glitch.me/ .
But, I tested this demo from my mobile browser(chrome) and did not work out correctly because android is not supported and that's why cannot access android file system :( .
So, we thought that we can mix storing files handles in IndexedDB from File System Access API* and Blazor Upload from telerik but, We need to know if we can do it offline.
Thanks in advance,
I would like in C# code behind, to set the Header background color and Font Color & Bold it.
How can I do that?
Something like:
Grid.Columns.Header.BAckground = NAvy
Grid.Columns.Header.font.color = White
Grid.Columns.Header.font.bold = true
Also want to do a alternate row coloring setup. How'd I do that?
Is there a render event I can use?
Thanks
Deasun
Hi
In the training I see this comping up, I installed Telerik using the msi file, i do not have this Extension option.
Using VS 2022
How can I get it?
Eric