Telerik Forums
UI for Blazor Forum
3 answers
1.3K+ views

Hello,

I have a MultiSelect component used to select tags. It works as intended, but I have one problem I can't find any workaround for :

If the user inputs a text that isn't part of the data list, they can't "select" that value, unlike in a ComboBox for example where the data List "guides" you without restricting what you write.

I have found no parameter that allows custom values, and I haven't been able to extract at all the raw text.

To illustrate, here's a screenshot :

I'd like to add / "select" a new value called "newTag" that is NOT part of the data list.

When trying to retrieve the input value from the component (via 2-way binding or onChange event) , I only get a List<string> containing all selected/valid items, in this case a list with only "existing tag".

I can't find a way whatsoever to retrieve that "newTag" text, it would probably solve the problem because then I could work around the lack of custom input permission in the OnChange event by adding dynamically "newTag" to the dataList, thus making it a valid value to select.

Please help me find a way to implement custom inputs.

Best regards

John
Top achievements
Rank 1
 answered on 08 Jan 2021
1 answer
738 views

I have an update event but how can I tell the grid the update didn't work out and everything has to be cancelled,

This code doesn't work.

private static async Task MainGridUpdateHandler(GridCommandEventArgs args)
       {
           var item = (EmployeeClusterVM) args.Item;
           if (item.EndDate <= item.StartDate)
           {
               args.IsCancelled = true;
           }
           try
           {
               EmployeeClusterLogic.UpdateEmployeeCluster(item);
           }
           catch (Exception e)
           {
               args.IsCancelled = true;
           }
       }
Marin Bratanov
Telerik team
 answered on 08 Jan 2021
3 answers
754 views
I typically use the mask to prevent the user from entering in "bad" characters. Is this possible with MaskTextBox? I only saw a handful of predefined rules. I know I can use validation too. Perhaps the best method is to notify the user their input is bad AND not allow it to be inputted...
Marin Bratanov
Telerik team
 answered on 07 Jan 2021
4 answers
841 views

I'm finding the default font size as well as the overall amount of white space around the controls to be a bit much.  I'm trying to produce a much more condensed interface with a smaller font and less margins/padding.

I've been inspecting all of the rendered UI elements in an attempt to figure out the most efficient way to accomplish this but my head is spinning.  So far my assessment is that I'm going to have to do this one component at a time.  And even with that approach I'm struggling. 

For example, I've reduced the font size to 12px but the date picker remains the same size but with the smaller font.  Not quite what I was going for.  

I feel I could spend weeks trying to figure out every single "k-" class that I will need to override.

I was hoping the theme builder would allow me to pick a font size/family as well as options to adjust margins/padding around the elements but that doesn't seem to be the case.

Any suggestions?  Where am I going wrong?

Jeffrey
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 07 Jan 2021
1 answer
292 views

Hi Team,

I have more than 10000 items, after click on TelerikMultiSelect  control it is taking 5 seconds to load the popup. 
Do we have TelerikMultiSelect with Virtual scroll or Paging? 

Marin Bratanov
Telerik team
 answered on 07 Jan 2021
1 answer
139 views

Hi,

i followed the next example to do serialization of the datasourcerequest on the server:

https://github.com/telerik/blazor-ui/tree/master/grid/datasourcerequest-on-server

when I try to combine this with the grid aggregates, I get this runtime error:

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Number of parameters specified does not match the expected number.
System.Reflection.TargetParameterCountException: Number of parameters specified does not match the expected number.
   at System.Reflection.RuntimeMethodInfo.ConvertValues(Binder binder, Object[] args, ParameterInfo[] pinfo, CultureInfo culture, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   at Telerik.DataSource.AggregateFunctionsGroup.<>c__DisplayClass8_0.<ExtractPropertyValues>b__0(PropertyInfo p)
   at System.Linq.Utilities.<>c__DisplayClass2_0`3[[System.Reflection.PropertyInfo, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[<>f__AnonymousType0`2[[System.Reflection.PropertyInfo, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Telerik.DataSource, Version=2.0.7.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8],[<>f__AnonymousType1`2[[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Telerik.DataSource, Version=2.0.7.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8]].<CombineSelectors>b__0(PropertyInfo x)
   at System.Linq.Enumerable.SelectArrayIterator`2[[System.Reflection.PropertyInfo, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[<>f__AnonymousType1`2[[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Telerik.DataSource, Version=2.0.7.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8]].MoveNext()
   at System.Linq.Enumerable.ToDictionary[<>f__AnonymousType1`2,String,Object](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[<>f__AnonymousType1`2,String,Object](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Telerik.DataSource.AggregateFunctionsGroup.ExtractPropertyValues(Object obj)
   at Telerik.DataSource.AggregateFunctionsGroup.get_Aggregates()
   at Telerik.Blazor.Components.Grid.Grouping.GroupHeaderCell`1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetColumnGroupHeaderTemplateArgs()
   at Telerik.Blazor.Components.Grid.Grouping.GroupHeaderCell`1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].BuildRenderTree(RenderTreeBuilder __builder)
   at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

 

 

 

Marin Bratanov
Telerik team
 answered on 07 Jan 2021
3 answers
332 views

Hi everyone,

 

Is it possible somehow on a selected row to mark the selected cell when the user clicks on it?

 

Best regards,

Cipri

Marin Bratanov
Telerik team
 answered on 07 Jan 2021
1 answer
101 views
How will we modify client side code? (Need the application to crawled by search engine)
Marin Bratanov
Telerik team
 answered on 07 Jan 2021
1 answer
366 views
Hello!
Is there a way to start the edit command with a double click on a specific cell or row?

Thank you and best regards
Nico
Nadezhda Tacheva
Telerik team
 answered on 07 Jan 2021
1 answer
238 views
Hello!
I want to use the Grid´s DetailTemplate to view another grid, let´s call it detaildatagrid.
Currently I have set the width of the detailsdatagrid to 65vw, because at 100% it will use two times of my monitor width and the horizontalscrolling is not working anymore.
Is there a way to force the detaildatagrid to use the remaining seeable width?

thank you & best regards
Nico
Marin Bratanov
Telerik team
 answered on 05 Jan 2021
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?