Telerik Forums
Kendo UI for jQuery Forum
4 answers
220 views

When creating an "All Day" event that spans multiple days it changes to the wrong number of days when landing on a daylight savings time change date.

1. See https://dojo.telerik.com/UletiPaC

2. Create an all day event that spans three days.

3. Drag that event to start on Nov 2nd or Nov 3rd (2013 calendar from demo)

4. See the span changeto span just two days.

5. Move it back see it go back to three days.

Is there a setting I am missing to avoid this behavior? It is quite confusing to the end user.

Thanks.

Mark
Top achievements
Rank 1
Veteran
 answered on 01 Nov 2018
5 answers
1.0K+ views
I'm trying to set and event handler to the change event to a collection of numeric controls after initialization. I have a multiple jQuery selector but the event seems to be binding only to the first control in the collection. It would be ideal if it behaved like jQuery event binding and bound to all controls in the collection. See the code sample http://jsfiddle.net/sitty/MeEhQ/4/ 
Boyan Dimitrov
Telerik team
 answered on 01 Nov 2018
6 answers
3.5K+ views
I need to get all data for all detail grids in a hierarchy grid. All master rows in the grid are always expanded (users cannot collapse), and all mater rows will always have details. How can I get the detail grids?
Tsvetina
Telerik team
 answered on 01 Nov 2018
6 answers
1.6K+ views

Hi,

I have some nasty performance issues  when paging through grid control, since we have lot of registers (300k or more), we are using the server-side aproach, but for some reason the last page takes forever but if you go to page 2,3,4 etc. is fast, its seems when you are close to last pages the time increases why? it not should be the same or similar amount time going to page 4 or last page?

So when we bring a lot of registers, go to second page can take a second or seconds and the last page takes sometimes minutes! I see a big load in the database server when click on last pages. I tested this on version 2014 and 2016.

Is there some parameter or configuration to improve this or is it a kind of bug? or why this could happen?

Thank you.

Mauricio
Top achievements
Rank 1
 answered on 31 Oct 2018
4 answers
386 views

Hello,
          I have 2 autocomplete and 2 dropdowns in kendo MVVM layout. 

the ViewModel is inside a function making it non-global. 

function GetPricingPCCSourceDS(optionfilters) {
    return new kendo.data.DataSource({
        transport: {
            read: {
                type: "POST",
                url: rootUrl("GetData/GetPricingPCC"),
                dataType: "json",
                data: { OptionFilters: optionfilters == null? null: optionfilters.toJSON() }
            }
        },
        serverFiltering: true
 
    });
}
 
function GetValidatingCarrierDS(e) {
    return new kendo.data.DataSource({
        transport: {
            read: {
                url: rootUrl("GetData/GetAirLines"),
                dataType: "json"
 
            }
        },
        serverFiltering: true
         
    });
}
 
function GetSupplierSourceDS(bookingPccId) {
    return new kendo.data.DataSource({
        transport: {
            read: {
                url: rootUrl("GetData/GetSuppliersForPricing"),
                dataType: "json",
                data: { officeId: bookingPccId }
            }
        },
        serverFiltering: true
 
    });
}
 
function TaskSuccess(){
 
var ViewModel = kendo.observable({
PricingTemplateSource: function () {
            return new kendo.data.DataSource({
                transport: {
                    read: {
                        url: rootUrl("Fare/GetPricingTemplatestest"),
                        dataType: "json",
                        data: function(e) {
                            return {
                                optionFilters: JSON.stringify(ImportPNRPricingViewModel.OptionFilters),
                                validatingCarrier: JSON.stringify(ImportPNRPricingViewModel.OptionFilters
                                    .ValidatingCarrier)
                            };
 
                        }
 
                    }
                },
                group: [{ field: "FareOwner" }],
                serverFiltering: true
            });
        },
PricingPccSource: function (e) {
            var optionfilters = this.OptionFilters;
            return GetPricingPCCSourceDS(optionfilters);
        },
FareOptionsSupplierSource: function (e) {
            var bookingPccId = this.OptionFilters.BookingPccInformation.get('PccId');
            return GetSupplierSourceDS(bookingPccId);
        },
ValidatingCarrierSource: function(e) {
            return GetValidatingCarrierDS(e);
        }
});
 
}

 

  Some of DataSource requires input values to be passed. The UI works but thing is When i change autocomplete value or any DropDownList selection , the 2 DropDownList DataSource fires Read ajax calls again . 
      I could have made the Dojo sample but i didnt found any url that could have data as parameter in datasource

Nencho
Telerik team
 answered on 31 Oct 2018
1 answer
270 views

Hi, my requirement is quite simple, I just wanted to show the toggle buttons (day, week and month) of the scheduler (highlighted in red box - refer to attached image file).  I don't want to show the timeline of the scheduler as well the current date (refer to attached image file - highlighted in green box) when the scheduler initially renders in the page.  Is this doable?

Also, when the user clicks or selects one of the toggle buttons (day, week or month); an event pop up dialog form will show to enable a user to set the desired schedule.  After that, user clicks save button, and data will be persisted back into the database.

Any inputs is highly appreciated and, if it's doable, could you please give some configuration examples of the scheduler related to the above mentioned items.

Thanks a lot.

Ivan Danchev
Telerik team
 answered on 30 Oct 2018
3 answers
1.5K+ views

 Hello,
            I want to have MVVM DatePicker with Min Date. 

I tried 2 methods:

1) Using Open event :

<input data-role="datetimepicker" data-format="dd-MMM-yyyy hh:mm:ss tt" required validationMessage="!" name="DepartureDate" class="DepartureDate" data-parse-formats="['dd-MMM-yyy','dd-MMM-yy','dd.MM.yyyy','dd.MMM.YYYY','dd.mm.yy','dd.MMM.yy','ddMMyyyy','ddMMyy','ddMM','ddMMM','dd-MM-yyyy hh:mm:ss' ]"
 data-bind="value: DepartureDateTime, events:{open: OnOpenAirRequestDatePicker}" data-min="#: new Date() #" />
            <span data-for='DepartureDate' class='validation'></span>

 

This works when someone opens date icon to select date. If user directly write old date it takes as input until OPEN event is not triggered.

2) Using data-min attribute:

<input data-role="datetimepicker" data-format="dd-MMM-yyyy hh:mm:ss tt" data-min="#: new Date() #" required validationMessage="!" name="DepartureDate" class="DepartureDate" data-parse-formats="['dd-MMM-yyy','dd-MMM-yy','dd.MM.yyyy','dd.MMM.YYYY','dd.mm.yy','dd.MMM.yy','ddMMyyyy','ddMMyy','ddMM','ddMMM','dd-MM-yyyy hh:mm:ss' ]" data-bind="value: ArriveDepartDetails.DepartureDateTime, events:{open: OnOpenAirRequestDatePicker}" data-min="#: new Date() #" />
            <span data-for='DepartureDate' class='validation'></span>

 

this works and value binds if value is future date , in case of old date then today , value doesnt bind. 

I want to restrict user also from entering old dates directly without selecting

 

 

 

 

 

 

 

Konstantin Dikov
Telerik team
 answered on 30 Oct 2018
7 answers
1.3K+ views
Dear Team,

I am new to Kendo control, please help me with this, I already have Tree View as shown in the attachment, Now I have two(Expand  and Collapse) buttons, I need to perform the  'Expand All'  on click of Expand button and 'Collapse All'  on click of  Collapse button.

How to perform 'Expand All' and 'Collapse All' in Kendo Tree View on click of Expand button and Collapse button.

Please help me on this.
Vessy
Telerik team
 answered on 30 Oct 2018
1 answer
2.4K+ views

Hi,

I have the following code for my grid that contains a dropdownlist column.  On the change of the dropdown list, I call a controller function via ajax to update my record in the DB.  The DB is updated correctly but as soon as I leave that row the value goes back to the old value in the dropdownlist.  The DB is still correct and if I refresh my screen is loads correctly.  

I've tried to do a datasource refresh, I've tried to get the datasource again and do a setDataSource.  Nothing refreshes the grid and retrieves the data.  My code is below for the grid and the dropdownlist.

Any suggestions?  Thank you in advance Admin for your help.

 

//GRID

$("#grid").kendoGrid({
        dataSource: {
            type: "json",
            transport: {
                read: "Grid/Ratings_Read",
                cache: false
            },
            schema: {
                model: {
                    fields: {
                        ProductSkill: { type: "string" },
                        RateID: { type: "int" },
                        RateValue: { type: "int", defaultValue: { RateID: 1} },
                        ItemCategoryName: { type: "string", title: "Category" },
                        GroupName: { type: "string", title: "Group", }
                    }
                }
            },
            pageSize: 20,
            batch: false,
            group: [
                {
                    field: "GroupName", dir: "asc"
                },
                {
                    field: "ItemCategoryName", dir: "asc"
                }
            ]
        },
        height: 550,
        filterable: true,
        selectable: true,
        sortable: true,
        pageable: true,
        columns: [{
            field: "ProductSkill",
            title: "Skill",
            //format: "{0:MM/dd/yyyy}"
        }, {
            field: "RateID",
            title: "RateID",
            hidden: "true"
        }, {
            field: "RateValue",
            title: "Rating",
            editor: ratingDropDownEditor, template: "#=RateDisplay#"
        }, {
            field: "RateAssocID",
            title: "RateAssocID",
            hidden: "true"
        }, {
            field: "ItemID",
            title: "ItemID",
            hidden: "true"
        }
        ],
        editable: true,
        change:  onRowChange

    });

//END GRID

 

//DROPDOWNLIST

function ratingDropDownEditor(container, options) {
        $('<input required name="' + options.field + '"/>')
            .appendTo(container)
            .kendoDropDownList({
                autoBind: false,
                dataTextField: "RateDisplay",
                dataValueField: "RateID",
                dataSource: {
                    type: "json",
                    transport: {
                        read: "Grid/Rate_Read"
                    }
                },
                change: onDropDownChange
            });
    }

    function onDropDownChange(e) {
        list = e.sender;
        var currentListSelected = list.dataItem(this.select());

        $.ajax({
            url: "Grid/Rating_InsertUpdate?rateAssocID=" + currentRateItem.RateAssocID + "&itemID=" + currentRateItem.ItemID + "&rateID=" + currentListSelected.RateID, success: function (result) {
                //alert(result);
                
            }
        });
    }

//END DROPDOWNLIST

Viktor Tachev
Telerik team
 answered on 30 Oct 2018
3 answers
376 views

Hi,

When I add a window with a draggable containment that changes with browser resizing the kendo window is limited to the containment elements original browser size.

1. run the example with a small browser window.

2. resize the browser to make it bigger.

3. try to resize the kendo window to make it bigger, it will not get bigger than the original containment size.

https://dojo.telerik.com/axuRUkiq/3

Is there an initialization function that I can call to reset the containment? I can kind of fix it by setting the maxHeight, maxWidth options on the window resize.

Thanks.

Ivan Danchev
Telerik team
 answered on 30 Oct 2018
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?