Telerik Forums
UI for Blazor Forum
0 answers
438 views

Started seeing errors after updated V.S.   Pages that uses TelerikGrid has these 2 errors.  It compiles fine and run fine, so i'm not sure how to fix.

Error (active) CS1503 Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<System.Collections.Generic.IEnumerable<mymodel>>' to Microsoft.AspNetCore.Components.EventCallback'

Error (active) CS0246 The type or namespace name 'TItem' could not be found (are you missing a using directive or an assembly reference?)

 

Please advise
Thanks, ZB

Zack
Top achievements
Rank 1
 asked on 12 May 2022
1 answer
234 views

Hi all,

I'm having a hard time implementing a DateTime picker in a Grid. I'd like to set up the grid using the hierarchy feature and implement InCell editing. I created a version of my problem in the Telerik REPL and have observed the same issue in my current code.

 

https://blazorrepl.telerik.com/wmEfuDcn54Cv6ZNO07

 

As you can see, the DateTime picker works fine in the parent table. But when it is implemented in the child table, it seems that clicking on the DateTime picker actually takes the cell out of focus.

Does anyone know if there is a workaround or if this is a bug?

Thanks

 

Edit: I added the screenshots when I noticed that the REPL link wasn't loading correctly on my Chrome or Edge browser

Nadezhda Tacheva
Telerik team
 answered on 12 May 2022
0 answers
586 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
402 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
Iron
 answered on 11 May 2022
1 answer
150 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
361 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
226 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
824 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
563 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
315 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
Bronze
Iron
Iron
 updated question on 09 May 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?