Telerik Forums
Kendo UI for jQuery Forum
2 answers
148 views

The diagram `layout` method returns immediately while the layout process is on-going in the background.

It would be nice to have some way of knowing when the layout is finished, so I can show the user a "waiting" or "working" indication in the meanwhile. 

I couldn't find any `onLayoutFinished` in the API docs. Is there a way to know if the layout has finished processing? 

 

Thank you. 

Itai
Top achievements
Rank 1
 answered on 23 Jul 2016
1 answer
2.2K+ views

I have two questions regarding row grouping with my Kendo Grid that is being built from an existing HTML table.

First, the rows in the table are already sorted by the column to group by before the table becomes a Kendo Grid. This sorting is not ascending or descending, but is a custom sort that should never change. Here is the Kendo Grid initialization code where I group by the groupNumber column.

var grid = $("#myHTMLGrid").kendoGrid({
    dataSource: {
        group: {
            field: "groupNumber"
         }
     },
});

By default, grouping the rows causes the group rows to be sorted in ascending order. Can I possibly prevent the group rows from being reordered in any way so that the table holds true to the initial ordering?

My second question is this. I need to color code the group rows based on the values of groupNumber. How can this be accomplished? Thank you.

 

Dimiter Topalov
Telerik team
 answered on 22 Jul 2016
1 answer
106 views

We are currently experiencing a bug in the kendo grid control on IE version 11.420.10586.0 and 11.0.9600.18349, have not test all IE versions only these 2. The column resizing handles do not appear when attempting to resize the column. It has been tested in modern versions of Firefox, Chrome, Safari, Opera and IE and IE is the only one experiencing this issue. Is this a known issue and can you recommend a work around? I am experiencing this but on your samples so I have not enclose sample code. Please see http://demos.telerik.com/kendo-ui/grid/column-resizing, I am experiencing the problem in your samples as well as in my own project.

Thanks

Randy

Dimo
Telerik team
 answered on 22 Jul 2016
1 answer
327 views

I am very new to telerik and angular.  Literall my 4th week using these controlls and i need help.  I created a telerik grid and connected to a datsource generated by a service.  I am able to get the data into to the grid, but the filter/sort does not function.  I have inserted my code below.

 <======================  html page  begin  =======================>      
<div id="recentclaimsgrid" kendo-grid k-data-source="recentclaims" k-selectable="'row'" k-pageable='{ "refresh": true, "pageSizes": true }'
                                                 k-columns='[
                                    { field: "url", filterable: { multi: true, search: true },  title: "" },
                                    { field: "status", filterable: { multi: true, search: true },  title: "Status" },
                                    { field: "settled", filterable: { multi: true, search: true },  title: "Settled" },
                                    { field: "name", filterable: { multi: true, search: true },  title: "Name" },
                                    { field: "dateofloss", filterable: { multi: true, search: true },  title: "Data Of Loss" },
                                    { field: "claimnumber", filterable: { multi: true, search: true },  title: "Claim Number" },
                                    { field: "policynumber", filterable: { multi: true, search: true },  title: "Policy Number" },
                                    { field: "sequencenumber", filterable: { multi: true, search: true },  title: "Sequence Number" },
                                    { field: "lineofbusiness", filterable: { multi: true, search: true },  title: "Line Of Business" },
                                    { field: "currentworkqueue", filterable: { multi: true, search: true },  title: "Current Workqueue" },
                                    { field: "numberofdays", filterable: { multi: true, search: true },  title: "Number of Days" },
                                    { field: "liabilitydecision", filterable: { multi: true, search: true },  title: "Liability Decision" }
                                    ]'>
</div>

 

 <======================  html page  end=======================>     

 <====================== angular controller page  begin  =======================>  

 function loadfullrecentclaims() {
            caseopenService.loadfullrecentclaims(function(response) {
                $scope.recentclaims = new kendo.data.DataSource({
                    data: response,
                    schema: {
                        model: {
                            fields: {
                                url: { type: "string" },
                                 status: { type: "string" },
                                settled: { type: "string" },
                                name: { type: "string" },
                                dateofloss: { type: "string" },
                                claimnumber: { type: "string" },
                                policynumber: { type: "string" },
                                sequencenumber: { type: "string" },
                                lineofbusiness: { type: "string" },
                                currentworkqueue: { type: "string" },
                                numberofdays: { type: "string" },
                                iabilitydecision: { type: "string" },
                            }
                        }
                    },
                    pageSize: 5,
                    serverPaging: true,
                    serverFiltering: true,
                    serverSorting: true
                });
            }, function(error) {
                messageService.Error(error, true);
            });

        };

 <====================== angular controller page  begin=======================>  

 

 

function loadfullrecentclaims(callSuccess, callError) {

            helperService.httpget('caseopen/LoadFullRecentClaims', callSuccess, callError);

        }

 <====================== angular service page  end=======================>  

 <====================== angular service page  end=======================>  
Dimiter Topalov
Telerik team
 answered on 22 Jul 2016
5 answers
831 views

Hi..

I created kendo stacked column chart in my project using angular js. im giving condition tool tip template. here is the dojo example http://dojo.telerik.com/aZEgu

 

 

Alex Hajigeorgieva
Telerik team
 answered on 22 Jul 2016
1 answer
441 views

HI,

In this sample code i try to delete shape by remove item from diagram datasource,

but after the delete the 2 shapes remain in the diagram and in the datasource only 1.

 

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Kendo UI Snippet</title>

    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.rtl.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.silver.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.mobile.all.min.css"/>

    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    <script src="http://kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script>
</head>
<body>
  
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    dataSource: [{
       "name": "Telerik",
       "items": [
           {"name": "Kendo"},
           {"name": "Icenium"}
       ]
    }],
    template: "#= item.name #",
    autoBind: false
});

// Fetching data will trigger "change" on the dataSource
$("#diagram").getKendoDiagram().dataSource.fetch();
  
var datasource = $("#diagram").getKendoDiagram().dataSource.data()[0];

  alert(datasource.items.length); //2
$("#diagram").getKendoDiagram().dataSource.remove(datasource.items[0]);
  
  alert(datasource.items.length); //1
  
</script>
</body>
</html>

Vessy
Telerik team
 answered on 22 Jul 2016
8 answers
469 views

How can i generate, using kendo ui grid with mvc, a QRCode for every row of grid with link to id page of this row element?

I have something like in the image.

Dimiter Madjarov
Telerik team
 answered on 22 Jul 2016
3 answers
339 views
Hi,

Was trying the Dojo (http://dojo.telerik.com/tutorial/framework-datasource) but stuck at here.
The error returned in the Result is:

ListView widget not initialized.

What did I miss?

Thanks.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Untitled</title>
 
   
 
  <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script>
     
    var ds = new kendo.data.DataSource({
        data: [
            { text: 'Tweet 1', id: 1 },
            { text: 'Tweet 2', id: 2 },
            { text: 'Tweet 3', id: 3 },
            { text: 'Tweet 4', id: 4 },
            { text: 'Tweet 5', id: 5 }
        ]
     });
    $('#twitter').kendoListView({
           dataSource: ds,
           template: '<li>#: text #</li>'
    });
     
  </script>
</head>
<body>
   <ul id="twitter"></ul>
</body>
</html>
Alex Gyoshev
Telerik team
 answered on 22 Jul 2016
1 answer
1.6K+ views

I have an issue with restoring the selection in a Kendo dropdownlist after my application loads data from the database. When I set a breakpoint after restoring the selection, I can see that the dropdownlist has been set properly to the value to restore. However, when I continue after the breakpoint, the dropdownlist resets to its default value. What is causing the dropdown to reset?

We are using Kendo UI v2016.1.322, Internet Explorer 11.0.9600.18314, and Windows Server 2008 R2 Enterprise.

This is the markup for the dropdownlist :

<div class="panel panel-default" id="carEntriesPanel"
     ng-repeat="carEntry in carEntries[selectedRouteIndex]">

    <select class="form-control" kendo-drop-down-list k-options="kdCarTextOptions"
     id="{{'carTextDropdown-' + $index}}" ng-model="carEntry.carTextSelected.id"
   </select>  

</div>

These are the options and data source:

            $scope.kdCarTextOptions = {
                optionLabel: 'Please Select',
                dataSource: $scope.carTextDropDownDataSource,
                dataTextField: 'name',
                dataValueField: 'id',
                select: $scope.onSelect
            };

            $scope.carTextDropDownDataSource = new kendo.data.DataSource({
                transport: {
                    read: function (options) {
                            options.success($scope.carTexts[$scope.selectedRouteIndex]);
                    }
                }

This is the onSelect method:

           $scope.onSelect = function (e) {
                var dataItem = this.dataItem(e.item);
                $scope.carEntries[$scope.selectedRouteIndex][$scope.carIndex].carTextSelected.id = dataItem.id;
                $scope.carEntries[$scope.selectedRouteIndex][$scope.carIndex].carTextSelected.name = dataItem.name;
            };
        }

This is the method that restores the dropdown selection. By setting breakpoints, I could see that the dropdownlist does show the restored value, and onSelect is called after the select is triggered. But when I continue after the trigger, the dropdownlist resets to its default value.

            function updateCarTextDropdown(carIndex, carEntry) {

                var dropdown = angular.element('#carTextDropdown-' + carIndex).data('kendoDropDownList');
                if (dropdown) {
                    dropdown.dataSource.read();
                    if (carEntry.car.CAR_TXT_ID !== undefined) {
                        dropdown.value(carEntry.car.CAR_TXT_ID.toString());
                        dropdown.trigger('select');
                    }
            }

Alex Hajigeorgieva
Telerik team
 answered on 22 Jul 2016
2 answers
189 views

Hi,

 

I am using grid with server side pagination/filtering & column checkbox. Lets say, I have specified page size = 25. My requirement is if user has applied some filter and total records are less than 500, then user should be able to Check All records across multiple pages. Right now, Check All selects only current page records.

Alternative could be, If I can dynamically change the page size to ALL, that should also solve this. 

Regards,

Sanjay

Sanjay
Top achievements
Rank 1
 answered on 22 Jul 2016
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Drag and Drop
Application
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?