Telerik Forums
Kendo UI for Angular Forum
1 answer
301 views

Would like some Kendo-specific suggestions or tips to best use the components, mainly in regards to whether or not seperate "create" and "edit" components should be created.  The UI im putting together is fairly complex and ill either need to manage the complexity of having almost identical create and edit components, or managing whether or not the user is editing or creating a new object.  So, either in general or given the scenario below, would you look at creating separate "create" and "edit" components?

Generally I have been using separate create and edit components when using angular with basic html components.  However, I think I should be able to manage a particular object type with just a single component.  Eg the Angular.io example managing heros.  The example below allows listing and editing a "hero", but not creating a new hero. 
example

The UI im about to build involves two grids in a master/detail relation, along with other elements related to the parent object. So the user would come to this screen and start a new DeliveryBucket by entering some basic info about the DeliveryBucket, then adding items to Grid A and for each row in Grid A, they would need to add items to Grid B.  Once they have enough to start they could "save" the DeliveryBucket which would persist the data model back to the database via an angular service and api.

The data model looks something like this. 

DeliveryBucket
    |___Path
        |__<Destination>
                |__Order
                    |__<OrderItem>

Where:  
- DeliveryBucket will contain a single path
- Path contains one or more Destinations
- Destination contain a single order
- Order contains one or more OrderItem

 

Svet
Telerik team
 answered on 13 Jul 2018
1 answer
113 views

Do you know if there's any known issue using Kendo-splitter, kendo-window, kendo-treeview, kendo-tabstrip with Safari browser?

I tested my app with Chrome, IE, Edge and the pages look OK with these browsers.

Only with Safari, then the page does not show the splitter panes, tabs, popup dialog correctly.

Attached is a document showing screenshots across browsers.

 

Svet
Telerik team
 answered on 13 Jul 2018
1 answer
1.4K+ views

 Hi,

I have a 'kendo-autocomplete' control on my app. Trying to set auto focus (element highlighted) on page load.  Using native javascript was able to track down the HTML element , but cannot fire 'click' / 'focus' events on them. Can you please help ?

I have seen a jquery post achieving the same , by calling .data('kendo-autocomplete). https://stackoverflow.com/questions/17152915/setting-focus-on-autocomplete-textbox

Here's what I tried ->

1. let searchInput: HTMLElement = document.getElementsByClassName('customClass')[0] as HTMLElement;

     searchInput.click(); //doesn't fire

 

2. Native Angular way -> Doesn't even find the element on DOM.

    <kendo-autocomplete #findMe>

     @ViewChild('findMe') searchInput: ElementRef;

     ngAfterViewInit() {

            this.searchInput.nativeElement.focus();    //searchInput is not defined. 

     }

Svet
Telerik team
 answered on 11 Jul 2018
2 answers
340 views

Hello,

I need to use custom directives for manage checkedChange behavior.

Firstly I tried:

 <kendo-treeview [nodes]="model.Nodes"
                    textField="TextField"
                    kendoTreeViewExpandable
                    [expandBy]="model.ExpandBy"
                    [(expandedKeys)]="model.ExpandedKeys"
                    [hasChildren]="model.HasChildren"
                    [children]="model.Children"

                    [kendoTreeViewCheckable]="model.CheckableSettings"
                    [(checkedKeys)]="model.CheckedKeys"
                    [checkBy]="model.CheckBy"
                    [isChecked]="model.IsChecked"
                    (checkedChange)="checkMultiple($event)"
    </kendo-treeview>

but fires my event, and then the default event also. So checkMultiple was executed 2 times, so I could't check items. I thought that this way ignore the default event.

For this reason I decided to use my own custom directives, to overwrite all:

<kendo-treeview [nodes]="treeView.Nodes"
                    textField="TextField"
                    kendoTreeViewExpandable
                    [expandBy]="treeView.ExpandBy"
                    [(expandedKeys)]="treeView.ExpandedKeys"
                    [hasChildren]="treeView.HasChildren"
                    [children]="treeView.Children"

                customCheck
                    [(checkedKeys)]="treeView.CheckedKeys">
    </kendo-treeview>

Georgi Krustev
Telerik team
 answered on 10 Jul 2018
2 answers
1.1K+ views

My Kendo menu items are loaded from a JSON file so it's dynamically created using the [items] property. How do I change the font color for menu items? 

I know there's a cssClass property on MenuItemComponent but that doesn't work for me.

Svet
Telerik team
 answered on 09 Jul 2018
1 answer
1.3K+ views

Im using the bootstrap theme, and things seem to be working ok once I switched my app config over to using scss.
Here is my variables.scss file
However, looking at the override variables on this page, I added $primary to be a different color, but it still shows up blue (default)
https://www.telerik.com/kendo-angular-ui/components/styling/theme-bootstrap/customization/

 

$base-theme:Bootstrap;
$skin-name:kendo-dflood-bs4-1;
$accent: #007bff;
$secondary: #e4e7eb;
$info: #17a2b8;
$success: #28a745;
$warning: #ffc107;
$error: #dc3545;
$body-bg: #ffffff;
$body-color: #292b2c;
$component-bg: #ffffff;
$component-color: #292b2c;
$card-cap-bg: #f7f7f9;
$card-cap-color: #292b2c;
$series-a: #0275d8;
$series-b: #5bc0de;
$series-c: #5cb85c;
$series-d: #f0ad4e;
$series-e: #e67d4a;
$series-f: #d9534f;
$button-bg:#dc3545;  //bg should be red
$primary:#28a745;

 

<div class="col-xs-12 col-sm-12 col-lg-12">
  <p class="k-block">
    <kendo-buttongroup>
      <button kendoButton [primary]="true"> test1</button>
      <button kendoButton [primary]="true"> test2</button>
      <button kendoButton [primary]="true"> test3</button>
      <button kendoButton [primary]="true"> test4</button>
      <button kendoButton [primary]="true"> test5</button>
    </kendo-buttongroup>
  </p>
</div>

 

Alex Gyoshev
Telerik team
 answered on 09 Jul 2018
2 answers
107 views

    <div class="col-xs-12 col-sm-12 col-lg-12">
      <p class="k-block">
        <kendo-buttongroup>
          <button kendoButton [primary]="true" [togglable]="true"> Rating </button>
          <button kendoButton [primary]="true" [togglable]="true"> Invoices  </button>
          <button kendoButton [primary]="true" [togglable]="true"> Statements </button>
          <button kendoButton [primary]="true" [togglable]="true"> Vouchers </button>
          <button kendoButton [primary]="true" [togglable]="true"> ChargeBacks </button>
        </kendo-buttongroup>
      </p>
    </div>

 

Looking at the "computed" styles in the dev console, the font-zie is 10 px.  How can I get it larger?  Isnt the bootstrap default 14 px?

Svet
Telerik team
 answered on 09 Jul 2018
5 answers
866 views

Im currently using the bootstrap theme and now looking at using a custom theme based on the bootstrap theme.

Looking over this, im not sure on how to place the output
https://www.telerik.com/kendo-angular-ui/components/styling/theme-builder/

When I download my theme, I have a zip file containing two files, all.css and variables.scss

For example, in the linked instructions above, do I use these paths and put the two files in the zip file into the scss/all folder?

// import configuration from the theme builder
@import 'variables.scss';
// import the base theme
@import '~@progress/kendo-theme-default/scss/all';

Or... since im using the bootstrap theme, I replace the files in @progress\kendo-theme-bootstrap\scss ???

Or, do I create a new folder under node_modules\@progress with the name of my new theme?

 

 

 

 

 

Svet
Telerik team
 answered on 09 Jul 2018
1 answer
462 views

Really like the look of this custom bootstrap navbar, especially with the integrated search box, the rounded corners etc.

http://fullstackengine.net/how-to-make-a-overlay-navbar-using-bootstrap-4-and-angular-2/

What would be a good approach to assemble something like this using the kendo components?

Im guessing, but Im thinking of building my own component by assembling various kendo components...

Svet
Telerik team
 answered on 09 Jul 2018
2 answers
124 views

Hi
Previously I had raised a ticket regarding the slowness in rendering the scheduler when large sets of json are coming with respect to large number number of resources data but from the provided solution the rendering has become more slower and decided not to use it.
Another same kind of issue I'm facing is when is removeEvent() is used. The delete prompt is taking very long time to load and on clicking the Delete button it takes 3-4 secs just to remove that event.
Can you suggest an improvement for this?

 

Nithin
Top achievements
Rank 1
 answered on 09 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?