Telerik Forums
Kendo UI for jQuery Forum
2 answers
142 views
Is there an easy way to make the toolbar buttons bigger for tablet screens? 

Thanks
Michael H
Top achievements
Rank 2
 answered on 27 Sep 2013
1 answer
126 views
Not sure this is the right forum for this but here goes. I have a mobile app that gets an image via the camera. It puts the contents of the image into the variable 'imageData' I then use jquery:
$('#smallImage').attr('src', "data:image/jpeg;base64," + imageData);
into the image:
<img id="smallImage" width="100%" data-bind="attr: { src: Robot.Picture }">
that works fine as far as display goes. It does not however add it to "Robot"

I am using jaydata to save the data to a local database and the model has a lot of fields (all text inputs) and they all data-bind fine. 

Any ideas?
Richard
Top achievements
Rank 1
 answered on 27 Sep 2013
2 answers
173 views
Hi
I'm trying to set the CategoryMemberName in MVC using the chart builder - ChartSeriesFactory. I see in the API docs there is an overload of column that is supposed to take 4 string arguments, yet I am getting compilation errors that no overload of column takes 4 strings. How can I set the CategoryField on my series to a string using MVC helper?

from the api docs

Column(System.String,System.String,System.String,System.String)
Defines bound bar series.
Parameters
valueMemberName System.String  The name of the value member.
colorMemberName System.String  The name of the color member.
categoryMemberName System.String The name of the category member.
noteTextMemberName System.String The name of the note text memberFrom <http://docs.kendoui.com/api/wrappers/aspnet-mvc/Kendo.Mvc.UI.Fluent/ChartSeriesFactory>

Dan
Top achievements
Rank 1
 answered on 27 Sep 2013
4 answers
456 views
Hello,

I have a problem to work the serverGrouping in my datasource and the kendo grid (download my project). 

this is my json result request : 

{"data":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"count":1,"groups":[{"field":"toto","value":"2","items":[{"toto":2,"name":"la valeur de i0"},{"toto":2,"name":"la valeur de i1"}],"hasSubgroups":false,"aggragates":{}}]}


and this my javascript : 

var source = new kendo.data.DataSource({
            type: "jsonp",
            transport: {
                read: "Home/GetResult"
            },
            schema: {
                groups: "groups",
                total: "count",
                model: {
                    fields: {
                        toto: { type: "number" },
                        name: { type: "string" }
                    }
                },
                data: "result"
            },
            serverGrouping: true
        });
 
        $(document).ready(function () {
            $("#grid").kendoGrid({
                dataSource: source,
                height: 250,
                groupable: true,
                columns: [{
                    field: "toto",
                    title: "toto",
                    width: 100
                },
                {
                    field: "name",
                    title: "name",
                    width: 100
                }
            ]
            });
        });


but I have an error => SCRIPT5007: Unable to get value of the property 'length': object is null or undefined 

what's wrong with my kendo grid or my configuration ?

Thank you
Lakshmi
Top achievements
Rank 1
 answered on 27 Sep 2013
1 answer
153 views
My Exemple: http://jsfiddle.net/rhvieira/FkP8z/

To show the error you need follow steps.
 1- Click in Edit button
2 - click in the pencil in the first column
3 - type a value into html control and close the window.
4 - click in update button 

Now occurs the error, in this step I try update the model, but when i did it the visual has been changed but the internal data is not marked as changed, then when 
I send all informations to the server the record is not updated.

When I do the same steps in new record all works are done or when change the first and other column and save this work too.

Best Regards,
Vieira



Alexander Valchev
Telerik team
 answered on 27 Sep 2013
3 answers
109 views
I am using dataSource and kendo template to populate a list of details from a api. Below code explain the view and viewmodel to display the data.
View:

<div data-role="view" id="myProjectView" data-title="Products List" data-init="myProjectListViewTemplatesInit">
        <header data-role="header">
            <div data-role="navbar">
                <span data-role="view-title"></span>
                <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
            </div>
        </header>
        <ul id="myProjectCustomListView"></ul>
    </div>
    <script id="myProjectCustomListViewTemplate" type="text/x-kendo-template">
        <h3 class="item-title">Project Name: ${ProjectName}</h3>
        <p class="item-info">Created Date: ${CreateDate}</p>
    </script>
    <script src="scripts/jquery.min.js"></script>
    <script src="scripts/kendo.mobile.min.js"></script>
    <script src="scripts/viewModel/myProjectsViewModel.js"></script>
    <script>var app = new kendo.mobile.Application(document.body);</script>
viewModel - myProjectsViewModel.js



function myProjectListViewTemplatesInit(){
     var dataSource = new kendo.data.DataSource({
         transport: {
             read: {
                 url: "http://127.0.0.1/api/getProjectList",
                  
                 dataType: "json",
             }
         },
     });
      
     $("#myProjectCustomListView").kendoMobileListView({
         dataSource: dataSource,
         template: $("#myProjectCustomListViewTemplate").html(),
     });
};
The above api will return JSON data like below

[{"ProjectId":2,"ProjectCode":"TestProject","ProjectName":"TestProject","Description":"","CreateDate":"2013-09-13T00:00:00","Owner":"TestProject","StartDate":"2013-09-13T00:00:00","EndDate":"2013-09-13T00:00:00","StatusId":4,"IsActive":true,"ERPCompany":"","TemplateId":0,"DocumentTemplateID":0,"DocMetadataID":null,"IsDeleted":"","ERPCurrency":"$","ProjectMode":"L","DocumentListID":"","RowNum":3,"pagecount-1":null},{"ProjectId":1,"ProjectCode":"TemplateProject","ProjectName":"TemplateProject","Description":"","CreateDate":"2013-09-13T00:00:00","Owner":"Aurigo","StartDate":"2013-09-13T00:00:00","EndDate":"2013-09-13T00:00:00","StatusId":4,"IsActive":true,"ERPCompany":"","TemplateId":0,"DocumentTemplateID":0,"DocMetadataID":null,"IsDeleted":"","ERPCurrency":"$","ProjectMode":"L","DocumentListID":"","RowNum":4,"pagecount-1":null}]
I want to format the date column(CreateDate: 2013-09-13T00:00:00) like 13/09/2013. Help me in this.
Petyo
Telerik team
 answered on 27 Sep 2013
1 answer
201 views
Hello,
   i'm using a TabStrip in which every Tab contains an iframe with a web page with JSON data loaded via AJAX. Inside of the frame i do include plenty of JS  and CSS files.

I would like to dinamically change the content of the tab, but i would like to know if it's safe to simply use the remove() call on the Tab or if i need some special actions to make sure to clean everything?

Thanks in advantage.
Kiril Nikolov
Telerik team
 answered on 27 Sep 2013
2 answers
112 views
Hello,

Have done an install of the kendoui.aspnetmvc.2013.2.918.trial.msi package.

Getting a YSOD on any chart with a MajorGridLines(lines => lines.Visible(false)) in it, running the supplied demo app causes issue also, all other dataviz control work fine.

Have reinstalled and also restarted machine, no luck.

Running Windows 8.0, VS 2012.

Is this an issue with the trial distribution?

Many Thanks
Hristo Germanov
Telerik team
 answered on 27 Sep 2013
7 answers
957 views
I'm trying to show the "kendo.ui.progress" or just an image over the div before the chart loads the data. I have up too 10 charts on my dashboard at one time so there is a lag between each of them loading and it looks werid with just a blank graph. I'm getting the data from a webservice and I've tried adding an loading-image class to the charts div but nothing I have tried has worked. Can anyone help me out.

this is an example of one of my charts:
var dsOrderHis = null;
 
 
$(document).ready(function()
{
     args.startDate = startDate; 
     args.endDate = endDate;
     args.filterBy = filterBy;
     args.userIds = userIds;
     dsOrderHis = new kendo.data.DataSource(
        { transport: { read: { cache: false,
          url: appUrl + "/Services/ArgosyDashBoardService.svc/orderHistory",
          dataType: "json", contentType: "application/json; charset=utf-8", type: "POST" },
      parameterMap: function(options, operation) { return JSON.stringify(args) } },
     schema: { data: "OrderHistoryResult" },
    change: function() {
        var dataCount = $("#LoadOrderHistoryDiv").data("kendoChart").dataSource.view().length;
           if (dataCount <= 0) { setTimeout("LoadOrderHistoryHideSvg();", 400) }
            else
        $("#LoadOrderHistoryDiv svg").each(function() { $(this).fadeIn() });
        setTimeout("LoadOrderHistoryAddIcon();", 100) } }
});
$('#LoadOrderHistoryDiv').kendoChart({
    theme: currentTheme,
    title: { text: 'Order: History' },
    dataSource: dsOrderHis, legend: { position: "bottom" },
    series: [{ type: "line", field: "YAxis"}],
    categoryAxis: { field: "XAxisLabel", labels: { rotation: 42} },
    tooltip: { visible: true, template: " #= value # orders placed in #= category # .", padding: 9 },
 legend: { visible: false} })
});
 
//used for data changes
function LoadOrderHistory()
{
    var chart = $("#LoadOrderHistoryDiv").data("kendoChart");
    args.startDate = startDate;
    args.endDate = endDate;
    args.filterBy = filterBy;
    args.userIds = userIds;
    kendo.ui.progress($("#LoadOrderHistoryDiv"), true);
    chart.dataSource.read()
}

Daniel
Telerik team
 answered on 27 Sep 2013
3 answers
194 views
Having trouble getting the sytax right to call a controller and populate a dropdownlist usising a DataSource. getting error:0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'Read'
HTML:
 <div id="divyear">
        <select id="cboYear">
        </select>

    </div>

  <script>
        $(document).ready(function () {
            var yearsSource = new kendo.data.DataSource()
            .Read()
            .Action("getYears", "Glass");

            $("#cboYear").kendoDropDownList({
                AutoBind: false,
                BindTo: Model.YearsList,
                DataValueField: "Value",
                DataTextField: "Text",
                Change: yearChange,
                DataSource: yearsSource,
                ServerFiltering: true
             })

         });
...
Controller:
      [HttpGet]
        public JsonResult getYears()
        {
            GlassModel gm = new GlassModel();
    //gm.YearsList is a SelectList
            return Json(gm.YearsList, JsonRequestBehavior.AllowGet);
        }
Thanks
Bill
Top achievements
Rank 1
 answered on 27 Sep 2013
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
Drag and Drop
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
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
Licensing
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?