Telerik Forums
Kendo UI for jQuery Forum
0 answers
125 views
Below Pie Chart i trying do with Custom data. But its not Showing

var d= jQuery.parseJSON('[{"XAXIS":"HERMES","COUNT":"51"},{"XAXIS":"J R T CUMBUM","COUNT":"69"},{"XAXIS":"Krishnamoorthy","COUNT":"70"},{"XAXIS":"RED BUS","COUNT":"150"}]');  
  $("#ChartDiv").kendoChart({
        legend: {
            visible:true,
            position:"right"
        },
        seriesDefault: {
              type: "pie"
       },
       dataSource:{data:d},
       series: [{                      
                field:"COUNT",
                type: "pie",
                categoryField:"XAXIS",
                labels:{
                  visible: true,                   
                  template:"${value}"
                }
              }],
      tooltip:
      {
        visible:true,      
        template:"<div style='white-space: normal; max-width: 120px;'>${category} - ${value}</div>"
      },
      categoryAxis:{field: "XAXIS"}
  });

<div id="ChartDiv" style="width: 900px; height: 500px; display: inline-block;">
</div>
Anand
Top achievements
Rank 1
 asked on 18 Apr 2012
1 answer
256 views
In odata __next is specified to let the datasource know how to request more results.  I'm using hand rolled json and my listview isn't showing the loadmore button.  What do I need to do to let it know it should request the same URL but increment the page number?

var ds = new kendo.data.DataSource({
  transport: {
    read: {
      url: "http://localhost:3000/api/anagram",
      dataType: "jsonp",
      data: {
        format: 'html'
      }
    },
    parameterMap: function(options) {
      if (options.filter && options.filter.filters.length > 0)
        return {
          rack: options.filter.filters[0].value.replace(/\?/g,'-'),
          format: 'html',
          limit: options.pageSize,
          page: options.page
        };
      return options;
    }
  },
  group: 'length',
  pageSize: 10,
  page: 1,
  sort: {field: 'w', dir: 'asc'},
  filter: { field: 'rack', operator: 'eq', value: 'z' },
  serverFiltering: true,
  serverPaging: true,
  serverGrouping: true,
  serverSorting: true,
  error: function(e){
    alert(e);
    console.log(e);
  },
  change: function(e) {
    console.log('Data changed: ' + this.total());
  },
  schema: {
    groups: 'groups',
    total: 'count',
    model: {
      fields: {
        length: {
          type: 'number'
        },
        w: {
          type: 'string'
        },
        f: {
          type: 'string'
        }
      }
    }
  }
});
Georgi Krustev
Telerik team
 answered on 18 Apr 2012
2 answers
210 views
Hi,
My json rest service omits fields when the values is null and looks like GRID can't handle such datasources.

Number is not null
{
{
    "id":"0422842A222780",
    "number":"0422842A222780"
  }
Number is null
{
    "id":"0422842A222780"
  }
model:{
    id:"id",
    fields:{
        id:{type:"string", editable:false},
        number:{type:"string", editable:false, nullable:true},
    }
}
As a result I see empty grid. When I remove this field from displaying all works fine Is there any solution?
Yaroslav
Top achievements
Rank 1
 answered on 18 Apr 2012
1 answer
131 views
I am wondering if telerik is planning on developing any kind of abrstraction layer for accessing indexed db architecture.

Quite annoyingly the W3C has killed WebSQL and indexed db is such a new standard that every browser that does support it (currently only 2 that I am aware of Chrom and FireFox) have there own way of managing the db and from what I am seeing IE 10- will have alltogetehr a different way to manage its indexed db implimentation.

This has long been a sore spot for me with open source development that standards are often not only times implimented accross differently accross platforms, but from version to version you can have entire subsets of functionality be cycled out (especially on new and rapidly evolving items like indexed db..  It make building stable applications that utilize these technologies exceedingly difficult.


I have not only a desire but a genuine need to see data storage for certain application fucntions occur on the client side but I cant do that without some kind of stability in the evolving landscape of the applications platform. I DEFINATELY dont desire to develope three seperate constantly shifting approaches to implimenting a client side data storage solution.  Does Teelrik have any plans to impliment some kind of client side data storage abstraction layer that woudl allow you to utilize client side storage like indexed db with its controls sets?

Georgi Krustev
Telerik team
 answered on 18 Apr 2012
1 answer
94 views
I am getting the following error when binding:

SCRIPT5007: Unable to get value of the property 'length': object is null or undefined
kendo.custom.min.js, line 12 character 1304



When I call this line:
kendo.bind($("#content"), viewModel);

Any ideas?
Petyo
Telerik team
 answered on 18 Apr 2012
1 answer
95 views
Hey there,

While working on a CRUD demo using OpenAccess as Odata producer and KendoUI I'm facing with an issue with the command columns when virtual scrolling is enabled.
Virtual scrolling is working as expected in Firefox without the command columns: http://openaccess.spirit.de/.

Once the comand columns are enabled http://openaccess.spirit.de/?ReadWrite=1 it's no longer possible to use the scroll bar. 

My guess is that the larger row height is causing this, but I haven't found time yet to dig deeper into it.

Thanks,

Rainer
Rosen
Telerik team
 answered on 18 Apr 2012
0 answers
98 views
Hi There,

Is there a way to use the mobile icons/images outside of a button (or with a tab strip, or listview etc.), so for example to display the search icon alone in a div using something like:

<div data-role="icon" data-icon="search"></div>

I'm trying to use the search icon, next to a search input tag for searches in my prototype.

Thanks,
Rob
Robert
Top achievements
Rank 1
 asked on 18 Apr 2012
9 answers
466 views
Dear Community,

We are evaluating KendoUI for our needs and here is one of the problem we have stuck on.

Problem Statement

We are trying to achieve almost similar to what is shown in demo http://demos.kendoui.com/web/grid/editing-custom.html.

Here is what we are doing.

We have a data source to fill the combo-box which will appear within the grid. It is basically a list of cities.
var cityDataSource = [{ CityID: 1, CityName: 'Delhi' }, { CityID: 2, CityName: 'Noida'}]

We also have main data source which contains lot more columns. Here you will observe that we have CityID as one of the fields.
var viewModel = kendo.observable({
            gridSource: [
                            { FirstName: "Shiva", LastName: "Wahi", CityID: 2, Title: "Module Lead", BirthDate: "10/29/1984", Age: 27 },
                            { FirstName: "Priya", LastName: "Srivastava", CityID: 1, Title: "Tech Lead", BirthDate: "08/19/1982", Age: 30 }
                        ]
        });

In document.Ready function, we are preparing our data source (Please note CityName in fields section).
$(document).ready(function () {
            var dataSource = new kendo.data.DataSource({
                pageSize: 30,
                data: viewModel.gridSource,
                autoSync: true,
                schema: {
                    model: {
                        fields: {
                            FirstName: { type: "string" },
                            LastName: { type: "string" },
                            CityName: "CityName",
                            Title: { type: "string" },
                            BirthDate: { type: "date" },
                            Age: { type: "number" }
                        }
                    }
                }
            });

There is a div tag on page called grid.
<div id="grid" />

Creating grid (Please note editor:cityDropDownEditor):
$("#grid").kendoGrid({
                dataSource: dataSource,
                pageable: true,
                editable: true,
                height: 260,
                toolbar: ["create"],
                columns: [
                            {
                                field: "FirstName",
                                title: "First Name",
                                width: 100
                            },
                            {
                                field: "LastName",
                                title: "Last Name",
                                width: 100
                            },
                            {
                                field: "CityName",
                                title: "City",
                                width: 100,
                                editor: cityDropDownEditor
                            },
                            {
                                field: "Title",
                                width: 75
                            },
                            {
                                field: "BirthDate",
                                title: "Birth Date",
                                width: 75,
                                template: '#= kendo.toString(BirthDate,"MM/dd/yyyy") #'
                            },
                            {
                                field: "Age",
                                width: 50
                            }
                         ]
            });
        });

Here is the cityDropDownEditor function:
function cityDropDownEditor(container, options) {
           $('<input data-text-field="CityName" data-value-field="CityName" data-bind="value:' + options.field + '"/>')
                       .appendTo(container)
                       .kendoDropDownList({
                           autoBind: false,
                           dataSource: cityDataSource
                       });
                   }


What do we want?

We want that when we click on the City column of the grid, dropdown should open up and when user changes the selection, it must reflect on the UI and as well as on my observable collection called viewModel.

But this is not happening at present. Our scenario is bit different from what is available in demo as there they are using CategoryName to bind both value and text fields of combo-box.

Please help as this is an urgent request and let me know if you need more details around this.

Regards,
Shiva




Shiva
Top achievements
Rank 1
 answered on 18 Apr 2012
3 answers
199 views
I read describe about transition on your document about page transition. I want to transition some page only content (header not transition and no footer) from top to bottom, I used data-transition="overlay:down" but when is action looks same slide down. 

Do you have example for explain how to different with 2 transitions?
Petyo
Telerik team
 answered on 18 Apr 2012
0 answers
150 views
I am a new KendoUI/Jquery/Javascript developer and I am having the following issue. 
The ajax call is working ($.ajax(GetAirportList)), so I know the webservice is ok.
When the airportListDataSource is invoked, no data is loaded and the Javascript console (in Chrome) is 
giving me the message "Uncaught RangeError: Maximum call stack size exceeded"

Please help!
 
var airportList = {};

        var GetAirportList = {
            type: "POST",
            url: "OWLV2be.asmx/GetAirportList",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (msg) {
                airportList = msg;
            }
        };

        var airportListDataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    type: "POST",
                    url: "OWLV2be.asmx/GetAirportList",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                }
            }
        });

        $(document).ready(function () {
            $.ajax(GetAirportList);

            $("#airpAirport").kendoDropDownList( {
                dataTextField: "airportName",
                dataValueField: "airportCode",
                dataSource:  airportListDataSource
            });
George
Top achievements
Rank 1
 asked on 18 Apr 2012
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?