Telerik Forums
Kendo UI for jQuery Forum
1 answer
512 views

Greetings,

I have two issues here:

1. when the window is open, it's not properly centered in the expected region, how can I get it to be in the center of the appended div?

2. When I maximize the window, it covers everything, how can I limit it to that same region?

Here is a code snippet:

 

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

    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.rtl.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.silver.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/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.607/js/kendo.all.min.js"></script>
</head>
<body>
<div id="vertical" >
  <div></div>
  <div id="horizontal" >
    <div id="menusection"></div>
    <div id="mainContent">
      <div id="dialog"></div>
    </div>
  </div>
  <div></div>
  </div>
<script>
        $("#vertical").kendoSplitter({
            orientation: "vertical",
            panes: [
                { collapsible: true, size: "5%" }, // height
                { collapsible: false, size: "90%" },
                { collapsible: true, size: "5%" }
            ]
        });

        $("#horizontal").kendoSplitter({
            panes: [
                { collapsible: false, resizable: false, size: "15%" }, // menu
                { collapsible: false, resizable: false, size: "85%" },
            ]
        });  
$("#dialog").kendoWindow({
  appendTo: "div#mainContent",
  actions: [
                //"Pin",
                "Minimize",
                "Maximize",
                "Close"
            ]
}).center().open();
//var dialog = $("#dialog").data("kendoWindow");
//dialog.center();
// chaining example
// dialog.center().open();
</script>
</body>
</html>

 

Thanks,

 

Iliana Dyankova
Telerik team
 answered on 27 Jun 2016
1 answer
356 views

Hi,

We have checkbox (<input type='checkbox' ...>) in each row of TreeList where we will set it as indeterminate state by below code:

     checkboxElement.prop('indeterminate', true);

It works fine until I expand or collapse a node. All those 'indeterminate' checkbox are cleared.

Please kindly advise any way to prevent such clearing.

Thanks!

Kelvin

 

Stefan
Telerik team
 answered on 27 Jun 2016
5 answers
7.9K+ views
Hi,

I need to read the raw json data that was read by my datasource.
Here is my code:

$(document).ready(function ()
{          
  myDataSource = new kendo.data.DataSource(
  {
    transport:
    {
      read:
      {
        url: "./module/getData.php",
        type: "GET",
        dataType: "json",
      }
    },
 
    schema: {data: "data"}          
});
 
myDataSource.read();
 
alert(JSON.stringify(myDataSource.data()));
                    
$("#test").kendoGrid({
  dataSource: myDataSource
 });               
});

...
    <table id="test">
      <tr>
        <th data-field="text">Name</th>
        <th data-field="desc">Description</th>
      </tr>
    </table>
...

The table/grid shows the data correctly, but the JavaScript code

alert(JSON.stringify(myDataSource.data()));

shows just [], so it seems to be an empty array.

So how can I display the original, raw JSON data that comes from getData.php?
I also want to show the number of items, but

var data = myDataSource.data();
alert(data.length);

Just shows 0 (zero)

How the array can be empty and length can be zero but grid shows correct data?

By the way the JSON-data coming from getData.php looks like:

{"data":[
   {"text": "Item 1", "name": "Name1"},
   {"text": "Item 2", "name": "Name2"}
]}


Thanks a lot!
Nikolay Rusev
Telerik team
 answered on 27 Jun 2016
1 answer
205 views

I'm trying to get kendo radial guages working in a new asp mvc core application from a recent purchase of mvc controls & kendo ui pro.

 

All examples are showing a wrapping container of something like:

#gauge-container { background: transparent url(@Url.Content("~/Content/dataviz/gauge/gauge-container-partial.png")) no-repeat 50% 50%; width: 386px; height: 386px; text-align: center; margin: 0 auto 30px auto;}

 

but where is this png in the installation folders? It doesn't exist for me in the  UI for ASP.NET MVC Q2 2016  or Kendo UI Professional Q2 2016   directories so i'm just wasting time trying to hunt this down.

Can you point me in the right direction for these controls to render appropriately? 

Thanks

Dimiter Madjarov
Telerik team
 answered on 27 Jun 2016
1 answer
322 views

Was trying to create a virtualized dropdown list that uses client side paging.  This is options object used to create the dropdown:

{
      dataSource: {
        transport: {
          read: function(options) {
            var items = dataService.getItemData();
            options.success(items.d);
          },
          schema: {
            data: "d", //root element that contains data array
            total: "d.length" //total amount of records
          },
          serverPaging: false,
        },
        pageSize: 80,
      },
      dataTextField: "itemName",
      dataValueField: "id",
      virtual: {
        itemHeight: 26,
        valueMapper: function(options) {
                    console.log('in value mapper function');
          options.success(-1);
        }
      },
      height: 290
    }

dataService.getItemData() is an angular service that returns the data which is an object:

{
      d: arrayOfItemObjects
}

The issue i'm having is that while the list renders it only has the first 80 items in it and as i scroll it never gets any additional items even though it has the entire list client side.  I'm not sure what i'm doing wrong...any help is appreciated.

 

Georgi Krustev
Telerik team
 answered on 27 Jun 2016
2 answers
259 views

From what I gathered from googling my issue. The scheduler should automatically delete a series exception when updating the series itself. Currently my scheduler is not removing any exception.  Am I missing an option to remove the exception? I want to note I am not using 'batch' for my transport. Any advise would be appreciated.

 

Thanks,

 --Brett

 

Brett
Top achievements
Rank 1
 answered on 24 Jun 2016
7 answers
296 views

Hi,

Kendo.MVC nuget (MVC 6 RC1 Final) depends on the DNX run time. It is not supporting RC2. Is there any approximate time line to support MVC RC2.

 

-thank you

Brian
Top achievements
Rank 1
 answered on 24 Jun 2016
2 answers
236 views

Hello,

I am new to Kendo UI and I am having some trouble trying to create a window dialog with datepickers in it.

The first time I load it, it looks great.

Then I close it, open it again and the datepickers don't seem to load properly.

Can you help me or point me in the right direction?

Here's my code:

$("#button").click(function (e)
{
    e.preventDefault();
    var kendoWindow = $("<div />").kendoWindow(
    {
        open: function ()
        {
            var picker = $("#project_end_datepicker").data("kendoDatePicker");
            if (picker == null)
            {
                $("#project_end_datepicker").kendoDatePicker(
                {
                    animation: false
                });
 
                $("#project_start_datepicker").kendoDatePicker(
                {
                    animation: false
                });
            }
        },
        title: "Nieuw project",
        resizable: false,
        iframe: true,
        modal: true
    });
                  
    kendoWindow.data("kendoWindow")
    .content($("#new-project-dialog").html())
    .center().open();
});

 

Marc
Top achievements
Rank 1
 answered on 24 Jun 2016
1 answer
559 views

Hi,

I'm developing a large industry SPA portal on AngularJS and faced several issues with Grid filtering:

1. Column template supports AngularJS directives, but column filter "itemTemplate" isn't:

                   template: "<the-column value='#= TheColumnValue #'></the-column>",
                   filterable:
                    {
                        multi: true,
                        itemTemplate: function(e) {

                            // some conditions here
                            return "<the-column-filter></the-column-filter>";
                        }
                    }

In this code snippet GridColumn's template field works as expected (directive the-column is recognized), but the-column-filter directive, referenced in filter itemTemplate is not recognized and just ignored.

Even worse is that if I started providing filterable option, localization in this specific column resets to default language (en-US):

http://take.ms/Byorr

2. Another localization problem reproduced with "Is null" and "Is not null" operators. As opposed to other operators, these two have no translations to RU:

http://take.ms/zj2rV

But when I tried to provide my own translations for them, other criterias just disappeared:

http://take.ms/Q6wL2

Please, give me a hint to workaround these problems or fix them if possible.

Thank you

Alex Hajigeorgieva
Telerik team
 answered on 24 Jun 2016
3 answers
2.1K+ views
Hi
could you provide a sample code to debug javascript code ?
Thanks
Alexander Valchev
Telerik team
 answered on 24 Jun 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
Application
Map
Drag and Drop
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
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?