Telerik Forums
UI for Blazor Forum
0 answers
8 views

Hello, I seem to be having an issue regarding the Telerik DropdownLists.

Any dropdown list that has its values loaded from the database, displays empty, regardless of whether the property bound to the value has anything it or not. It's specially confusing, when the bound property has a correct value, yet it still displays empty.

This issue seems to be exclusive to the loaded from database values, as anything locally added, seem to work in the same manner.

We are currently using version 2.3.X, but we are unable to update due to styling breaking.

Baires
Top achievements
Rank 1
Iron
 asked on 11 May 2022
1 answer
8 views

Hi, if i set the property Enabled="false" the component is grayed but i can still change the selected item from ui.  

It's a bug?

I would like to disable dropdownlist to be opened or to be selectable from the user.

Thanks

TacoWombat
Top achievements
Rank 1
Iron
 answered on 11 May 2022
1 answer
6 views
When the date time picker is popped out, how to have the time tab to be active by default?

https://www.telerik.com/blazor-ui/datetimepicker
Marin Bratanov
Telerik team
 answered on 11 May 2022
1 answer
6 views

Is there any way to allow a form group to span multiple rows within the form?  So i could make my form look like the image below

 

Marin Bratanov
Telerik team
 answered on 11 May 2022
1 answer
10 views

Is there a way to support editing an object (key/value pair) where the value field is an object and can be of a different type for each record?

Current issue is error in editor saying:
Argument 1: cannot convert from object to string

public class KeyValue

{
public string Key { get; set; }
public object Value { get; set; }
}

<div>
<div>
<div>
<TelerikGrid Data="@KeyValues"
@ref="@Grid"
EditMode="GridEditMode.Incell"
OnStateInit="@((GridStateEventArgs<LabelEntry> args) => OnStateInitHandler(args))">
<GridColumns>
<GridColumn Field="Key"
Editable="false" />
<GridColumn Field="Value"
Editable="true">
<EditorTemplate>
@{
CurrentEntry = context as KeyValue;
if (CurrentEntry.Value.GetType().ToString().Equals("System.String", StringComparison.CurrentCultureIgnoreCase))
{
<TelerikTextBox @bind-Value="@CurrentEntry.Value" />
}
else if(CurrentEntry.Value.GetType().ToString().Equals("System.Int32", StringComparison.CurrentCultureIgnoreCase))
{
<TelerikNumericTextBox @bind-Value="@CurrentEntry.Value"/>
}
}
</EditorTemplate>
</GridColumn>
</GridColumns>
</TelerikGrid>
</div>
</div>
</div>
Marin Bratanov
Telerik team
 answered on 11 May 2022
2 answers
16 views

Hi, I am using grid programmatic  export  SaveAsExcelFileAsync();  but the event OnBeforeExport never fires.

Is there any problem when calling from programmatic export?  When using the default button export it fires normally.

I am using the latest version 3.2.0.

Thank you,

Thod

Thod
Top achievements
Rank 1
Iron
 answered on 10 May 2022
1 answer
24 views

I've been struggling with this behaviour for a while now:

- In my Blazor app 've set the culture to nl-NL (which at the moment is UTC+2)

- Converting a normal datetime to UTC gives me the result i expect.
  IE. var test =new DateTime(1978, 9, 4).ToUniversalTime();
  Results in test being '1978-9-3 22:00:00Z'

Now when i use the Grid component with a default filter row i handle the 'OnRead' event of the grid and use the ToODataString() to get the formatted filter:
var filter = args.Request.ToODataString();

No matter what i try, the filter returned always formats the dates i filter incorrect. Filtering on '1978-09-04' is formatted as '1978-09-04 00:00:00Z' while i expect it to be '1978-09-03 22:00:00Z'.

Am i missing something trivial here or is this a bug in the ToODataString method?

Regards,

Gerrit

Gerrit
Top achievements
Rank 1
Iron
 answered on 09 May 2022
0 answers
22 views

I am adding a context menu to the treelist. The issue is that I have not achieved a good integration between them. Especially for display issues I had to do a lot of workarounds.
I attach a code snipet as an example:

Examples

As you can see in the Example 1, inside the green area you can right click and it shows the context menu, but outside this (the largest area) it doesn't. If we replace the <span> with a <div> now the green area will be larger but the button to expand is not on the same line. So we have to apply styles (for example: display: flex;) to the element that wraps our template (Example 2).

Now the new issue is that the treelist loader (the one that is seen when we expand a parent node) looks stretched (Example 3).

I find it hard to believe that the integration is so complicated. I am doing something wrong?? 
Regards.

Ludwig.

Blazorist
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 09 May 2022
1 answer
11 views
I want to change the color of the Tasks in the TreeList depending on what percentage it is complete.  So if it is 100% done then Green otherwise say Red.  Is this possible?  I have not found a way to do it in Blazor.  If it is not possible is it planning on being added soon?
Hristian Stefanov
Telerik team
 answered on 09 May 2022
1 answer
8 views

I would like to request some enhancements to the drag & drop support to provide feedback during the operation to support things like:

Displaying feedback in an icon (e.g. can't drop here, will copy, will move)

Displaying overlays for Copy/Move operations

Capturing the Ctrl & Alt keys for drag operations

Templating the drag hint

Thank you,

-Andy

Joana
Telerik team
 answered on 09 May 2022
Top users last month
tar
Top achievements
Rank 2
Iron
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Shane
Top achievements
Rank 2
Iron
Iron
Daniel
Top achievements
Rank 3
Iron
Iron
Iron
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?