Telerik Forums
Kendo UI for jQuery Forum
2 answers
446 views
is there a way to sort a ListView or the DataSource?

don't want to use group because i don't need the title of it.
i'm getting the data from sqlite and i don't have sorting information in DB, i need to generate it first.
domiSchenk
Top achievements
Rank 1
 answered on 23 Sep 2013
3 answers
303 views
Is there something I can do to force a keyboard to disappear when a drawer is opened?  I haven't tested on iOS yet, but on android with my app I have an issue if an input has focus and the keyboard is shown swiping to open the drawer will leave the keyboard open.  It was my understanding that this is a function of the input still having focus.  I  have tried a few different techniques to dismiss the keyboard, '$( document.activeElement ).blur();' didn't work and neither did '$( "input:focus" ).blur();'  I read a post on stack overflow where someone tried setting focus on a checkbox to cause the keyboard to be removed, but that didn't help either.

Anybody know of a way to handle this?
 -David
Petyo
Telerik team
 answered on 23 Sep 2013
1 answer
144 views
When will the theme builder be updated?

There's no scheduler in there at all, and I find I can change my colors, but then it's missing some on the merge.  So if I style out all the blue on "flat" and combine it all with the template there's still blue elements.

Can you also enhance it such that it'll annotate the elements on the page that the style will change?...like if I hover on the theme element\color border appear overlayed on the page elements?

Steve
Alex Gyoshev
Telerik team
 answered on 23 Sep 2013
3 answers
252 views
I want to retrieve bar code in byte array form, is this possible?
If not what other options could be?

Please reply ASAP.

Thanks,
Mahesh A
Petur Subev
Telerik team
 answered on 23 Sep 2013
1 answer
127 views
We are using the grid in a MVC app. I can get the Read, Update and Delete functions to work without issue. However every time we try to do an insert the entity being passed to the controller is null. Here is the code:

OData Controller:
protected override BroadcastEventViewModel CreateEntity(BroadcastEventViewModel entity)
        {
            var bcEvent = new Model.BroadcastEvent()
            {
                Id = entity.Id,
                Name = entity.Name,
                StartDate = entity.StartDate,
                EndDate = entity.EndDate
            };
            _repository.InsertBroadcastEvent(bcEvent);
            return entity;
        }
Index.cshtml:
var crudServiceBaseUrl = "/odata/BroadcastEvents";
        var pledgesModel = kendo.observable({
            dataSource: broadcastEventDataSource = new kendo.data.DataSource({
                type: "odata",
                transport: {
                    create: {
                        url: crudServiceBaseUrl,
                        dataType: "json",
                    },
                    read: {
                        url: crudServiceBaseUrl,
                        dataType: "json"
                    },
                    update: {
                        url: function (data) {
                            return crudServiceBaseUrl + "(" + data.Id + ")";
                        },
                        dataType: "json"
                    },
                    destroy: {
                        url: function (data) {
                            return crudServiceBaseUrl + "(" + data.Id + ")";
                        },
                        dataType: "json"
                    }
                },
                batch: false,
                serverPaging: true,
                serverSorting: true,
                serverFiltering: true,
                pageSize: 5,
                schema: {
                    data: function (data) {
                        return data.value;
                    },
                    total: function (data) {
                        return data["odata.count"];
                    },
                    errors: function (data) {
                    },
                    model: {
                        id: "Id",
                        fields: {
                            Id: { type: "number", editable: false, nullable: true },
                            Name: { type: "string" },
                            StartDate: { type: "datetime" },
                            EndDate: { type: "datetime" },
                        }
                    }
                },
                error: function (e) {
                    var response = e.xhr.responseJSON;
                    var message = response.Message;
                    //if (e.xhr.responseJSON["odata.error"].Message != null) {
                    //    message = e.xhr.responseJSON["odata.error"].Message;
                    //}
                    alert(message + "\n\n");
                }
            })
        });
 
        $("#broadcastEventGrid").kendoGrid({
            dataSource: broadcastEventDataSource,
            toolbar: ["create", "save", "cancel"],
            sortable: false,
            pageable: true,
            filterable: false,
            columns: [
               { field: "Id", title: "ID", width: 150 },
               { field: "Name", title: "Name", width: 200 },
               { field: "StartDate", title: "Start Date", width: 200 },
               { field: "EndDate", title: "End Date", width: 200 },
               {
                   command: ["edit", {
                       name: "Details",
                       click: function (e) {
                           // var tr = $(e.target).closest("tr");
                           //var data = this.dataItem(tr);
                           alert("Details for: " + e.target);
                       }
                   }], title: "Action",
               }
            ],
            editable: {
                createAt: "bottom",
                mode: "inline"
            }
        });
I have found tons of articles and examples using the ActionLinks, but nothing that would seem to tell me why this call to Create would not work.

Thanks for any help you can provide.
Chuck
Nikolay Rusev
Telerik team
 answered on 23 Sep 2013
1 answer
8.4K+ views
I want to make select first item on dropdownlist.


so, after item has bounded, I tried this.

$("#CATEGORY_CODE").data("kendoDropDownList").select(0);

and I tried to check the value,
alert($#CATEGORY_CODE").val());
alert($("#CATEGORY_CODE").data("kendoDropDownList").value());

but I could see "null" and "undefined" messages.

What's wrong? anyone please let me know.
Shirley
Top achievements
Rank 1
 answered on 23 Sep 2013
4 answers
1.1K+ views
Hi,  I am using the kendoComboBox as well, a combo box.  I need to be able to limit users input length to a number of characters, just like I do on my other input boxes.  There doesn't appear to be a maxLength parameter for the comboBox.  I'm guessing that I must be missing something.  Can someone help?
Jay
Top achievements
Rank 2
 answered on 20 Sep 2013
2 answers
1.2K+ views
I've been trying to hookup a AutoComplete widget. It's failed every time I've tried it with the error "a.ToLowerCase is not a function"

So I added a Grid and bound the same data and it worked as expected. What could be the issue with AutoComplete?


error is
a.toLowerCase is not a function
Line 1

local data is 
var myData = [{
    "ID": 8,
    "Title": "Test Title",
    "Ends": "5/30/2011 6:00:00 PM"
}, {
    "ID": 37,
    "Title": "Test Title 2"
}];

The code is 
$("#autocomplete").kendoAutoComplete({
                dataSource: myData
            });
 
$("#grid").kendoGrid({
                columns: [
              {
                  field: "ID",
                  title: "ID",
                  width: "10"
              },
              {
                  field: "Title",
                  title: "Title"
              },
              {
                  field: "Ends",
                  title: "Ends"
              }],
                dataSource: {
                    data: myData,
                    pageSize: 5
                },
                sortable: true,
                pageable: true
            });

achmad
Top achievements
Rank 1
 answered on 20 Sep 2013
1 answer
160 views
Hi ,

We are getting a JSON object ( sample attached ) and wants to create the multiple value Axes and Series from this JSON object for a line chart in Javascript file.

We want to somehow access the chart object and will like to programming in API manner .
Something like this .

chart.option.(addvalueaxis1) -- set it all properties like line color/alighment/name etc.
chart.option.(addvalueaxis2) -- set it all properties like line color/alighment/name etc.
chart.option.(addvalueaxis3)-- set it all properties like line color/alighment/name etc.

chart.option.(addseries1) -- set it all properties like title/valueField/valueAxis
chart.option.(addseries2) -- set it all properties like title/valueField/valueAxis
chart.option.(addseries3)-- set it all properties like title/valueField/valueAxis

CategoryAxis is date type returned in JSON object .

The Json object send the data for all days in the year.
We will pick the RPM value for day1,day2,day3 based on our calculation , in attached json object for day1 it will be ( FY14_Bing_RPM_ActualMetricValue, FY13_Bing_RPM_ActualMetricValue). Here RPM will become our first value axis. these values will form the first series.

The attached JSON object has array of 4 days.
can you please help.
T. Tsonev
Telerik team
 answered on 20 Sep 2013
1 answer
128 views
Hi

I am using bar and column charts to represent my data. The issue is when the data is large, the number of bars increases and is difficult to view the data. when i view in iphone it  is still worse. i used pan and zoom for the bar chart but it is ok in browsers and not in iphone(Drag is difficult in iphone). the pan and zoom is also not working fine for column charts. can you provide me with a solution?
Hari
Top achievements
Rank 1
 answered on 20 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?