Telerik Forums
UI for Blazor Forum
0 answers
1.1K+ views

 

Started building my first app with Blazor Grid and running into some issues.   Have several columns that need dropdownlist to display text instead of underlying number (eg select and display "Operations Department"  instead of value of 3) 

The grid will not sort based on the Display Text but does so instead based on value.    Same when trying to group using the field.  Sort by the value in groups (and I see no way to change the sort order from ascending to descending on the groups too).

 

 

Daniel
Top achievements
Rank 1
 asked on 19 Jul 2022
0 answers
117 views
Body
Lance
Top achievements
Rank 2
 updated question on 19 Jul 2022
1 answer
150 views
I want to ignore _ only numbers are allowed.
Peter
Top achievements
Rank 1
Iron
Iron
 answered on 19 Jul 2022
2 answers
327 views

Hi, I need to identify browser in Blazor, How can I do it?

Could you help me please?

Peter

Peter
Top achievements
Rank 1
Iron
Iron
 answered on 19 Jul 2022
1 answer
523 views

Hi,

I'm trying to display the Gantt component as read-only. While it's easy to disable editing for the TreeList that's part of the Gantt component, I can't seem to disable editing of tasks through the timeline. There are 3 things that I'm trying to resolve.

1. How to disable the popup editor when double clicking a task in the timeline?
Only thing I can come up with is hide the popup editor through a css class with 'display: none':

<GanttSettings>
  <GanttPopupEditSettings Class="d-none" />
</GanttSettings>

2. How to disable dragging of the tasks on the timeline?
I can't seem to find a way to lock the tasks in place. I can always drag them.
I'm aware I can set the start and end values of the task back to the original value after dragging (through OnUpdate), but I don't want to be able to drag them in the first place.

3. How to hide specific editing buttons on the task in the timeline?
When hovering over a task in the timeline it always shows a number of handles or buttons for the following actions (circled in red in the below screenshot):
- change the completion percentage.
- specify new dependencies
- delete the task



How can the handles and buttons for these actions be disabled/hidden?

Kind Regards

Dimo
Telerik team
 answered on 18 Jul 2022
0 answers
131 views

1. How can I force sorting it by number and not string?

 

2. When sorting, can I force one of the row to always be at the bottom? (i.e. if one of the cells includes 'Total' text)

Ilan
Top achievements
Rank 1
Bronze
Iron
Veteran
 asked on 17 Jul 2022
1 answer
701 views

Hi, the standard Blazor programming docs recommend using the @key marker with components that are generated in a loop at runtime, which would be the Grid, TreeList, etc., however, I have not seen this @key marker used in any of the Telerik Blazor demos or sample code. Is setting of the @key marker done automatically by Telerik Blazor for the Grid, TreeList, etc., or is that something we should be doing somehow as we write apps using these components?

Optimising using @key – Blazor University (blazor-university.com)

Dimo
Telerik team
 answered on 15 Jul 2022
1 answer
263 views

How can I avoid this from happening?

 

Dimo
Telerik team
 answered on 15 Jul 2022
0 answers
225 views

Hey!

I searched everywhere but i can't find a solution for my problem.

Im using a TelerikTextBox with Telerik Blazor 2.3 but i upgraded to 3.4 and now you have to use a TelerikFloatingLabel as a parent element for the textbox.

This is my old code:

  internal static void CreateLabelTextBox(RenderTreeBuilder builder, int index, string labelContent, string propertyName, object sender, object bindObject, string className, bool isEnabled)
        {
            builder.OpenElement(index++, "Div");
            if (!string.IsNullOrEmpty(className))
            {
                builder.AddAttribute(index++, "Class", className);
            }
            builder.AddContent(index++, (RenderFragment)((rBuilder) =>
            {
                rBuilder.OpenComponent(index++, typeof(TelerikTextBox));
                if (!string.IsNullOrEmpty(labelContent))
                {
                    rBuilder.AddAttribute(index++, "Label", labelContent);
                    rBuilder.AddAttribute(index++, "Title", labelContent);
                }
                rBuilder.AddAttribute(index++, "id", GetNewId());
                if (TryGetProperty(propertyName, bindObject, out PropertyInfo property))
                {
                    var propertyValue = property.GetValue(bindObject) != null ? property.GetValue(bindObject).ToString() : string.Empty;
                    rBuilder.AddAttribute(index++, "Value", propertyValue);
                    rBuilder.AddAttribute(index++, "ValueChanged", EventCallback.Factory.Create<System.String>(sender, str => { property.SetValue(bindObject, str); }));
                }
                rBuilder.AddAttribute(index++, "Enabled", isEnabled);
                rBuilder.CloseComponent();
            }));
            builder.CloseElement();

        }

 

And now im trying to wrap this inside of a FloatingLabel:

internal static void CreateLabelTextBox(RenderTreeBuilder builder, int index, string labelContent, string propertyName, object sender, object bindObject, string className, bool isEnabled)
        {
            builder.OpenElement(index++, "Div");
            if (!string.IsNullOrEmpty(className))
            {
                builder.AddAttribute(index++, "Class", className);
            } builder.AddContent(index++, (RenderFragment)((rBuilder) =>
            {
                rBuilder.OpenComponent(index++, typeof(TelerikFloatingLabel));
                if (!string.IsNullOrEmpty(labelContent))
                {
                    rBuilder.AddAttribute(index++, "Text", labelContent);
                    //rBuilder.AddAttribute(index++, "Title", labelContent);
                }

rBuilder.AddContent(index++, (RenderFragment)((xBuilder) =>
                {
                    xBuilder.OpenComponent(index++, typeof(TelerikTextBox));
                    //if(TryGetProperty(propertyName, bindObject, out PropertyInfo property))
                    //{
                    //    var propertyValue = property.GetValue(bindObject) != null ? property.GetValue(bindObject).ToString() : string.Empty;
                    //    xBuilder.AddAttribute(index++, "bind-Value", propertyValue);
                    //}

                    xBuilder.CloseComponent();
                }));

                rBuilder.CloseComponent();
            }));
            builder.CloseElement();

}

 

Any suggestions how this might work?

                    
Philipp
Top achievements
Rank 1
 asked on 14 Jul 2022
1 answer
134 views

When AllowCreate="true", its automatically opened own appointment addDialog?. I want Stop that and want move custom page(My own page).

Please help me!

Thank You!.

 

Dimo
Telerik team
 answered on 14 Jul 2022
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?