Telerik Forums
UI for ASP.NET Core Forum
1 answer
24 views
I am trying to implement paging in the ASP.Net core filemanager. Is this supported? Are there examples?
Mihaela
Telerik team
 answered on 15 Sep 2023
1 answer
56 views

I've seen Signature component and it's documentation but I haven't seen how to save the signature in DB.

Since there's no SignatureFor component to bind a model attribute to it, how to save a signature as a model attribute?

Mihaela
Telerik team
 answered on 15 Sep 2023
3 answers
898 views

How can you set the default Zoom Level on the PDF Viewer?  It defaults to "Automatic Width" but I want it to default to "Fit to Width".


    <kendo-pdfviewer name="pdfviewer">
        <pdfjs-processing file="@(Url.Action("GetReportDownload", "Downloader"))"/>
        <toolbar enabled="true">
        </toolbar>
    </kendo-pdfviewer>

 

Stefan
Top achievements
Rank 1
Iron
 answered on 14 Sep 2023
1 answer
37 views

I am in the Process of updating to the latest Kendo version in our Asp core project.
Our previous version was 2023.1.117. I wanted to update to 2023.2.829. 
Previosly all grid Command buttons where just the default grey in the bootstrap 4 theme.
Now the edit buttons have the primary style.
Since our product allows the user to change some colors the blue doesnt fit all the time.
Is there a way to change the primary styling at runtime?`
Maybe globally, because some other smaller compoents have the primary too but those blue accents where not that intrusive.

Alexander
Telerik team
 answered on 13 Sep 2023
3 answers
50 views

Hello,

im using kendo-react with .net core integration.

When i want to filter a Grid the query generated by the method: `toDataSourceRequest()`use the sql function LOWER to compare a string column.

With this behaviour its impossible to match only the exact rows. I want to disable this function and use the `=` operator in SQL.


I think if i use: `ignoreCase: false` in the frontend and then serialize with: `toDataSourceRequestString` from the `@progress/kendo-data-query` package, the `DataSourceRequest` will contain the ignoreCase prop and the toDataSourceRequest will do the job.

But the ignoreCase:false prop is not added to the query param,.

Any suggestion? Its not possible to use ignoreCase with the backend integration and only works in frontend?

https://codesandbox.io/s/vigorous-bush-s2fgnc => ignore case working when the filter is in frontend.

- https://codesandbox.io/s/nervous-platform-9nr2q4 => with backend not working

Thanks!

Carlos
Top achievements
Rank 2
Iron
Iron
Iron
 updated answer on 12 Sep 2023
1 answer
28 views

When updating a record in the grid - it does not allow me to save an empty string for that field - if the previous value in the field contained a value.

My underlying class property doesn't work with either of the following options

with annotations:     

[Display(Name = "Comments")]
[Required(AllowEmptyStrings = true)]
public string ItemComments { get; set; } = " ";

Without annotations:

public string ItemComments { get; set; } = " ";
Mihaela
Telerik team
 answered on 12 Sep 2023
1 answer
38 views

I have grid and form, which are bound to Employee object. It has object property Department. To edit it, I use separate editors, because I didn't find the right format to allow editing in both places.

Usage in form:

i.Add().Field(e => e.DepartmentId).Label("Отдел").EditorTemplateView(Html.Partial("FormEditors/Department"));

Editor of the form's field:

@(Html.Kendo().DropDownList()
    .Name("DepartmentId")
    .DataTextField("Name")
    .DataValueField("Id")
    .Filter(FilterType.Contains)
    .DataSource(source =>
    {
        source.Read(read => read.Action("GetDepartments", "Home"));
    }))

Usage in grid:

        columns.Bound(p => p.Department.Name).Width(230)
            .ClientTemplate("#=data.Department?.Name ?? ''#")
            .EditorTemplateName("Department")
            .Filterable(ftb => ftb.Cell(cell =>
            {
                cell.Operator("startswith");
                cell.ShowOperators(false);
            }));

Editor of the grid's column:

@(Html.Kendo().DropDownListFor(m => m)
    .DataTextField("Name")
    .DataValueField("Id")
    .Filter(FilterType.Contains)
    .HtmlAttributes(new { data_bind = "value: Department" })
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action("GetDepartments", "Home");
        });
    }))


Mihaela
Telerik team
 answered on 12 Sep 2023
1 answer
25 views

Hi there,

While working with the Filter Component I was able to export an CompositeFilterDescriptor object on the client side before sending it to the server, the backend is a .net core API.

Unfortunately I tried to use Telerik.Datasource DLL in order to utilize the JSON parsing functionality inside however it seems like they are from two different worlds !

On the Angular side the CompositeFilterDescriptor looks like this 

{
    "logic": "or", 
    "filters": [ 
       {
           "field" : "unitId",
           "operator" : "eq", 
            "value" : "1005"
       }
     ]
}

On the .NET side the CompositeFilterDescriptor it is expecting something like this


{
  "logicalOperator": 1,
  "filterDescriptors": [
      {
        "member": "unitId", 
        "operator": 2 , 
        "value" : "1005"
      }
  ]
}

Summary of Differences

1- Field names are different and hence not parsed properly ( i.e. logicalOperator vs logic, member vs field)

2- Enumerations are sent as strings from Angular but parsed as Integers from Telerik.Datasource 

 

I feel a little bit confused here, is there any library provided by Telerik that I can use to capture the Angular CompositeFilterDescriptor JSON Object received from the client app inside a Web API ?


 

Alexander
Telerik team
 answered on 08 Sep 2023
1 answer
28 views

I use a DropDownList as an EditorTemplate in a Grid.

The problem is, that the DDL has to display several thousand entries (products).

I tried to set the PageSize of the DataSource and handle the Filter-Event. This works fine so far.  The DDL opens very fast and I can search (filter) and then select an entry, that is not visible in the list at the beginning.

This works fine for adding a new record.

But when I want to edit an existing record in the grid I get problems. When the editor opens and the value is not in the select list of the DDL, it is not selected (also not displayed) and the value of the DDL is set to null.

This behavior makes sense to me.

When I remove the PageSize from the DataSource everythings works fine. But it takes to long to open the DDL. That's why I need another solution.

I also tried the virtualization. But the problem stays the same.

Does anyone have an idea how I can solve this?

Maybe another control? Finally the user should be able to search and select a product on an easy way.

I am grateful for any idea.

CPS
Top achievements
Rank 1
Iron
Iron
 answered on 06 Sep 2023
1 answer
22 views
I have the following breadcrumb:
    @(Html.Kendo().Breadcrumb()
        .Name("breadcrumb")
        .BindToLocation(true)
        .Navigational(true))
When I go to route /Directory/Users/Managers it will show entries: Directory, Users, Managers. Is there a way to localize them to my language?
Vasko
Telerik team
 answered on 05 Sep 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Abhishek
Top achievements
Rank 1
Iron
Johan
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Stephan
Top achievements
Rank 2
Iron
Iron
Veteran
Omar
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Abhishek
Top achievements
Rank 1
Iron
Johan
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Stephan
Top achievements
Rank 2
Iron
Iron
Veteran
Omar
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?