Telerik Forums
Kendo UI for jQuery Forum
1 answer
272 views

Hi, 

We are using the scheduler control with two resources. 

resources: [
            {
                field: "company"'
                name: "Company",
                dataSource: [
                    { text: "Company 1", value: 1, color: "#6eb3fa" },
                    { text: "Company 2", value: 2, color: "#f58a8a" }
                ],
                title: "Company"
            },
            {
                field: "employee",
                name: "Employee",
                dataSource: [
                    { text: "Alex", value: 1, color: "#f8a398" },
                    { text: "Bob", value: 2, color: "#51a0ed" },
                    { text: "Charlie", value: 3, color: "#56ca85" }
                ],
                title: "Employee"
            }
        ]

And we use the two resources to group the scheduler.

  group: {
            resources: "Company", "Employee"],
            orientation: "vertical"
        }

But in our scenario we do not have employees who work for more than one company. There is an one-one mapping between the employee-company.
So I would like to if there is a possibility to hide/not-display or disable the group catergories created without data.

Example:

Company          Employees

1                      Alex, Bob
2                      Charlie, Daphne

So I would like to hide the groups 1-Charlie, 1-Daphne and 2-Alex, 2-Bob in the scheduler as there 4 section will always be empty.

Nencho
Telerik team
 answered on 02 Nov 2018
5 answers
989 views

Hello,

The PDF generated by kendo chart seems to have  a problem dealing with accents.  I attached an image showing 3 export made from the same chart.  Please note that MontrĂ©al is displayed correctly in the PNG and the SVG but not in the PDF.

This issue is not only the the categories, it also occurs in the title and legend.

Can you confirm if this is a bug and if it could get fixed? 

Best regards,

Simon

 

 

Pisith
Top achievements
Rank 1
 answered on 02 Nov 2018
4 answers
191 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
978 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.4K+ 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.4K+ 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
350 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
232 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.4K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?