I have a TelerikWindow containing a TelerikGrid, with EditMode="inline" and an "Add" TelerikGridCommandButton:
<TelerikWindow>
<TelerikWindowContent>
<TelerikGrid Data=@ScheduledJobs EditMode="inline">
<TelerikGridToolBar>
<TelerikGridCommandButton Command="Add" Icon="add"></TelerikGridCommandButton>
</TelerikGridToolBar>
<TelerikGridColumns>
<TelerikGridColumn Field=@nameof(ScheduledJob.DateTime) Title="Date" />
</TelerikGridColumns>
</TelerikGrid>
</TelerikWindowContent>
</TelerikWindow>
At run-time when I click the "Add" button in the grid I get the following error:
Microsoft.JSInterop.JSException: Could not find 'TelerikBlazorDateInput' in 'window'.
Error: Could not find 'TelerikBlazorDateInput' in 'window'.
at https://localhost:5000/_framework/blazor.server.js:8:20878
at Array.forEach (<anonymous>)
at d (https://localhost:5000/_framework/blazor.server.js:8:20839)
at https://localhost:5000/_framework/blazor.server.js:8:21429
at new Promise (<anonymous>)
at e.beginInvokeJSFromDotNet (https://localhost:5000/_framework/blazor.server.js:8:21403)
at https://localhost:5000/_framework/blazor.server.js:1:16653
at Array.forEach (<anonymous>)
at e.invokeClientMethod (https://localhost:5000/_framework/blazor.server.js:1:16624)
at e.processIncomingData (https://localhost:5000/_framework/blazor.server.js:1:14624)
at async void Telerik.Blazor.Components.DateInput.TelerikDateInputBase.OnAfterRender()
at void System.Threading.Tasks.Task.ThrowAsync(Exception exception, SynchronizationContext targetContext)+(object state) => { }
at void Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource<object> completion, SendOrPostCallback d, object state)
at void Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecutionContextThunk(object state)
at void Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)
If I change the data type of the column from DateTime to string, this error goes away.
Please assist?
Regarding https://docs.telerik.com/blazor-ui/common-features/dimensions in server-side Blazor.
"dimensions and positions are simple string properties that are not parsed by our code. You can provide valid CSS values to them. For example, 100px or 50%are valid options"
However when I use: Height="100px" or Height="100%" in many controls, including TelerikWindow and TelerikGrid, I get compile errors:
The name 'px' does not exist in the current context
and
Invalid expression term ')'
If I just use Height="100" then the Blazor app runs although I am still not sure the Height property is working properly.
Can you please confirm how this is supposed to work?
Do you have any examples yet on updating all clients from any of your controls?
Grid changes for example to update every connected client?
Dear Telerik,
the Gridfilter is working fine.
Just one small problem.
When there are many columns (in my case 12), the filter input textfield is too big for the column (see screenshot).
The filterbutton is not visible. You have to scroll to see it.
Is it possible to adjust the length of the input-field and fontsize of the different griditems ?
What do you recommend to solve this ?
Regards,
Gert
Is it possible to build something using the Modal window perhaps where I could build a custom popup editor?
I have a complex edit form with quite a few fields and dynamic behavior (fields hidden based on selection values). It looks like I could implement this with the form editor, I was wondering if I could do something with a popup to avoid a lot of scrolling that is required with the form editor solution.
Thanks,
Kenny
Dear Telerik,
thank you for the wonderful Blazor controls.
I have a question about the Tab-Control.
I need to know the active tab in the code behind.
I tried to acces the Title-property in the 'Telerik.Blazor.Components.TabStrip.TelerikTabStrip' - REF.
But the Title-propery in de ActiveTab class is private and thus not accesible.
Is there a way to know the active Tab in de code behind ?
Regards,
Gert
Dear Telerik,
I have a question regarding the TelerikDatePicker's Format property.
I have set the format to "dd/MM/yyyy"
<TelerikDatePicker Format="dd/MM/yyyy" bind-Value="@DatePickerValue" ValueChanged="@OnDateChanged"></TelerikDatePicker>But the Picker still displays the date as yyyy-MM-dd.
I have tried various ways, including setting the CultureInfo in different ways, but nothing seams to help.
Do you have a solution for this ?
Regads,
Gert
Hi,
Is there currently a way to run some code when the user chooses a value out of the DropDownList? I couldn't find an event and I couldn't see anything in the help.
Thanks.
I would like to style the drop down list in the editor template and maybe the checkbox elements in a grid. Is this possible at the moment?
Thanks,
Kenny
I have a relation that I am trying to represent in a grid.
One object has a Guid that points to another object which has a textual representation of the field.
I want to display the textual value in the grid.
The editor should display a pick list of values that display the textual values (drop down list), but puts the guid into the referencing object.
So to say this another way, I want a guid field in the grid to display as the related textual value. When you edit the field, it should be a pic list with the textual values from that table. The selected value from that list should save the related guid into the model object.
I imagine this is a common use case.
Do you have an example of something like this?