Telerik Forums
Kendo UI for Angular Forum
2 answers
1.5K+ views

I'm trying to create more condensed grids in Kendo UI for Angular.

I've added a style to reduce the font size which works

k-grid {font-size:10px;}

However try and change the default padding from  padding: 8px 12px; to nothing it seems to have no effect.

k-grid td {padding:0px;}

I've taken the demo grid from the Kendo Angular site and just added these styles to https://plnkr.co/edit/WByOCE8JzmJkNq4wROIw?p=preview

Any ideas on how to compact the grid to fit more data in?

Neil
Top achievements
Rank 1
 answered on 09 Jan 2018
8 answers
1.7K+ views

Hi,

I run your doc sample located here :

https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/filtering/#toc-basic-configuration

and tried to combine filtering with preset value and noticed that when I type-in a keyword to filter and then pick an entry from the filter result, the widget would clear the old pre-selected entry.See my plunker here https://plnkr.co/edit/iCqJrjB7tqiafaVc7PT3?p=preview

To replicate:

-Ensure "Small" is selected in the widget

-type in "ge" inside the widget so that "Large" gets filtered.

-pick "Large"

-The entry "Small" will disappear

 

I assume this is because the filtered result does not include "Small" entry so its option is not available for the select widget.This is happening when using value binding and ngmodel binding.It is also an issue when using server side filtering so I had to always append a filter for each preselected entry value and then add a filter for the typed-in text:

public onFilterChange(value: any): void {
       
        let filters: any[] = [];
 
        if (value) {
 
            for (let entry of this.Item.franchiseeIDs) {
//had to add value filter for each preselected entry
                filters.push({ field: "ID", operator: "eq", value: entry });
            }
//then finally add typed-in text filter
            filters.push({ field: "Name", operator: "contains", value: value });
            this.frmService.query({
                filter: {
                    logic: "or",
                    filters: filters
 
                }
            }).subscribe(
                (data) => {
 
                    this.franchisees = data;
 
                });
        }
         
    }

 

<kendo-multiselect [data]="franchisees"
                                        (filterChange)="onFilterChange($event)"
                                       
                                       [textField]="'name'"
                                        [filterable]="true"
                                       [valueField]="'id'"
                                       [placeholder]="'Select franchisees...'"   [valuePrimitive]="true" [(ngModel)]="Item.franchiseeIDs" name="franchiseeIDs2">

 

Thanks

Madani

Dimiter Topalov
Telerik team
 answered on 08 Jan 2018
1 answer
573 views
Is it possible to create line breaks with the Drawing API using the Text class?  
Dimiter Topalov
Telerik team
 answered on 08 Jan 2018
1 answer
102 views

Hi there.

I want to use mainGridOptions in your grid to transfer the header names and use the translation with angular {{ my_header_name | translate }}

Did  mainGridOptions not exists any more ?

Can you provide a sample to user the angular translation with the grid headers ?

Dimiter Topalov
Telerik team
 answered on 05 Jan 2018
1 answer
171 views

Hi there. 

I'm trying to move my app to angular 5 and want to use the mainGridOptions.

In the past i could use there the angular translation service.

Is it still possible or could you provide a sample ?

Dimiter Topalov
Telerik team
 answered on 05 Jan 2018
1 answer
236 views

I'd like to be able to use a linear gradient as a fill color when generate shapes.  However, the TypeScript definition of color in FillOptions is limited to string.  How can I go about solving this? 

 

const gradient = new LinearGradient({
        name: "LG1",
        stops: [
            new GradientStop({
                color: "gray",
                offset: 0,
                opacity: 0
            }),
            new GradientStop({
                offset: 0.5,
                color: "orange",
                opacity: 0.8
            })]
    });

            const geometry = new GeomRectangle([currentStartPoint, 0], [segmentLength, stackedBarWidth]);
            const rect = new Rect(geometry, {
                stroke: { color: "black", width: 1 },
                fill: { color: disp.color, opacity: 1 }
            });

Dimiter Topalov
Telerik team
 answered on 04 Jan 2018
1 answer
699 views

How can I change the donut size hole?  The holeSize property does not seem to work.  I tried setting it to 1, 5, 10, 20 and it turns the donut into a square.

 

Here's an example plunker

https://plnkr.co/edit/xC6m126rKRv5qI1xFTp2?p=preview

Dimiter Topalov
Telerik team
 answered on 03 Jan 2018
8 answers
123 views

I'm currently completing a project in which I've installed filter menus in my UI Grids. So far everything has been working fine with one exception, that the calendars show up off screen something like 10 or 15 frames below the view I'm in. I remember this being related to collision but I'm not entirely sure where I'd need to input the code to nudge this in the right direction globally. Also this may not be the only problem as I remember in the past, before this issue came up, the calendars were coming up as blank objects.

Let me know if you can think of any extra steps that need to be followed in implementing the calendars in either the datepickers or filter menus for Angular 2/4/5. My project is a .Net Core 2/Angular 4 SPA so it's quite possible that I need some type of script in my Layout.cshtml, I'm just not sure what. 

 

Thank you!

Ron
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 02 Jan 2018
1 answer
130 views
Is there a way to pass additional data to be accessible inside a grid cell template?  For example, I have a property on my component that defines the axis configuration for a sparkline inside a cell template.  How can I bind the sparkline valueAxis property to the component property?
Jacky
Top achievements
Rank 1
 answered on 02 Jan 2018
1 answer
89 views
Grid Crud operation on localdata source (array) not working error  TypeError: Cannot read property 'id' of undefined while click on add button
Dimiter Topalov
Telerik team
 answered on 25 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?