Telerik Forums
UI for Blazor Forum
2 answers
958 views

I have a grid set up to allow multi-selection and I use a GridCheckboxColumn for row selection. What I'm finding is that you can check multiple checkboxes to select multiple rows, however if you click on a row in a different column it unchecks all selected rows and selects only the row you clicked on. I can kind of understand that behavior as it's a scenario where you can also use ctrl+click to select multiples, and in that case if you click a row without holding down ctrl then you would expect other selected rows to be deselected. I can live with that.

 

The problem I'm having though is that let's say you're going through and using the checkboxes to select numerous rows. If you just barely miss the checkbox on your click, but your click is still inside the checkbox column, all your selected rows become deselected.

 

Is there a way to disable the ctrl+click behavior at least in the checkbox column so missing the checkbox won't cause you to lose all your selections? Or disable that for the whole grid and allow selection with just a click, not requiring ctrl? Or maybe some other solution?

 

Thanks.

Doug
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 21 Aug 2020
2 answers
3.6K+ views

We are trying out the Telerik controls and in my scenario I want the width of the AutoComplete input box to be, say 80% of the page.

Now I saw in browser Debug view that there seems to be a hardcoded width of 300px in the elements style? Is that correct?

How can I change that?

Denis
Top achievements
Rank 1
 answered on 20 Aug 2020
4 answers
410 views

Once you have more than about 4-5 categories in your legend, the legend starts reusing colors. Is there some way to provide the legend with more colors than that so you don't sometimes have 2-3 categories with the same color.

Also, if you pass in data and use the FieldCategory, I take it does not group by the category value and creates duplicate keys with different colors, further complicating the first issue above.

Plus, making the 2 issues above even worse, even if the results in the chart do not have values (and are not visible) the legend still generates keys that are not present in the results?

See attachment shows all 3 things in action at once.

 

I think I could make this mostly (beside the reused colors) better by creating a helper to group/merge by category into a smaller dataset and then create subsets of that filtered where No>0.

Having to do that in a larger dashboard scenario adds a ton of plumbing for what I would assume should be groupable based on configuration settings with a shared data collection used by many charts on the same view.

Zack
Top achievements
Rank 1
Veteran
 answered on 19 Aug 2020
1 answer
117 views

If an editor is placed in a Window the page will just spin on startup.  Any other WindowContent I have tried works fine, it stops as soon as I add the Editor.

Is there a different way to do this or is this a bug?

 

 

<TelerikWindow Class="demo-window" Width="700px" Centered="true" Visible="true" Modal="false" @ref="EditWindow">
       <WindowTitle>
           <strong>Edit</strong>
       </WindowTitle>
       <WindowActions>
           <WindowAction Name="Close" />
       </WindowActions>
       <WindowContent>
           <TelerikEditor @bind-Value="@Value"
                          Height="880px">
           </TelerikEditor>       
       </WindowContent>
   </TelerikWindow>
Marin Bratanov
Telerik team
 answered on 18 Aug 2020
2 answers
469 views

Hi,

Is there a way to keep the UI culture info when exporting a grid to Excel?

I have a date field which is displayed in the browser as dd/MM/yyyy which is how I want it. But when exported to Excel it becomes MM/dd/yyyy.

I set the UI culture in the blazor Program.Main.

            var culture = new CultureInfo("en-GB");
            CultureInfo.DefaultThreadCurrentCulture = culture;
            CultureInfo.DefaultThreadCurrentUICulture = culture;

            System.Threading.Thread.CurrentThread.CurrentCulture = culture;
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;

I am using the WebAssembly version of Blazor.

 

Thanks,

Tom

 

 

Tom
Top achievements
Rank 1
 answered on 18 Aug 2020
2 answers
766 views

Hello,

Two quick questions:

1) Is it possible to use the control just for rendering HTML?

Assuming that I want to use the control to enter and edit HTML and later just render it on a web page.

Or should I just use the Blazor MarkupString for that?

 

2) Does the control provide some support for sanitising the HTML entered? Or do I need to analyse it to look for malware?

regards

Hedinn
Top achievements
Rank 1
 answered on 17 Aug 2020
9 answers
10.2K+ views

Environment: VS 2019 w/ all latest updates.

Installed Telerik UI For Blazor through Progress Control Panel.

Attempting to create new Telerik Blazor solution, or add new Telerik Blazor project to existing solution, yields the following error:

 

NU1101 Unable to find package Telerik.UI.for.Blazor. No packages exist with this id in source(s): Local Packages, Microsoft Visual Studio Offline Packages, nuget.org

 

Restarted VS as well as machine, same error.

Instructions on how to resolve would be appreciated.

Marin Bratanov
Telerik team
 answered on 17 Aug 2020
2 answers
936 views

I can successfully trigger the OnUpdate event from a simple GridColumn Field update with Incell editing but not when using an EditorTemplate. Any ideas what I'm doing wrong or missing?

<TelerikGrid Data=@ItemsOC
             EditMode="@GridEditMode.Incell"
             OnUpdate="@UpdateHandler">
    <GridColumns>
         
        <!-- This column DOES NOT trigger OnUpdate when edited. -->
        <GridColumn Field="Quantity" Title="EDIT Quantity">
            <EditorTemplate>
                @{
                    ItemToEdit = context as Item;
                    <TelerikNumericTextBox @bind-Value="@ItemToEdit.Quantity" Format="F2" />
                }
            </EditorTemplate>
        </GridColumn>
 
        <!-- This column DOES trigger OnUpdate when edited. -->
        <GridColumn Field="Quantity" />
 
        <GridColumn Field="Description" />
        <GridColumn Field="Cost" />
        <GridColumn Field="SubTotal" />
    </GridColumns>
</TelerikGrid>

 

Doug

Doug
Top achievements
Rank 1
Veteran
 answered on 16 Aug 2020
1 answer
692 views
similar to https://www.telerik.com/products/wpf/pivotgrid.aspx
Marin Bratanov
Telerik team
 answered on 15 Aug 2020
6 answers
279 views

Looking at your online documentation for upgrading a project to the latest version with nuget, I must be missing something... it only shows to run the update command. When I run it (NuGet Sources Update -Name "telerik.com" -Source "https://nuget.telerik.com/nuget"...), then I go into our projects, the nuget manager shows that 2.14.1 is latest stable. Actually it shows as the only version option.

How do we get the nuget manager to offer the latest release (2.16 at this time)?

Zack
Top achievements
Rank 1
Veteran
 answered on 14 Aug 2020
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?