Telerik Forums
Kendo UI for jQuery Forum
2 answers
564 views
First off, I've been using the new chart (DataViz) tools for a week now.  They are awesome.

My question is two-fold:
1)  Is there a recommended way to show a time series chart that shows the relative time between data points?  If you use the line chart, the data points are the same distance apart regardless of the time span between the two data points.

From a visual perspective, I have been able produce what I need using the "scatterLine" series type.  I've accomplished this by converting my time values into their "ticks" representations.  However, that produces labels on the x-axis like "634629218399630000".

2) In the absence of an obvious way to do a time series, can I create a custom function (anonymous or otherwise) to format the x-axis labels--the "tick" values--to a more friendly date/time representation.

E.g.
xAxis: {
    labels: {
        format: myFormatFunction(tickValue) { return formattedString }
    }
}
Scott
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
111 views
Sample I have <select class="my_dropdown" > </select>

in getdata from ajax i need change How do?.

when i get data from ajax 

success 
$('.my_dropdown').html(data);
Lukas
Top achievements
Rank 1
 answered on 24 Jan 2012
2 answers
583 views
Hi,

Is it possible to show row number in Grid and the total number of rows at the top/bottom of the grid?
For example, in the demo http://demos.kendoui.com/web/grid/virtualization-remote-data.html having a first column indicating the row number (1, 2, 3, 4...) and at the bottom/top of the grid have the total number of rows (for example: 10,000 in the case we have 10000 records).

Thanks.
José Antonio
Top achievements
Rank 1
 answered on 24 Jan 2012
0 answers
172 views
Hi I get json like this
{"ITEM_TYPE" : "", "ITEM_CODE": "", "ITEM_NAME": "",  .....
from an url. There is no data to send.
Then the grid will just throw this in console 
d is undefined
return new Function("d", "return " + kendo.expr(expression, safe));

the error repeats it self if I press 'Add New Record' button.
I am using an handler to get data.
If I use local data and use above string then it works fine. But if I delete the all rows and then try to press 'Add New Record' button I get same error.
Thank you.  
Amol
Top achievements
Rank 1
 asked on 24 Jan 2012
0 answers
142 views
Hi All,

Is it possible to specify the column data type (for filtering/sorting purposes) in the Grid Columns array, rather that the DataSource Schema?  I know I can do it with a Schema - but I would like to just manage one collection of columns and would like to fully configure the Grid in one spot.

My initial thought is no - since the Schema is applied to the DataSource, I would imagine all datatype definitions have to be done at that level rather than the Grid level - but I thought I would ask!
Matt
Top achievements
Rank 1
 asked on 24 Jan 2012
1 answer
240 views
Hi All,

I am binding a Grid to a local DataSource.  It is working great UNTIL I add the groupable: true property to the Grid config.  Once I do that I get the following error in Firebug:
Uncaught TypeError: Cannot call method 'replace' of undefined
d.extend._Deferred.f.resolveWithj
v
d.support.ajax.d.ajaxTransport.send.c

The error suggests that I am trying to use an Ajax transport, but I never specify that.  Do I need to somehow specify a local datasource implicitly?

I am getting this error when I init the grid, before I add data to my datasource.  Everything else works really well (sorting, row templates, etc).

Here is my DataSource:
$.xxxx.voice.localData.agentHGDS = new kendo.data.DataSource({
    data: $.xxxx.voice.localData.agentHGData /* This is my data array*/
});

Here is my Grid:
var rowTemplate = "<tr class='s#= HGInfo.CurrentState #'>" +
        "<td>${ AgentInfo.CSLAgentId }</td>" +
        "<td>${ AgentInfo.CSLAgentName }</td>" +
        "<td>${ HGInfo.Number }</td>" +
        "<td>${ $.xxxx.utils.getCSLStateDisplay(HGInfo.CurrentState) }</td>" +
        "<td>${ $.xxxx.utils.formatJSONTimeCasual(HGInfo.CurrentStateDateTime) }</td>" +
        "<td>${ HGInfo.GroupCalls }</td>" +
        "<td>${ AgentInfo.OutboundCalls }</td>" +
        "<td>${ HGInfo.OpportunitiesMissed }</td>" +
        "</tr>";
 
 
$("#grid-id").kendoGrid({
    dataSource: $.xxx.voice.localData.agentHGDS,
    sortable: { mode: "multiple" },
    height: 250,
    groupable: true, /* if I take this line out, the error goes away and all is right with the world */
    rowTemplate: rowTemplate,
    columns: [{ field: "AgentInfo.CSLAgentId", title: "AgentId", width: 20 },
          { field: "AgentInfo.CSLAgentName", title: "AgentName", width: 20 },
          { field: "HGInfo.Number", title: "HuntGroup", width: 20 },
          { field: 'aaa', title: "State", width: 20 },
          { field: "HGInfo.CurrentStateDateTime", title: "StateTime", width: 20 },
          { field: "HGInfo.GroupCalls", title: "# GroupCalls", width: 20 },
          { field: "AgentInfo.OutboundCalls", title: "# OutboundExt", width: 20 },
          { field: "HGInfo.OpportunitiesMissed", title: "# OppMissed", width: 20} ]
});

Any ideas?  Is it data related (data values I mean).
Matt
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
247 views
I am working on creating a new site and would like to use the Kendo tools for it. One of the design elements presented to me is a "tabbed" window. In this case, the tabs are built into the window title bar and the content of the window changes based on what tab is clicked. Is there a way to get the tab control and the window control to work together so that the tabs cab be put into the title of a window and the content of the window change based on the tabs?
Dimo
Telerik team
 answered on 24 Jan 2012
0 answers
198 views
i have a problem with window popup. Window's content  is open in page not in popup.
You can see online this file on.
1.click on Publish and see the first grid ,there are "Presentation" column .
2.In that column click on "Align" link and see the window is not popup .
http://98.130.153.40/botCreaterNewIdFor.html?id=4e5bb37258200ed9aabc6e61
here is my code
//window code

 $(".facetsProperty").click(function(){
                         var window = $("#windowFacets  "),
                        undo = $("#undo")
                                .bind("click", function() {
                                    window.data("kendoWindow").open();
                                    undo.hide();
                                });
                    var onClose = function() {
                        undo.show();
                    }
                    $("#close4").click( function (e) {
                        window.data("kendoWindow").close();
                    });
                   if (!window.data("kendoWindow")) {
                        window.kendoWindow({
                            resizable: true,
                            width: "500px",
                            scrollable:true,
                            title: "Facets Of Property",
                            close: onClose
                        });
                    }window.data("kendoWindow").open();
                        });           

//display  grid data in templates

 <table class="publish0 tableGrid" >
                <thead>
                    <tr>
                        <th>Property ID</th>
                        <th>Data Type</th>
                        <th>Presentation</th>
                          <th>Prompt</th>
                            <th>Source</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td colspan="4"></td>
                    </tr>
                </tbody>
            </table>
            <script id="templatePublish0" type="text/x-kendo-template">
            <# for (var i=0; i< messages[0].property_groups[0].bot_property_group_view[0].properties_in_view.length; i++) { #>
                <tr>
                    <td>
       #= messages[0].property_groups[0].bot_property_group_view[0].properties_in_view[i].property_id #
    </td>
    <td>&nbsp;</td>
    <td> <a href="\\#" id="windowFacets displayText5"  class="k-group facetsProperty " onclick="javascript:toggle5();">
      #=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].facets[6].name #
    </a> </td>
        <td>
      #=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].facets[0].value #
    </td>
        <td><a href="\\#" id="windowSource displayText4"  class="k-group sourceProperty " onclick="javascript:toggle4();">
      #=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].value_source.source_type #
</a>    </td>
    
                </tr><# } #>
            </script>

//pop up code it is hide by default , when user click on "#=messages[0].property_groups[0].bot_property_group_view[0].properties_in_view
[i].facets[6].name # " link then it is open but now it open in page not in popup.

 <div id="windowFacets">
        <div id="gridFacets"></div>
        <p align="center">
          <input type="button" value="OK" id="close4" class="k-button"/>
          &nbsp;
          <input type="button" value="Cancel" id="close" class="k-button"/>
        </p>
      </div>
Mahesh
Top achievements
Rank 1
 asked on 24 Jan 2012
3 answers
354 views
Hi, I've been playing around with Kendo UI and am currently testing loading a grid from a HTML table. I also am also testing with and without a row template. One problem that I'm having is I want to include some Javascript that dynamically creates a button when the page loads (for each row). I'm using this in a lot of other places on my site and I'd just like to do the same thing here. I can't seem to include any sort of script tag in the HTML table or when using the row template, it all gets removed. The important thing isn't so much showing a button, but just the ability to execute Javascript inside of a column in each row. Any way to do this?
John Thompson
Top achievements
Rank 2
 answered on 24 Jan 2012
3 answers
429 views


Hi everyone! I'm testing this new API and i really like it, but I'm trying to put a personal button in a kendoGrid field, but i don't really know how to made this.

I look in the documentation, and anything in it help me to solve my problem.

I've tried to put some HTML in it, but i didn't find an associated type for HTML insertion.

So how can i instantiate a button in my kendoGrid.

Thank you !
 
Amol
Top achievements
Rank 1
 answered on 24 Jan 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
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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?