Telerik Forums
UI for Blazor Forum
1 answer
171 views

Good morning all,

I'm taking a look to the new Filter component, recently added to Telerik UI for Blazor.

I'm using it to build conditions to send to a custom SQL Query generator which will build the where clauses mapping from the export of the filter component.

At the moment I'm simply serializing the CompositeFilterDescriptor to JSON obtaining something like this:

{
    "FilterDescriptors": [{
            "Operator": 4,
            "Member": "Quantity",
            "Value": 25
        }, {
            "Operator": 1,
            "Member": "Quantity",
            "Value": 40
        }, {
            "Operator": 2,
            "Member": "OrderShipCountry",
            "Value": "France"
        }, {
            "FilterDescriptors": [{
                    "Operator": 17,
                    "Member": "OrderShipName",
                    "Value": "La maison d\u0027Asie"
                }, {
                    "Operator": 18,
                    "Member": "OrderShipName",
                    "Value": "Victuailles en stock"
                }
            ],
            "LogicalOperator": 1
        }
    ],
    "LogicalOperator": 0
}

and I will have the Query Generator parse it, but if there are better strategies, please let me know.

Thanks, have a nice day.

PS: I tagged this question as General Discussion as it seems like a "Filter" tag is not available yet.

Marin Bratanov
Telerik team
 answered on 06 Mar 2022
1 answer
154 views
I saw the FloatingActionButton Web control available in KendoUI and ASP.NET Core.  Is the FloatingActionButton coming to UI for Blazor?
Marin Bratanov
Telerik team
 answered on 06 Mar 2022
1 answer
738 views

Repro: Go to https://demos.telerik.com/blazor-ui/editor/overview and in the REPL demo change the demo to any of the dark themes and try to type. Nothing is visible because the text color is same as the control background (black).

Is there a way to either make the text color white, or make the background of the Editor control white, or anything else to make it usable when using a dark theme?

Svetoslav Dimitrov
Telerik team
 answered on 02 Mar 2022
0 answers
102 views

Hi,

I'm using a TelerikGrid to display some results and I'd like to let the user select the results he wants to keep on screen by having a button "Edit" that makes a checkboxColumn visible in order to select/deselect the items he wants to keep. Problem is :
This is my button declaration :<GridCommandButton Command="EditDisplayedResults" OnClick="OpenEditMode" IconClass="fa fa-edit"></GridCommandButton>

And this is its handler

protected async Task OpenEditMode()
        {
            editMode = true;
            Console.WriteLine("Open Edit mode");
            StateHasChanged();
        }

Now when I click on the button the event is well triggered but the column doesn't appear directly after the Visible property is set to true. Even with the StateHasChanged is doesn't rerender the grid. The only way to make the column appear is by changing page. Is there a ay to rerender the grid in my case ? And if possible without having to reload the data because it takes some time...

Thanks in advance

Rémy

Rémy
Top achievements
Rank 1
 asked on 02 Mar 2022
3 answers
136 views

I want to disable Gantt tree editing. ie make the tree read only.

Any suggestions?

Benjamin
Top achievements
Rank 2
Iron
 answered on 02 Mar 2022
1 answer
87 views

Depending if my folder is expanded or not I may want to display a different icon. Or I might want one of my leaf tree nodes should show a different look because of an external state change (e.g. IsDirty so add an asterisk to the text and make it red.)

Changing the bound IconClass property of the tree node doesn't update the tree.

If I update the property, I can't find a way to tell the tree to re-render that node.

My only working example is to reset the tree data with a new copy of the tree data list. However this looks very awkward in the example of a tree node expand/collapse. The node expands and then about a second later the icon changes to an open folder.

Any other options available?

-Andy

Dimo
Telerik team
 answered on 02 Mar 2022
1 answer
111 views
Is there a way for sort to just alternate between ascending and descending? Currently if you keep clicking, it has a 3rd state of no sort which is never a state we want. If the answer is use OnStateChange, I can just do that then.
Dimo
Telerik team
 updated answer on 01 Mar 2022
0 answers
128 views

Strangest thing. I have a non-modal window control which contains a grid control. For some reason, the window appears to be docked to the right side of the form. I can move the window up and down but if I move it right or left, it just resizes the window width.

If I specify a width in px then it is fine. If I specify a width as a percentage then it is docked. Is there a way for the grid to configure the width so it doesn't dock but still takes 100% of the width?

 

John
Top achievements
Rank 1
Iron
 asked on 28 Feb 2022
1 answer
232 views

I'm using TelerikListView component in Blazor app. I have a template defined with @onclick event and need to programmatically invoke the Edit command in that event. The reason is to show EditTemplate when the user clicks on the whole row, not just some button.

Thanks for help.

Marin Bratanov
Telerik team
 answered on 28 Feb 2022
1 answer
1.4K+ views
Or is there is some alternate control I can use? Thanks!
Marin Bratanov
Telerik team
 answered on 28 Feb 2022
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?