Telerik Forums
UI for Blazor Forum
1 answer
3.1K+ views
I have a child component that I would like to access from parent so i put @ref="myChild", when this control is inside a tab strip, the reference to myChild is always null, however if i move the component outside of tabstrip then everthing works as expected.  I am using 2.10 trial
Svetoslav Dimitrov
Telerik team
 answered on 24 Apr 2020
2 answers
1.1K+ views

Hi

I've put the grid inside a modal window

All works but I cannot get the ref to the grid: I get null.

Is it correct ?

I need to put a filter by code when I show the window modal with grid

tnx

Svetoslav Dimitrov
Telerik team
 answered on 23 Apr 2020
2 answers
460 views

I use a MVVM approach to populate the Grid. The rows are actually viewmodels keeping state. They have no parameterless constructor, they are created by factory methos using injected services. The Grid creates the item before assigning it to the event args passed to the handler method. 

In my case "No parameterless constructor defined for type '...' is thrown. How can I have control on the creation of my row models?

Marin Bratanov
Telerik team
 answered on 23 Apr 2020
5 answers
465 views

After upgrade to 2.10.0, the ComboBox control with OnRead event, I get the error:

Uncaught (in promise) Error: System.ArgumentException: There is no event handler associated with this event. EventId: '38'. (the number differs between errors)
The page "blinks" and the control fills with an empty Guid (SelectedPersonId type)
The post to the server is performed correctly
This worked with 2.9.0

js:
<script src="https://kendo.cdn.telerik.com/blazor/2.10.0/telerik-blazor.min.js" defer></script>

razor:
<TelerikComboBox Data="PersonSearchResult"
OnRead="@SearchPersons"
Filterable="true"
TextField="FullName"
ValueField="Id"
@bind-Value="SelectedPersonId"
Width="400px">
</TelerikComboBox>

and cs:

private async Task SearchPersons(ComboBoxReadEventArgs args)
{
if (args.Request.Filters.Count > 0)
{
var filter = args.Request.Filters[0] as FilterDescriptor;
var search = filter.Value.ToString();
if (search.Length >= 2)
{
PersonSearchResult = await Post<List<PersonModel>>("api/person/person-search", search, true);
}
}
}

Svetoslav Dimitrov
Telerik team
 answered on 22 Apr 2020
1 answer
1.0K+ views

Hi

Any ideas how I can create a Modal Login Window on startup?

and validate a user / pass? I have done this before using the Telerik ASP.Net - RadWindow.

thx in advance

Marin Bratanov
Telerik team
 answered on 21 Apr 2020
4 answers
2.0K+ views

Any plans to add a Kanban board component similar to this?

https://www.syncfusion.com/blazor-components/blazor-kanban-board

 

Marin Bratanov
Telerik team
 answered on 20 Apr 2020
2 answers
417 views

Hello,

is it possible to pre-select the very first row in Grid in SelectionMode="GridSelectionMode.Single"? I need to do that by default when the Grid displays the very first time. I have second grid that based on this selection. I have already implemented the proper way of populating the second Grid and now just need to display display the first row selected.

Thanks.

Andrey
Top achievements
Rank 1
Veteran
 answered on 18 Apr 2020
4 answers
2.0K+ views

The ComboBox control does not appear to be refreshing/updating when the underlying list that it is bound to is updated. Some sample code to replicate this is:

 

@page "/"
@using Telerik.Blazor;

<TelerikComboBox Data="@ComboValues" Value="@SelectedValue"  ValueChanged="@((string v) => ComboBoxSelectionChanged(v))" >
</TelerikComboBox>

@code {
    List<string> ComboValues = new List<string> { "One", "Two", "Three", "Four", "Five" };

    string SelectedValue = null;

    void ComboBoxSelectionChanged(string v)
    {
        ComboValues.Remove(v);
        ComboValues.Add("New " + v);

       SelectedValue = null;
    }
}

Keep in mind this is overly simplistic but does demonstrate what isn't working as expected.

I would expect in this case for the selected entry to be removed from the ComboBox and replaced with "New {Selected Entry}";

I had this working fine relatively recently but started updating my code after upgrading to version 2.10.  Now i can't tell for sure if this is a bug introduced in version 2.10 or if i just made a change that broke things.

Any feedback would be greatly appreciated.

Thank You

Josh 

Joshua
Top achievements
Rank 1
 answered on 16 Apr 2020
3 answers
385 views

The html in bold is generated by the Menu control for a menu item, the non-bold code is from my menu item template.

The k-link / k-menu-link styles provides the mouse over and cursor effect.


<li class="k-item k-menu-item telerik-blazor"
data-id="e5bda03c-693b-4a70-9310-75977f58d39a" role="menuitem"
aria-live="polite" tabindex="0" aria-label="Paste">
    <span class="k-in k-link  k-menu-link   ">
        <span class="lt-menu-item lt-disabled">
            <img src="EditPaste.svg"><span>Paste</span>
        </span>
    </span>
</li>

I'm trying to create a disabled menu item, but I realy need to style the k-menu-link span otherwise the effect is not on the full menu item (see image).

Any thoughts on how to do this, or would it be possible to provide a property that allows a style to be injected into the  <span class="k-in k-link  k-menu-link   ">

Marin Bratanov
Telerik team
 answered on 16 Apr 2020
2 answers
171 views

When a menu is shown I need to be able to enable disable the sub menu items, so I need to hook an expanding event before the sub menu is rendered.

Is there any plan to add an OnExpanding event that is raised before the sub item is expanded?

Marin Bratanov
Telerik team
 answered on 16 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?