Telerik Forums
UI for Blazor Forum
1 answer
496 views

Is it possible to enable or disable the drag & drop feature per row?

I have two or more grids that display products with a quantity field. Dragging from the master grid will move the product and quantity from one grid to an other. When this happens, the secondary grid will get the total quantity from the master grid, leaving the original row with 0 quantity. When the quantity is 0, I want to disable the dragging feature for this particular row. When part or all of the quantity is returned to the original master row, the dragging feature should once again be enabled. I also want to disable drag & drop on the same grid.

It seems to me that there is no drag start event to trigger a possible cancel of drag drop or a drag over event to disable droping an item.

Tsvetomir
Telerik team
 answered on 14 Apr 2023
1 answer
503 views
Dear Team,

I am looking into the possibility to show a dialog via a capsulated service (DialogService.Show<DialogType>(...) ) but because the dialogs are only made visible they have to be in place. I managed to do this via a DynamicComponent, but I would like to inject the dialog dynamically into the dom. I have no idea how to do that though. In WPF f.e. I can add a new object into the tree at any given place. Is this not possible in Blazor?
Would love to get some support on putting such a service for showing a dialog just by a given type from an injected "Service".

Thanks for your help and best regards

Gerrit Puddig
Svetoslav Dimitrov
Telerik team
 answered on 14 Apr 2023
1 answer
310 views

Hi,

I am using telerikgrid control to present my data on the page. 

I am using a header GridCheckboxColumn to select the rows. I want to put a condition so that some rows cannot be selected (disabled for selection).

Please can someone provide some solution for this requirement.

 

Thanks,

 

Afreen

Hristian Stefanov
Telerik team
 answered on 13 Apr 2023
1 answer
237 views

Hi,

I am using the TelerikGrid control to present the data.

I am also using a TelerikGridCheckboxColumn which is bind to a IEnumerableList. I want to disable header checkbox when all the values of IsSelected property in the list are false.

How can I do that?

Thanks,

 

Afreen

Hristian Stefanov
Telerik team
 answered on 13 Apr 2023
1 answer
101 views

您是否有类似于图片中显示的功能?“路由重复使用多个标签页。”

Dimo
Telerik team
 answered on 11 Apr 2023
1 answer
400 views
I have a  simple form in a component. The component is in the WindowContent section of the Window component. I would like to close the modal window when the form on the component is saved. How do I go about changing the isVisible property on the page that contains the window?
Jstemper
Top achievements
Rank 2
Bronze
Iron
 answered on 11 Apr 2023
1 answer
268 views

Using blazor server with latest Telerik Blazor package (currently 4.1.0).

I created a very simple CustomDropDownList.razor file with the following:

@typeparam TItem
@typeparam TValue
@inherits TelerikDropDownList<TItem, TValue>

and attempted to use the new component in a page:

@page "/test"

<CustomDropDownList Data="testData" @bind-Value="value" />

@code {
    int? value = null;

    private List<Model> testData = new List<Model>()
    {
        new Model() { Id = 1, Text = "Item 1" },
        new Model() { Id = 2, Text = "Item 2" }
    };

    class Model
    {
        public int? Id { get; set; }
        public string Text { get; set; }
    }
}

I get the javascript error:

Cannot read properties of null (reading addEventListener)

I'm aware you have a page regarding this error, but it only suggests making sure telerik-blazor.js file is up to date. Mine is.

Now, if I define the same component in a .cs file instead of a .razor file, the scenario works fine:

public class CustomDropDownList<TItem, TValue> : TelerikDropDownList<TItem, TValue>
{
}

REPL with error (using .razor file): https://blazorrepl.telerik.com/GRaoFuvr00aqKiQq27
REPL that works (using .cs file): https://blazorrepl.telerik.com/wHkyFubg58jPmb8D40

So what is going on here?

Ultimately, I'm trying to inherit from TelerikDropDownList to encapsulate a reusable custom dropdown. I have done this with .cs files a number of times with no problem, but in this case I was wanting to define an ItemTemplate and it's much more practical to do .razor file - that's when I discovered this issue.

Dimo
Telerik team
 answered on 11 Apr 2023
1 answer
153 views

 

Is there a way to do in form editing in Telerik Grid for Blazor(TelerikGrid) like the one shown here for Telerik RadGrid?

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx
swathi
Top achievements
Rank 1
Iron
 answered on 11 Apr 2023
0 answers
125 views
We are working accessibility feedback for our site and one of the items we are asked to look at is the reading order.   The reader reads our row of labels and then the row of textboxes. (see screenshot)  Outside of redoing how we made the page is it possible to indicate the order?  I think not, but looking for confirmation before we do anything.
Spencer
Top achievements
Rank 1
 asked on 10 Apr 2023
1 answer
428 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?