Telerik Forums
Kendo UI for jQuery Forum
0 answers
97 views
Hi All,

I am trying to use pie chart in mobile layout having proper header and footer with navbar.

I just want to use pie chart in between header and footer. But not able to do that.

Can anyone help me for the same.

thanks,
prashant
Prashant
Top achievements
Rank 1
 asked on 23 Apr 2012
2 answers
216 views

Hi,

I am trying to implement Kendo UI Treeview control with ASP.Net TreeView control. But its not working as it should be. Please suggest me your views.

What I have done till now as per below.
(1)    As per Kendo UI, Its working fine.

    <ul id="treeview">

        <li>Item 1
            
<ul>
                
<li>Item 1.1</li>
                
<li>Item 1.1</li>

                <li>Item 1.1</li>

                <li>Item 1.1</li>

            </ul>

        </li>

        <li>Item 2
            
<ul>
                <li>Item 2.1</li>
                
<li>Item 2.2</li>
                
<li>Item 2.3</li>
                
<li>Item 2.4</li>
                
<li>Item 2.5</li>
            </ul> 
            </li> 
    </ul>

 

JQuery Code:

       $("#treeview").kendoTreeView({

                dragAndDrop: true

            });

 

 

 

(2)    I am trying to implement the same with ASP.Net Treeview control but it’s not working.  Please check the below code.

        <asp:TreeView ID="ASPTreeView" runat="server" ImageSet="BulletedList">
            
<Nodes>
                
<asp:TreeNode Text="Table of Contents"></asp:TreeNode>
                    
<asp:TreeNode Text="Chapter One">
                    
<asp:TreeNode Text="Section 1.0">

                    <asp:TreeNode Text="Topic 1.0.1" />
                    
<asp:TreeNode Text="Topic 1.0.2" />
                    
<asp:TreeNode Text="Topic 1.0.3" />
                    
</asp:TreeNode>
                    
<asp:TreeNode Text="Section 1.1">
                    
<asp:TreeNode Text="Topic 1.1.1" />

                            <asp:TreeNode Text="Topic 1.1.2" />

                            <asp:TreeNode Text="Topic 1.1.3" />

                            <asp:TreeNode Text="Topic 1.1.4" />

                        </asp:TreeNode>

                    </asp:TreeNode>

                    <asp:TreeNode Text="Chapter Two">

                        <asp:TreeNode Text="Section 2.0">

                            <asp:TreeNode Text="Topic 2.0.1">

                                <asp:TreeNode Text="Subtopic 1" />

                                <asp:TreeNode Text="Subtopic 2" />

                            </asp:TreeNode>

                            <asp:TreeNode Text="Topic 2.0.2" />

                        </asp:TreeNode>

                    </asp:TreeNode>

                </Nodes>

            </asp:TreeView>

 JQuery Code: 
       $("#ASPTreeView ").kendoTreeView({
                dragAndDrop: true
            });

Thanks. 

Rino
Top achievements
Rank 1
 answered on 22 Apr 2012
15 answers
348 views
I want to create a datasource that reads a JSON file, and binds one of the fields to a <p>XXX<p/> value in HTML.

I know how to link a variable to a text value using jQuery ... $("#divName").text(variable)

but I don't know how to extract the data from the datasource and use it.

Can someone give me a quick feel for how this would work?

thx. 
Farhan
Top achievements
Rank 1
 answered on 22 Apr 2012
2 answers
392 views
Hi,

Any ideas what I am doing wrong in second #chart2 setup as it does not render correctly (#chart1 does) for me?

works <div id="chart"></div>
doesnt? <div id="chart2"></div>

$(document).ready(function() {
    
    var datatestfield = [ { no: 1, a: 2, b: '3' },
                     { no: 5, a: 3, b: '4' },
                     { no: 40, a: 4, b: '5' }
                   ];
        
    $("#chart").kendoChart({
    title: {
         text: "Kendo Chart Example"
    },
    dataSource: { data: datatestfield},            
    series: [
        { name: "Example Series", field : "a" }
    ]
        });
    
    $("#chart2").kendoChart({
    title: {
         text: "Kendo Chart Example"
    },
    series: [
        { name: "Example Series", field : "a", data: datatestfield }
    ]
        });

});

Thanks
Matt
Matt
Top achievements
Rank 1
 answered on 22 Apr 2012
2 answers
159 views
I am using both Kendo tabstrip(with 3 Tabs) and Kendo Window.
In second Tabstrip I can open a Kendo window
Once the Kendo window is opened and if we switch from one tab to another Kendo window doesn't close.
How can this scenario be resolved???

     waiting for your reply.
     Thanks in Advance
Carlos
Top achievements
Rank 1
 answered on 21 Apr 2012
7 answers
387 views
I want to create a stacked bar chart with no spacing between the bars. It doesn't appear that spacing has any effect on this.

Here is my chart definition:

                      {
                        dataSource:
                          {
                            transport:
                              {
                                read:
                                  {
                                    url: "JSONComfort.aspx?t=" + SessionToken + "&c=" + ClientID + "&s=" + Space,
                                    dataType: "json"
                                  }
                              },
                            sort:
                              {
                                field: "Temperature",
                                dir: "asc"
                              }
                          },
                        title:
                          {
                            text: "Comfort Feedback"
                          },
                        valueAxis:
                          {
                            min: 0,
                            max: 100
                          },
                        chartArea:
                          {
                            background: "#E9E9EB"
                          },
                        seriesDefaults:
                          {
                            spacing: 0,
                            stack: true
                          },
                        series:
                          [
                            {
                              field: "Cold",
                              name: "Cold",
                              color: "blue"
                            },
                            {
                              field: "Cool",
                              name: "Cool",
                              color: "lightblue"
                            },
                            {
                              field: "Comfortable",
                              name: "Comfortable",
                              color: "green"
                            },
                            {
                              field: "Warm",
                              name: "Warm",
                              color: "orange"
                            },
                            {
                              field: "Hot",
                              name: "Hot",
                              color: "red"
                            }
                          ],
                        categoryAxis:
                            {
                              field: "Temperature",
                              labels:
                                {
                                  step: 2
                                }
                            }
                      }

Thanks/Anker
Iliana Dyankova
Telerik team
 answered on 21 Apr 2012
6 answers
421 views
I have a treeview attached to html construction <ul><li>..., this run ok, but I need change to remote datasource for change data dinamically, the problem is when I generated the JSON this not work. I need some example with to resolve this problem... (the kendo treeview example page not show that -  treeview with remote datasource)

Please help me !!!

Thanks in advance
Alex Gyoshev
Telerik team
 answered on 21 Apr 2012
7 answers
1.0K+ views
Ok, for the sake of argument, pretend I'm a really thick C++ programmer.

I've made my beautiful UI in HTML5 and KendoUI, but I want to bind a JavaScript function to a checkbox, so when the state of the checkbox changes, my Javascript code is called.  
Currently, I've got this:
<div data-role="view" data-layout="overview-layout" id="tuxedo-home" data-title="Home">   
    <ul data-role="listview" data-style="inset" data-type="group">
        <li>
            <ul>
                <li>Option 1 <input type="checkbox" data-role="switch" checked></li>
                <li>Option 2 <input id="suspendCard" type="checkbox" data-role="switch"></li>
                <li><a href="overview-cities">Advanced</a></li>
            </ul>
        </li>
    </ul>
</div>

And then this:
    <script>
        window.kendoMobileApplication = new kendo.mobile.Application(document.body);
        function notify() { alert("clicked"); }
        $("#suspendCard").on("click", notify);
    </script>

But nothing happens.
Petyo
Telerik team
 answered on 21 Apr 2012
4 answers
358 views
Hi,

Can someone please tell me if they have used local storage successfully across mobile devices (IOS, Android mainly) using phonegap as the eventual release mechanism?

http://dev.w3.org/html5/webstorage/

And possibly any articles or pointers for me before I dive into it.

Many Thanks
Matt
Noli
Top achievements
Rank 1
 answered on 21 Apr 2012
0 answers
220 views
I want to open a window within an iframe that because it needs its own print.css. 

I don't know why, but I do not think it is actually using the iframe as it always changes the css in the main window. Am I just doing something wrong?

I am trying to use the following code:
function ShowKendoIFrameWindow(element, data) {
    var title = $(element).attr("WindowCaption");
    var url = $(element).attr("WindowURL");
    $("<div />").kendoWindow({
        iframe: true,
        animation: {
            open: {
                effects: { fadeIn: {} },
                duration: 200,
                show: true
            },
            close: {
                effects: { fadeOut: {} },
                duration: 200,
                hide: true
            }
        },
        content: { type: "POST", url: url, data: data },
        title: title,
        draggable: true,
        modal: true,
        resizable: false,
        scrollable: false,
        refresh: function () { this.center(); }
    }).data("kendoWindow").center().open();
    return false;
}
Joshua
Top achievements
Rank 1
 asked on 20 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
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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?