Telerik Forums
UI for Blazor Forum
0 answers
160 views

Hi everybody.

Is there a possibility to display the valueAxis of the chart to the right?
Can this be configured somehow?

Best regards,
Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 29 Dec 2021
1 answer
305 views

Hi,

Surprisingly, I was not able to find an answer how to solve this so thus this post. 

We are two developers developing a Blazor Server Side Project. I am the one doing all the GUI / Blazor stuff and my colleague is doing only Domain and Database. Now, the problem is that in order to run any of his code, he needs to be able to run the Blazor project from Visual Studio which turns out to be problematic as he does not have a license for Telerik and don't need one as he is never working with the controls or even Blazor. How would he go about to solve this without having to buy a license he would never use? 

If there is no obvious solution, please provide a good workaround. 

Thanks.

Missing User
 answered on 29 Dec 2021
1 answer
481 views

<TelerikComboBox TItem="ObjectSelection" TValue="int?" Data="_testObjs" Value="_objSel" ValueExpression="() => _objSel" ValueChanged="ObjSelected" TextField="@nameof(ObjectSelection.Description)" ValueField="@nameof(ObjectSelection.Id)" ScrollMode="DropDownScrollMode.Virtual" PopupHeight="200px" ItemHeight="20" PageSize="20" ValueMapper="ValueMapper" OnRead="RetrieveObjs" TotalCount="100"></TelerikComboBox> private IEnumerable<ObjectSelection> _testObjs; private int? _objSel; private Task ObjSelected(int? id) { return(Task.Run(() => _objSel = id)); } public Task RetrieveObjs(ReadEventArgs args) { _testObjs = new[] { new ObjectSelection {Id = 1, Description = "Obj 1"}, new ObjectSelection {Id = 2, Description = "Obj 2"}, new ObjectSelection {Id = 3, Description = "Obj 3"}, }; return(Task.Delay(300)); }

In this scenario, when selecting an object in the combobox, the combobox remains emtpy.

If the value changed handler looks like below, the combobox behaves as expected:

private void ObjSelected(int? id)
        {
            _objSel = id;
        }


Joana
Telerik team
 answered on 28 Dec 2021
1 answer
780 views

Hi I am setting the culture in program.cs

var culture = new CultureInfo("da-DK");
culture.DateTimeFormat.ShortDatePattern = "dd-MM-yyyy";
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;

If I don't set it I get "dd.MM.yyyy"

I would like to set it to "dd/MM/yyyy" but when I do that it revert to "dd.MM.yyyy"

Is this me using the culture object in the wrong way or a bug in the Telerik Components?

Joana
Telerik team
 answered on 27 Dec 2021
1 answer
347 views
Hello!
How to disable or localize built-in by default tooltip "Select all rows" and "Select a row" on GridCheckboxColumn's checkboxes?
Stamo Gochev
Telerik team
 answered on 24 Dec 2021
1 answer
1.1K+ views

I have a grid where the last few rows show different types of totals with different color highlighting. In the OnRowRenderHandler, I assign the background-color via CSS like args.Class = "bc_orange". This works fine unless the row also has the k-alt class in which case it overrides the background color.

Is there a way in the OnRowRender to remove the k-alt class? Normally in JQuery I would use the .removeClass function.

 

    public void OnRowRenderHandler(GridRowRenderEventArgs args)
    {
        Models.Results item = args.Item as Models.Results;

        switch (item.row)
        {
            case 1:
                args.Class = "bc_orange disable-hover";
                break;
                
            case 2:
                args.Class = "bc_lightgreen disable-hover";
                break;
                
            case 3:
                args.Class = "bc_lightblue disable-hover";
                break;
        }
    }


Dimo
Telerik team
 answered on 23 Dec 2021
1 answer
362 views

Hello,

We are using TelericBlazor Grid with Drag and Drop functionality, as per link https://demos.telerik.com/blazor-ui/grid/drag-drop

Now, I am dragging the items from one grid to another Grid., like dragging ITEMA from GRID-A to GRID-B, which is working as expected.
But as a User, I want to change the background color of the dragged ITEMA to Different color. 

So Is there any way to change the style of the dragged and dropped row in the Telerik grid?

 

 

Dimo
Telerik team
 answered on 23 Dec 2021
1 answer
578 views

I have a grid that takes live data (like connection status of an item) from a specific endpoint of a controller. I want to take those live data only for selected items in the grid without changing grid' s columns. I mean that i want to change data source in the grid only for selected items. Is there an example of something like this?

Thank you

Dimo
Telerik team
 answered on 23 Dec 2021
0 answers
188 views

Hi,

 

After submiting the form, On error handling in Catch, the execption is assign to variable error

After render the vairable error is null

Could please help how to assign execption value to variable error after render

Please see below code.



@{
string error { get; set; }

protected override void OnInitialized()
{
                try{}
                finaly{}
}

async protected override Task OnAfterRenderAsync(bool firstRender)
         {
                    var relativeUri = navigationManager.Uri;
                    var uri = navigationManager.ToAbsoluteUri(relativeUri);

                    if (firstRender){}

if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("isSessionTimeout", out var tempTimeout))
                    {
                           notification?.ShowError(error);
                           //error = "Session timed out";
                           showToast = true;
                    }
}


async Task OnSubmit()
	{
              try{

              }

              catch(exception ex){
                     error = ex.ToString();
              }

       }
}

                    
Vishnu
Top achievements
Rank 1
Iron
Veteran
 updated question on 21 Dec 2021
1 answer
587 views

I would like the behavior of the RadioGroup, but have the label and input pairs styled like toggle buttons like https://getbootstrap.com/docs/5.0/components/button-group/#checkbox-and-radio-button-groups

Dimo
Telerik team
 answered on 21 Dec 2021
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?