Telerik Forums
Kendo UI for jQuery Forum
6 answers
606 views

I have the following function which works perfectly in Chrome but not IE11.

 

kendo.drawing.drawDOM($(".pagePDF"), { forcePageBreak: ".page-break" })
        .then(function (group) {
            var PAGE_RECT = new kendo.geometry.Rect([0, 0], [mm(215.9 - 25), mm(279.4 - 25)]);
 
            var content = new kendo.drawing.Group();
            content.append(group);
 
            //kendo.drawing.align(content, PAGE_RECT);
            kendo.drawing.fit(content, PAGE_RECT);
            kendo.drawing.pdf.saveAs(group, $("#Nom").val() + ".pdf");
             
            return kendo.drawing.exportPDF(content, {
                paperSize: "Letter",
                margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" },
                Landscape:true                   
            });
        })

 

It starts working in IE11 if I take out the forcePageBreak. If there are any properties, the "then" instruction is never executed. There is just nothing happening.

And, again, it is working fine in Chrome.

 

Can anybody help me with this problem?

Thanks in advance!

Erwin
Top achievements
Rank 1
 answered on 08 Nov 2018
5 answers
1.7K+ views

Hello Telerik,

I'm currently trying to get some columns in a KendoUI Grid to display a value OTHER than the value I want to pass in the "read" function to use in filtering the servery side query.  Right now all the other columns are using the actual displayed value to pass back to the filtering query on the backend.  So we're frequently using strings like "John Doe, Jane Doe" instead of a lstUserIDs "1,2" because we can't seem to get filtering functions to pass the id values instead of display values.  Here's a sample of the actual case in question.  I wasn't able to determine from the serverside demo in the docs how this might be accomplished, or even if it could.  

With the column configured as below, I end up with an error "VM8499:3 Uncaught ReferenceError: asset_class_nm is not defined".  Changing the inner field to "asset_class_nm" works, but then I again have a text list of the names instead of the list of internal bigint IDs that I'd like.  Thanks!

,{         
                    field: "asset_class_nm",
                    title: "Asset Class",
                    attributes: {
                        style: "text-align: left;"
                    },
                    filterable: {
                        dataSource: {
                                transport: {
                                    read: {
                                        url: "srv_get_asset_classes.cfm",
                                        dataType:"json",
                                        data: {
                                            field: "asset_class_id"
                                        }
                                    }
                                }
                        },
                        multi: true
                    }
                }
Alex Hajigeorgieva
Telerik team
 answered on 08 Nov 2018
1 answer
101 views

hello,

i'm trying to Integrate kendoDraggable with kendoSortable (inside ListView)

here is an example : https://dojo.telerik.com/iZOfuNoW

 

i want to drag a button and drop it inside Sortable ListView 

Tsvetina
Telerik team
 answered on 07 Nov 2018
1 answer
574 views

My dropdownlist is absolutely fine until if surround it with an MVC if statement. It then becomes invisible, while the text around it is visible.

Before Adding If

  <b>Central Hub</b>
         
  @(Html.Kendo().DropDownList()
      .Name("postcodeServiceExclusionsHubSelector")
      .HtmlAttributes(new { style = "width: 70px;" })
      .DataTextField("DepotNumber")
      .DataValueField("DepotID")
      .BindTo(Model.CentralHubs)
      .OptionLabel("Select...")
)

After Adding MVC If Statement

@if (Model.CanSelectCentralHub)
{
    @:<b>Central Hub</b>
    @:      
    Html.Kendo().DropDownList()
        .Name("postcodeServiceExclusionsHubSelector")
        .HtmlAttributes(new { style = "width: 70px;" })
        .DataTextField("DepotNumber")
        .DataValueField("DepotID")
        .BindTo(Model.CentralHubs)
        .OptionLabel("Select...");
     
    @:            
}

 

Dimitar
Telerik team
 answered on 07 Nov 2018
1 answer
175 views
I use  MultiColumnComboBox with MVVM  but I can't filter multi column. I tried filterFields and data-filterFields  attribute  but could not run . Source code is below. 
Thanks for your help

<input data-role="multicolumncombobox"
                   data-filter="contains"
                   data-filterFields= "[ProductName, ProductID]"
                   data-placeholder="Type a product e.g. 'Chai'"
                   data-text-field="ProductName"
                   data-value-field="ProductID"
                   data-columns="[
                   {field: 'ProductID', title: 'Urun Kodu'},
                   {field: 'ProductName', title: 'Urun Adı'}
                   ]"
                   data-bind="value: selectedProduct,
                              source: products
                              }"
                   style="width: 100%" />
Plamen
Telerik team
 answered on 06 Nov 2018
1 answer
178 views

I use  MultiColumnComboBox with MVVM  but I can't filter multi column. I tried filterFields and data-filterFields  attribute  but could not run . Source code is below. 

Thanks for your help

 

<input data-role="multicolumncombobox"
                   data-filter="contains"
                   data-filterFields= "[ProductName, ProductID]"
                   data-placeholder="Type a product e.g. 'Chai'"
                   data-text-field="ProductName"
                   data-value-field="ProductID"
                   data-columns="[
                   {field: 'ProductID', title: 'Urun Kodu'},
                   {field: 'ProductName', title: 'Urun Adı'}
                   ]"
                   data-bind="value: selectedProduct,
                              source: products
                              }"
                   style="width: 100%" />

Plamen
Telerik team
 answered on 06 Nov 2018
6 answers
323 views

Hi,

 

Is there any way that I can load the column settings of kendo grid using an XML. I will have the columns settings such as Column Name, width, visibility,order of display saved in a form of an XML some where in the configuration. User can manipulate the XML based on how he want to view the columns, so he has the complete command on which columns to display and in what order. There is always an option of reading the XML, form a Array of objects and assign it to "columns" property in the grid.

But is there any way that I can read that XML directly from a source and load or assign it to property so that my job gets easier?

 

Thanks,

Sag

Konstantin Dikov
Telerik team
 answered on 06 Nov 2018
3 answers
234 views

Hi!

I am attempting to add required validation to a text cell.

Here's a demo attempt: https://dojo.telerik.com/uPoZUgAy/3

I only succeed if I uncomment the function in the "from" property, otherwise it crashes. 

The fix I found is probably a hack-y approach, so I am opening this thread to find the recommended approach for my situation...

 

Thanks!

Marin Bratanov
Telerik team
 answered on 06 Nov 2018
1 answer
4.6K+ views
I have a grid (integrated into ember/javascript) with an ajax response assigned as its datasource. Based on the response I can come up with my column title and width and i want to assign that to my grid. But everything i do i dont see any change reflected to the grid. I was wondering how i can change column properties after grid initialization.
Konstantin Dikov
Telerik team
 answered on 05 Nov 2018
1 answer
69 views

Hi,

I would like to know how to make the DateInput / DatePicker of JQuery behave as in Angular, that is, when entering a date, when informing the day pass straight to inform the month, without having to use the right arrow.

Thank you

Sandro Paese

Konstantin Dikov
Telerik team
 answered on 05 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?