Telerik Forums
Kendo UI for jQuery Forum
1 answer
265 views

I have a 'Select All' option in the columnMenu as demonstrated in the following example:

https://docs.telerik.com/kendo-ui/knowledge-base/grid-include-selectall-in-columnmenu

 

This was working as expected in version 2017.3.913.  After upgrading I now encounter an issue whenever I open the menu, close it and then re-open.  The following example demonstrates the problem:

https://dojo.telerik.com/IcOYO

Opening the 'Order ID' columnMenu and selecting 'Columns' shows a 'SelectAll' option on the top as expected.  When opening for a second time, 'SelectAll' is moved to the bottom.  In addition, selecting 'Filter' shows that a 'Column ID' option has been added above the filter options.  I have been unable to determine whether this is a known issue in the current version (2017.3.1026).

Stefan
Telerik team
 answered on 19 Dec 2017
6 answers
553 views

Hi, 

For some reason the min and max dates are only enforced on the calendar popup, not in the scheduler navigation. 
The scheduler is first initialized without the min and max attributes, then I set them using setOptions() method. The reason being the restrictions are based on other parameters.
If I print the scheduler reference in the console, the min and max attributes are populated as expected. However as I said before, the restriction only applies to the calendar popup.

For example, if the max date is 2017-12-31 and the view is "month". If i click the 'next' navigation button, something is happening. I say it like that because the datsource is refreshing, but the displayed month is not changing to January.

I'm trying to explain my problem as best I can but honestly, haven't got a clue what going on. I hope you are able to help, I'll continue to investigate myself and hopefully will have more info for you when you reply.

Thank and kind regards, 
Grant

Veselin Tsvetanov
Telerik team
 answered on 19 Dec 2017
19 answers
634 views

Hello,
            I have a function which constructs Observable ViewModel. In that there are 4-5 dataSource. 

function GetAirRequestMVVMTemplate() {
    debugger;
    //kendo.ui.progress($("body"), true);
    var airRequestViewModel = kendo.observable({
        FlightDestinationSource: function(e) {
            return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("GetData/GetCountry"),
                        dataType: "json"
                    }
                },
                serverFiltering: true
            });
        },
        FlightOriginSource: function(e) {
            return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("GetData/GetCountry"),
                        dataType: "json"
                    }
                },
                serverFiltering: true
            });
        },
        ViaSource: function (e) {
            debugger;
            var viadata = e.ArriveDepartDetails.via;
            return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("GetData/GetCountry"),
                        dataType: "json",
                        data: function (e) {
                            return {
                                adddata: JSON.stringify(viadata) //viadata != null ? JSON.stringify(viadata) : JSON.stringify([])
                            };
                        }
                    }
                },
                serverFiltering: true
            });
        },
        AirlineIdsSource: function (e) {
            debugger;
            var airdata = e.AirlineIds;
            return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("GetData/GetAirLines"),
                        dataType: "json",
                        data: function (e) {
                            return {
                                data: JSON.stringify(airdata)
                            };
                        }
                    }
                },
                serverFiltering: true
            });
        },
        ClassSource: function(e) {
         return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("GetData/Get_Air_Class_Details"),
                        dataType: "json"
                    }
                }
            });
        },
        AllianceSource: function(e) {
            return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("GetData/GetAlliance"),
                        dataType: "json"
                    }
                }
            });
        },
        TimeTypeSource: function(e) {
            return new kendo.data.DataSource({
                data: [
                    { Text: "None", Value: "-1" },
                    { Text: "Departs", Value: "D" },
                    { Text: "Arrives", Value: "A" }
                ]
            });
        },
        TimeTypeDataBound: function (e) {
            debugger;
            if (e.data.ArriveDepartDetails.TimeType == null) {
                e.data.ArriveDepartDetails.set("TimeType", "-1");
            }
        },
        OnOpenOriginAutoComplete: function(e) {
            debugger;
            var target = $(e.sender.element).data("kendoAutoComplete");
            target.list.width(280);
        },
        SaveAirRequest: function(e) {
            debugger;
            if ($("#APISForm").kendoValidator().data("kendoValidator").validate()) {
                if (validateAirRequestForm()) {
                    kendo.ui.progress($("#AirRequest"), true);
                    var data = {
                        airRequestData: e.data //AirRequestViewModel.AirItem.AirVMList
                    }
                    $.ajax({
                        type: "POST",
                        contentType: "application/json; charset=utf-8",
                        traditional: true,
                        data: JSON.stringify(data),
                        url: rootUrl("SearchAvailability/AirRequestMVVMSave"),
                        success: function(response) {
                            debugger;
                            if (response.Error == null) {
                                RefreshServiceElements();
                                $("#AirRequest").data("kendoWindow").close();
                            } else {
                                ShowKendoMessage("Error: " + response.Error);
                                AirRequestViewModel.AirItem.AirVMList.Error = null;
                            }
                            kendo.ui.progress($("#AirRequest"), false);
                        }
                    });
                }
            } else {
                ShowKendoMessage("Please Enter Required Fields");
            }
        },
        AddSegment: function(e) {
            debugger;
            // this.AirVMList.SegmentInfo.push(new this.AirVMList.SegmentInfo());
            //AirRequestViewModel.AirItem.AirVMList.SegmentSkeleton
            var object = JSON.stringify(AirRequestViewModel.AirItem.AirVMList.SegmentSkeleton);
            object = JSON.parse(object);
            AirRequestViewModel.AirItem.AirVMList.SegmentInfo.splice(parseInt(e.data.index + 1), 0, object);
            var prevDestination = AirRequestViewModel.AirItem.AirVMList.SegmentInfo[parseInt(e.data.index)].ArriveDepartDetails.Destination;
            AirRequestViewModel.AirItem.AirVMList.SegmentInfo[parseInt(e.data.index + 1)].ArriveDepartDetails
                .set("Origin", prevDestination);
            //AirRequestViewModel.AirItem.AirVMList.SegmentInfo.push(AirRequestViewModel.AirItem.AirVMList
            //    .SegmentSkeleton);
            for (var i = 0; i < AirRequestViewModel.AirItem.AirVMList.SegmentInfo.length; i++) {
                this.AirVMList.set("SegmentInfo[" + i + "].index", i);
            }
        },
        RemoveSegment: function (e) {
            debugger;
            AirRequestViewModel.AirItem.AirVMList.SegmentInfo.splice(e.data.index, 1);
            for (var i = 0; i < AirRequestViewModel.AirItem.AirVMList.SegmentInfo.length; i++) {
                this.AirVMList.set("SegmentInfo[" + i + "].index", i);
            }
        },
        ShowSegmentOptions: function (e) {
            debugger;
        },
        FlightOriginOnOpen: function (e) {
            debugger;
            //var target = $(e.sender.element).data("kendoDropDownList");
            //target.list.width(280);
        },
        ResetAirItem: function (e) {
            debugger;
            e.data.ArriveDepartDetails.set("Origin", null);
            e.data.ArriveDepartDetails.set("Destination", null);
            e.data.ArriveDepartDetails.set("DepartureDate", null);
            e.data.ArriveDepartDetails.set("TimeType", "-1");
            e.data.ArriveDepartDetails.set("DepartureTime", "00:00");
            e.data.ArriveDepartDetails.set("via", []);
            e.data.set("AirlineIds", []);
            e.data.set("ClassCodeId", null);
            e.data.set("FlightNumber", null);
            e.data.set("Alliance", null);
            e.data.set("Note", null);
        },
        HideSegmentOptions: function (e) {
            debugger;
            $(e.toElement).closest(".segmentdiv").find(".tobehidden").toggle();
            $(e.toElement).closest(".segmentdiv").find("#flipdown").toggle();
            $(e.toElement).closest(".segmentdiv").find("#flipup").toggle();
        },
        CancelAirRequest: function (e) {
            debugger;
            $("#AirRequest").data("kendoWindow").close();
        }
    });
    $.when(
            $.ajax({
                url: rootUrl("SearchAvailability/GetAirRequestJSONData"),
                type: "POST",
                dataType: "json",
                data: { requestId: $("#RequestID").val() }
            }),
            loadTemplate("Content/Templates/AirRequestViewModelNew.tmpl.htm")
        )
        .then(onAirRequestWindowSuccess(airRequestViewModel))
        .fail(onAirRequestWindowFailure);
}

 

All Datasource to etc. When select option any autocomplete or all other  send read/filter request to . I  know why its happening.  














Veselin Tsvetanov
Telerik team
 answered on 19 Dec 2017
1 answer
180 views

Hi People, I am using grids popup editor to edit the grid row. in that I am using custom editor (DropDown control) for some of field of Grid. Following is code for that Dropdown editor: 
function prontoStratumDropDownEditor(container, options) {
              $('<input required data-text-field="ABC" data-value-field="XYZ" name="' + options.field + '"/>')
                .appendTo(container)
                .kendoDropDownList({
                     dataSource: new kendo.data.DataSource({
                        transport: {
                            read: {
                                url: "SomeURL",
                                type: "get",
                                datatype: "json",
                            }
                        }
                     }),
                     filter: "startswith",
                     suggest: true,
                     }
                });
        }

 

When I click on Edit Command of Grid, ideally dropdown should show me the name of already existing field For Eg: if grid row contain value "Animal" then when I click on Edit, by default DropDown should have "Animal" selected, but its not. I tried many things like getting rid of name property, remove required attribute etc but I do not know Why it is not showing me can anyone please help? 

Stefan
Telerik team
 answered on 18 Dec 2017
17 answers
1.1K+ views
In the basic usage example, the transport read url is set to msmdpump.dll.

I am investigating how to secure access to msdmpump.dll from the client, and I think that the only way is to introduce a server-side (Web Api) service as an intermediary between msmdpump.dll and the client application. Is that correct?

Assuming it is, could you provide some guidance on how to implement Web Api to do this? 

Thanks!
Gary
Alex Hajigeorgieva
Telerik team
 answered on 18 Dec 2017
3 answers
272 views

Hi guys, im having problem with these styles.i dont know what i could do anymore, any solution?

 

Stefan
Telerik team
 answered on 18 Dec 2017
6 answers
250 views
I'm using a PanelBar in the exact same manner as TreeView but the expected control is not being built.
Is this supported or am I trying to do something that is not supported? I'm on 2012 Q3

More info on my issue here
Veselin Tsvetanov
Telerik team
 answered on 18 Dec 2017
2 answers
357 views
TreeView datasource reloads when i try to expand a node, the parent data is appended to the expanded node. Strangely however if i collapse the expanded node and expand it again the child nodes are appended. Help please
Niranjan
Top achievements
Rank 1
 answered on 18 Dec 2017
8 answers
145 views

I have a request to create a widget that shows the next X upcoming events using MVC/C#. I figured the easiest way would be to create a ListView that pulls from the scheduler's datastore and take top X.

How can we tap into the logic of the scheduler to generate events from the event definitions/rules (e.g. handle recurrence rules, recurrence exceptions, timezones, etc)? I would think we can use the data from the schedulers datastore to generate events between now and an end date and take the next X upcoming.

If this is not possible, I assume we'd have to go down a more complex solution by using the scheduler with a custom view (like an agenda view) but I'd need to figure out how to show only the next X events and not all of them between two dates.

Veselin Tsvetanov
Telerik team
 answered on 15 Dec 2017
2 answers
531 views

Hey guys,
I'm trying to use the aggregation feature on the kendo grid control. But every time I got next error

"Uncaught ReferenceError: count is not defined error"

Here is the demo

https://dojo.telerik.com/imUVev

 

Alex Hajigeorgieva
Telerik team
 answered on 15 Dec 2017
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)
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?