Telerik Forums
Kendo UI for jQuery Forum
4 answers
495 views
Hi,

Do you have a code sample that demonstrates how to bind a grid to a remote webservice (normal SOAP webservice)

http://demos.kendoui.com/web/grid/remote-data.html 

Thanks!
Richard
Top achievements
Rank 1
 answered on 27 Apr 2012
0 answers
70 views
Hello,

I am currently attempting to implement a kendo grid with server grouping and server paging enabled.  The pageSize is set to 10.  And without grouping turned on when I pass the grid data, it returns 10 rows of data as expected per page.  However, when I enable server grouping, and I pass the necessary data to the grid, it returns 10 groups and ALL the data within each row which is way more than 10 data rows.  Is it possible to have the kendo grid only return 10 data rows when grouping is enabled and NOT 10 groups of data?

Thanks,
Susan
Susan
Top achievements
Rank 1
 asked on 27 Apr 2012
0 answers
124 views

Using KendoUI Line graph, I have multiple series of data and I'd like to show in the tooltip additional data pertaining to a single series of data in the tool tip. In this case I want to show the survey count in the tooltip for each product. I also have a market segment that represents the average of all products in the database in which I don't want to show the data. So for Market Segment I don't want to show the Survey Count.

How do I go about doing this?

This link is to my failed jsFiddle Project: http://jsfiddle.net/rodneyhickman/uMTnh/9/

In the jsFiddle project above I get the survey count for the first product they way I want it for product 2, product 3, etc. For the Averages (Market Segment) I don't want to show a survey count. 

My markup:

<div  >
   
<div id='chart'  ></div>
</div>

​ My JavaScript:

jQuery(function() {

var myData = [
   
{
       
"product1": 86.61,
       
"product2": 85.23,
       
"marketsegment": 80.17,
       
"date": "Mar 2011",
       
"surveyCountProduct1": "2",
       
"surveyCountProduct2": "4"
   
},
   
{
       
"product1": 87.61,
       
"product2": 84.23,
       
"marketsegment": 81.12,
       
"date": "Mar 2011",
       
"surveyCountProduct1": "2",
       
"surveyCountProduct2": "3"
   
},
   
{
       
"product1": 87.91,
       
"product2": 85.53,
       
"marketsegment": 81.57,
       
"date": "Mar 2011",
       
"surveyCountProduct1": "2",
       
"surveyCountProduct2": "4"
   
},
   
{
       
"product1": 88.22,
       
"product2": 85.23,
       
"marketsegment": 81.90,
       
"date": "Mar 2011",
       
"surveyCountProduct1": "2",
       
"surveyCountProduct2": "4"
   
},
   
{
       
"product1": 88.61,
       
"product2": 86.13,
       
"marketsegment": 79.17,
       
"date": "Mar 2011",
       
"surveyCountProduct1": "2",
       
"surveyCountProduct2": "5"
   
}
];

jQuery
('#chart').kendoChart({
    title
: {
        text
: "Overall Score out of 100",
        align
: "left",
        font
: "18px Arial, Verdana, sans-serif",
        color
: "#444"
   
},
    seriesDefaults
: {
        type
: "line",
        missingValues
: "interpolate"
   
},
    legend
: {
        position
: "bottom"
   
},
    tooltip
: {
        visible
: true,
       
template: "<b>#= series.name #</b><br/>#= dataItem.date #<br/>#= value #<br/>Survey Count= #= dataItem.surveyCountProduct1 #"
   
},
    valueAxis
: {
        min
: 75,
        max
: 95,
        plotBands
: [{
           
from: 75,
            to
: 80,
            color
: "#f5f5f5"
       
},
       
{
           
from: 85,
            to
: 90,
            color
: "#f5f5f5"
       
},
       
{
           
from: 95,
            to
: 100,
            color
: "#f5f5f5"
       
}]
   
},
    dataSource
: {
        data
: myData
   
},
    series
: [
       
{
            name
: "Some Product 1",
            color
: "#004990",
            width
: 1,
            field
: "product1",
            markers
: {
                background
: "#004990"
           
}
       
},
       
{
            name
: "Some Product 2",
            color
: "#8a7967",
            width
: 1,
            field
: "product2",
            markers
: {
                background
: "#8a7967"
           
}
       
},
       
{
            name
: " Market Segment Average",
            color
: "#da7633",
            width
: 1,
            field
: "marketsegment",
            markers
: {
                background
: "#da7633"
           
}
         
}],
         categoryAxis
: {
         labels
: {
            rotation
: -45,
            step
: 1,
            skip
: 0
       
},
        categories
: ["Mar", "Apr", "May", "Jun", "Jul"]
       
}
   
});
});​

Any help would be appreciated.

Rodney
Top achievements
Rank 2
 asked on 27 Apr 2012
2 answers
90 views
Consider a tree built by drag and drop.  Dropped nodes are added to the tree.  Then the user uses tree drag and drop to rearrange and/or change level of the tree nodes.

How would I obtain the 'data' the that the treeview is currently presenting ?

Thanks,
Richard
King Wilder
Top achievements
Rank 2
 answered on 27 Apr 2012
1 answer
115 views
iam trying to insert the textbox data into listbox on button click but the foolowing code isn't adding data into listbox


$(document).ready(

function () {

$("#click").click(function () {

 var val = document.getElementById('textboxs').value;

 var View = $("#listView").data("kendoListView");

 View.add(val);

});

});






<

td style="width: 141px">

 <ul id="listView" />

 </td>

 </tr>

 <td>

 <input type="text" id="textboxs" name="textname" />

 <input type="button" id="click" value="Add" />

  </td>

 

rlapao
Top achievements
Rank 1
 answered on 27 Apr 2012
0 answers
81 views
Greetings to all
 I was wondering if I could design a template for the labels of the series in my chart, for example how I attached below.


template: "<center><b><font size=2>#= dataItem.Title #</font></b></br><b>Name: </b> #= dataItem.Name #</br><b>Count:</b>#= dataItem.Count #</center>"

I did a test but the conten of my label appears outside of my series


What other options could be used?
Any ideas?


Thanks for your help

M.
Monique
Top achievements
Rank 1
 asked on 27 Apr 2012
1 answer
102 views
Hello,
I've been playing around with the new MVVM framework and ran into some interesting behavior when a Grid is bound to a ViewModel property and that view model property is changes from a source outside the grid.  Basically, I have a ViewModel which contains an array of people.  There are input fields that let you add new people and the added people are displayed using a Grid.  Initially this works fine, you are able to add new entries and even delete entries using the in-built grid "destroy" functionality.  The problem arises when you try to populate the people array from an external source (for example an xhr request).  The people array is indeed updated but from that point on, the Grid no longer updates when new people are added.  I put togather a simple fiddle (Weird Grid Fiddle) to illustrate.  I included a simple kendo template below to grid to show that the underlying viewModel (people array) is still being updated even after the Grid stops refreshing.  To add to the weirdness, the "Delete" functionality of the grid still works even after the grid itself stops refreshing itself with the changes to the ViewModel.  I tried to manually call some "refresh" looking methods on the grid and underlying datasource after loading the external people but none of them seemed to work.  Any explanations?  Thanks in advance
Sean
Sean
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
129 views
Code:
<ul class="kendo-tabstrip" runat="server" style="visibility:hidden">
    <li class="k-state-active">First Tab</li>
    <li>Second Tab</li>
    <li>Third Tab</li>
</ul>
<div>Tab1</div>
<div>Tab2</div>
<div>Tab3</div>

//Create the tab data
        for (var i = 0; i < subtabcontainer.length; i++) {
            tabdata[i] = {
                text: tabs[i].innerHTML,
                content: subtabcontainer[i].innerHTML
            };
        }
 
        var tabstrip = $(this).kendoTabStrip({
            dataTextField: "text",
            dataContentField: "content",
            dataSource: tabdata
        }).data("kendoTabStrip").select(1);



So it loops though some elements on the page, and builds up an array to bind to the tabstrip.  This all works great, however no tabs are selected when the page renders...if I manually click one all is good.

I've even tried setTimeout after the tabstrip initialization to do the .select as well, but no dice.

See here: http://screencast.com/t/Y22BMw27jsJ
Kamen Bundev
Telerik team
 answered on 27 Apr 2012
2 answers
135 views
Please see here: http://jquerytools.org/demos/tooltip/form.html 

Is this possible?

Basically they don't push anything. They float over top of the element that they are bound to, and will recognize the side of the window and move to the other side or wrap if necessary.

This is highly desirable because the current default (and asp.net's default) is to push content based on wherever it's placed, which looks pretty bad in the majority of cases.

Alternatively, can I disable the tooltips, and create my own on an event?

Thanks!

James
Top achievements
Rank 1
 answered on 27 Apr 2012
1 answer
73 views
Hi,

In the configuration section of the Grid demo, the documentation says that 'editable' object has a parameter 'confirmation' which is boolean. Shouldn't this be a string instead? (The example alongside shows it being assigned a string)
Georgi Tunev
Telerik team
 answered on 27 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)
SPA
Filter
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
OrgChart
TextBox
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
Popover
DockManager
FloatingActionButton
TaskBoard
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
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?