Telerik Forums
UI for Blazor Forum
1 answer
412 views
Hi All,

I'm looking to iterate over a list in my data model to dynamically create columns in a TelerikGrid. Is this functionality possible at the moment?

Ideally i wanted to do something like this:
<TelerikGrid Data="@GridRowItems">
	<GridColumns>
		<GridColumn Field="@nameof(GridRowItem.Name)"></GridColumn>
		@{
			var gridRowItem = context as GridRowItem;
			foreach (var childField in gridRowItem.ChildFields)
			{
				<GridColumn Title="@childField.Name">
					<Columns>
						<GridColumn Field="@nameof(childField.Value1)"></GridColumn>
						<GridColumn Field="@nameof(childField.Value2)"></GridColumn>
					</Columns>
				</GridColumn>
			}
		}
	</GridColumns>
</TelerikGrid>

class GridRowItem{
	string Name;
	List<ChildField> ChildFields;
}

class ChildField{
	string Name;
	double Value1;
	double Value2;
}
I can guarantee that every GridRowItem has the same number of ChildFields, but that number is variable

Thanks 
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 07 Apr 2023
1 answer
586 views

The background of the predefined dialog box appears transparent.

Dimo
Telerik team
 answered on 07 Apr 2023
0 answers
90 views

Hi,

Like Subject above, when I Debug code, my scrollbar change to default browser scrollbar (Image Scrollbar1.jpg)

When i press F12 to go to Developer mode, it changes to normal - Telerik scrollbars. Its shadow and it is hard to look little bit (Image Scrollbar2.jpg).

I dont know why its happen.  And it happended a couple days ago.

Browsers that I used to check: Edge, Firefox and Chrome and had same issue.

Thank you for your help.

 

ACV IT
Top achievements
Rank 1
 asked on 06 Apr 2023
1 answer
209 views

I have a grid using paging and sorting features. When a user edit a record (I am using an edit form that show an edit form) and he changed the value from the sorted column, the item is no more visible in the current page since it moved in another page according to the sorting feature.

My question how can I find in which page my item is now on, and to programmatically select that page so my item will stay in the current view after edition.

Thanks

Dimo
Telerik team
 updated answer on 06 Apr 2023
1 answer
115 views

I'm currently working on a multiview calendar. However, I've come across an issue that confuses the user quite a bit. If I allow a selection that goes beyond the boundaries of a single month, then the overflow from the next or previous month is also selected and displayed. This results in the question:

"Is it possible to disable the display of overflow from the next or previous month?" In the template, I don't have any information in the context about which month the multiview is displaying, otherwise it would be easy to deactivate the context.

The question is, can the calendar be configured to simply not display overflow from other months?



For Display this is not a Problem, I override .k-other-month, so the overhang is not visible. But how to solve this in a Multiview Selection?

Dimo
Telerik team
 answered on 06 Apr 2023
1 answer
279 views

I am using the fluent theme and for some reason the dialogs styles are mushed.  I have not customized them in any way.  Any idea what might be causing the problem?

 

Dimo
Telerik team
 answered on 06 Apr 2023
1 answer
247 views

Hello! I'm trying to implement a custom component that uses a numeric text box internally -- just to factor out some redundant markup in my particular situation. A custom component would be a nice fit. I've tried a few different things, but I can't get binding behavior to work. It shows the right value, but doesn't allow any updating. (All entries show as invalid.)


I tried it with a Value/ValueChanged approach and also a @bind-Value approach, and couldn't get either to work.

I've noticed that my ValueChanged handler (OnValueChanged) is not getting called.

I looked at this: https://docs.telerik.com/blazor-ui/getting-started/value-vs-data-binding but it didn't illuminate anything for me, really.

Any ideas what I'm doing wrong?

Adam
Top achievements
Rank 1
Iron
 answered on 04 Apr 2023
1 answer
118 views
Does Signature component embed and/or display a DateTimeStamp when viewing the signature after it has been submitted?
Nadezhda Tacheva
Telerik team
 answered on 04 Apr 2023
1 answer
108 views

Good day,

can time zones be inserted in TelerikGantt?
If I want to insert events only in certain working hours (for example, Monday to Friday from 6am to 10pm). If an event starts Friday at 9pm, it should be automatically extended to Monday (if the event lasts more than 1 hour). The function should be part of any Gantt by default, but I can't find a description for the definition of the ranges. Can you give me the path to the description or a short description on how to perform the described functionality?
Thanks!

 

Regards

Paul

ProduktionsplanungIGP
Top achievements
Rank 1
Iron
Iron
 answered on 04 Apr 2023
0 answers
279 views

Hi,

 

I am currently using the TelerikMenu Blazor component and I am having issues with changing the color of the pressed/clicked state of a menu item. I can successfully change the coloring for the other states of the menu items e.g. selected, focused, active, hover. How would I approach this to solve my problem?

 

This is what I have so far:

 

MenuItems = new List<MenuItem>();

        MenuItem Library_Header = new MenuItem() { Text = "Library", Icon = "book", Items = new List<MenuItem>() };
        MenuItem Library_Item_EFT = new MenuItem() { Text = "EFT Library", Icon = "book", Items = new List<MenuItem>() }; 
        MenuItem EFT_Item_Bank_View = new MenuItem() { Text = "Bank view", Icon = "book" };

        MenuItem EFT_Item_Version_View = new MenuItem() { Text = "Version view", Icon = "book" };

 

Menu css (example of the menu's selected state being changed):

.k-menu-group .k-item:focus, .k-menu-group .k-item.k-state-selected,
    .k-menu.k-context-menu .k-item:selection,
    .k-menu.k-context-menu .k-item.k-state-selected {
        background-color: green; //I want to change the clicked state to green
    }
Andy
Top achievements
Rank 1
 asked on 03 Apr 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?