Telerik Forums
Kendo UI for jQuery Forum
2 answers
250 views
Hi Guys,

Am I doing something wrong (i must be of course) because I can't seem to get a simple create button to work from my kendo grid toolbar.
I want a row to be added to the grid when the create button is clicked from the toolbar, everything in the demos suggests this should work unless I've missed some vitally important detail ...

01.    <script>
02.        $(function () {
03. 
04.            var window = $("#queryBuilder");
05.           
06.            window.kendoWindow({
07.                width: "600px",
08.                modal: true,
09.                resizable: false,
10.                draggable: false,
11.                title: "New Query Builder",
12.                actions: ["Close"]
13.            });
14. 
15.            //window.data("kendoWindow").close();
16.            window.data("kendoWindow").center().open();
17. 
18.            var queryModel = kendo.observable({
19.                rules: new kendo.data.DataSource({
20.                    schema: {
21.                        model: {
22.                            id: "id",
23.                            fields: {
24.                                IncludeExclude: { type: "boolean" },
25.                                FieldName: { field: "FieldName", type: "string" },
26.                                Condition: { field: "Condition", type: "string" },
27.                                Value: { field: "Value", type: "string" }
28.                            }
29.                        }
30.                    },
31.                    create: function (options) {
32.                        this.rules.push(new { IncludeExclude: true, FieldName: "SubmissionId", Condition: "=", Value: "0" });
33.                    },
34.                    destroy: function (options) {
35.                        //this.rules.pop();
36.                    }
37.                })
38.            });
39. 
40.            $('#rules').kendoGrid({
41.                dataSource: queryModel,
42.                scrollable: true,
43.                toolbar: ['create'],
44.                columns: [
45.                    { field: ' includeExclude', title: 'Include Exclude' },
46.                    { field: 'FieldName', title: 'Field Name' },
47.                    { field: 'Condition', title: 'Condition' },
48.                    { field: 'Value', title: 'Value' },
49.                    { command: ['destroy'], title: '' }
50.                ]
51.            });
52. 
53.            var includeExclude = new kendo.data.DataSource({
54.                items: [
55.                    { text: "I want Submissions where", value: true },
56.                    { text: "I dont want Submissions where", value: false }
57.                ]
58.            });
59. 
60.        });
61.    </script>
62.}
63. 
64.<div id="queryBuilder" style="display: none;">
65.     
66.    <div id="rules"></div>
67. 
68.    <hr style="margin-bottom: 5px;" />
69.    <button class="k-button" style="float: right">Create New Submission Query</button>
70.</div>
Dimiter Madjarov
Telerik team
 answered on 09 Jul 2014
1 answer
92 views
In an application I'm developing, i need to use the same space to display information from different sources with different formats in a grid according to what item was selected on a TreeView.

i found two ways to achieve this: 
1. find the grid then destroy and recreate it.
2. find the grid then change datasoruce/options/

I'm very new to Kendo, so i'm not sure which approach would be wiser. 

any advice?
Alexander Valchev
Telerik team
 answered on 09 Jul 2014
1 answer
668 views
Hi, I'm trying to create my own task model for the mvc kendo scheduler , I've already implemented the ISchedulerEvent on my model to make the scheduler work but i don't want their properties (end,start,title.description,timezone, etc...), I only want the properties I've created, also I've already created my custom task creation popup with my own properties but when I click the save button i can´t advance to the controller method because the ISchedulerEvent properties are required, here is my sheduler code and my model.

Index

@(Html.Kendo().Scheduler<NUGUlib.Models.task>()
        .Name("scheduler")
        .Date(new DateTime(2013, 6, 13))
        .StartTime(new DateTime(2013, 6, 13, 10, 00, 00))
        .EndTime(new DateTime(2013, 6, 13, 23, 00, 00))
        .Editable(true)
        .Height(600)
        .Editable(e => e.TemplateName("PopUp"))
        .Views(views =>
        {
            views.DayView();
            views.WeekView(semana => semana.Selected(true));
            views.MonthView();
            views.WorkWeekView(view => view.WorkDayCommand(false));
            views.AgendaView();
        })
        .DataSource(d => d.Model(m =>
            {
                m.Id(f => f.id);
            })
               .Read(r => r.Action("Scheduler_Read", "Scheduler"))
               .Create(c => c.Action("Scheduler_Create", "Scheduler"))
               .Destroy("Scheduler_Destroy", "Scheduler")
               .Update("Scheduler_Update", "Scheduler")
        )
        .ShowWorkHours(false)
        .BindTo(Model)
)

Model

 public partial class cita : ISchedulerEvent
    {
        public int id { get; set; }
        public int UserID { get; set; }
        public System.DateTime firstDate { get; set; }
        public System.DateTime secondDate { get; set; }
        public string description { get; set; }
        public int times { get; set; }

        public string Description
        {
            get;
            set;
        }

        public DateTime End
        {
            get;
            set;
        }

        public string EndTimezone
        {
            get;
            set;
        }

        public bool IsAllDay
        {
            get; 
            set;
                

        }

        public string RecurrenceException
        {
            get;
            set;

        }

        public string RecurrenceRule
        {
            get;

            set;

        }

        public DateTime Start
        {
            get;
            set;

        }

        public string StartTimezone
        {
            get;
            set;
        }

        public string Title
        {
            get;
                

            set;

        }
    }
}




Vladimir Iliev
Telerik team
 answered on 09 Jul 2014
1 answer
777 views
I would like to change border colors (and more generally border border style) and I don't find css atribute or theme builder property for performing that.

Could you help me please?
Dimo
Telerik team
 answered on 09 Jul 2014
1 answer
96 views
How do you handle bugs reported against a particular version of Kendo UI?

Are they fixed in that version and re-released... or are issues fixed in a current release with the expectation that customer upgrade to get the fix?
Sebastian
Telerik team
 answered on 09 Jul 2014
5 answers
934 views
Can I achieve the functionality as shown in the attached file using Kendo Grid/ListView?

It should support the following functionality

1. Edit the Group Name (inline)
2. Edit the Item Name (inline)
3. Items rows should be split in two columns under the Group
4. Rearrange the Group using drag and drop

Can this be done using declarative markup?

A small example would really help. Thanks
Nikolay Rusev
Telerik team
 answered on 09 Jul 2014
1 answer
102 views
I am using Webmatrix 3 and have downloaded both the KENDO UI Professional Trial Version and the KENDO UI Core.  I am using VB in Webmatrix
I am trying to find an example in Webmatrix VB of using MS SQL (CE or otherwise) as the data source with the Grid.  Is this possible?   All examples I have found so far use only local data and in C#    
Atanas Korchev
Telerik team
 answered on 09 Jul 2014
17 answers
557 views
I recently started using bower (http://bower.io/) to manage my external packages (github) it makes update very easy. (leaflet, pouchdb, etc.) I see there is a bower package for the kendo core, but I am a longtime (since your first version) subscriber and I tend to use kendo.all.min.js.

Our projects are for offline use, so we cannot use internet urls for download of javascript.

Any chance of getting a bower package for Kendo Web? Mobile?


Dr.YSG
Top achievements
Rank 2
 answered on 08 Jul 2014
5 answers
206 views
Your public-facing documentation keeps pace with your releases... which is great - but what about documentation for previous releases? Do you have any kind of 'snapshot' of your documentation per-release?

The concern, is that customers who cannot update their projects in-step with your releases will quickly get out of sync with implementation details.
Petyo
Telerik team
 answered on 08 Jul 2014
11 answers
454 views
HI, 

We are trying to display a dashboard with few stacked bar charts for well monitoring in "Gas and petrol insustries".
As part for this we are trying to show few more information in the form of images.

Mostly these images will be up/down arrows on top of the bar, a small rectlange inside the bar etc. 

What we would like to know is, is there a facilty in chart itself to achieve this are should we manually add div elements to 
chart area as shown here:http://jsbin.com/azeRAY/2/edit.
I have attached a image to show what we want to achieve

Right now we are the evaluation phase of Kendo UI for our applications and any help would be appreciated.

Regards
Sripriya
Senior engineer, Honeywell Technologies.
Iliana Dyankova
Telerik team
 answered on 08 Jul 2014
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?