Telerik Forums
Kendo UI for jQuery Forum
5 answers
355 views

Hi,

I have managed to add a shape to my diagram doing the following:

<button onclick="addValueCheck()">Add Value Check</button>

function addValueCheck() {

        var shape = new kendo.dataviz.diagram.Shape({
            type: "rectangle",
            width: 240,
            height: 67,
            stroke: {
                width: 1,
                color: "#e8eff7"
            },
            fill: "#e8eff7",
            editable: true
        });
        var diagram = $("#diagram").getKendoDiagram();
        diagram.addShape(shape);
        diagram.bringIntoView(diagram.shapes);
    }

The shape is added to the diagram visually but when I try and click it I get a Javascript error. I have attached the page I am working on and the javascript error.

Boyan Dimitrov
Telerik team
 answered on 15 Jun 2017
1 answer
199 views

Inline editor's toolbar is not resized or moved with the editor when browser window is resized.
The issue is reproducible on demo page: http://demos.telerik.com/kendo-ui/editor/inline-editing. To reproduce just make toolbar appear and then resize browser window.

Can it be fixed / worked around?

Veselin Tsvetanov
Telerik team
 answered on 15 Jun 2017
1 answer
130 views

Hello, I've faced with issue when mousewheel  scrolling doesn't work for categorized bar chart/column chart. I believe that can be related to some options combination. Could you please take a look?

Please see example http://dojo.telerik.com/ataZe/2

Daniel
Telerik team
 answered on 15 Jun 2017
1 answer
153 views

I use Kendo UI diagram to represent a BPMN diagram (activity flow).

I also use Angular.

How can I bind an array of objects to the shapes Data Source, aka, every change to this array will mimic the same change in the Kendo UI diagram?

**Update**:
I found an example **without** Angular JS: http://dojo.telerik.com/ILUCOQ

Stefan
Telerik team
 answered on 15 Jun 2017
7 answers
791 views

Thank you in advance for any feedback!

I am attaching some sample code where I am binding data with grid; then setting the groupable option to true.  When I intend to use the group column two things happens.  One it displays the field name and not the title name, and the most important part it returns nothing.

 

Rocio

Alex Hajigeorgieva
Telerik team
 answered on 14 Jun 2017
1 answer
526 views
I hide rows using jQuery hide(). But after column sort (grid.refresh()) these rows are shown again. How to prevent this behavior? Or what method should I use to hide rows?
Preslav
Telerik team
 answered on 14 Jun 2017
8 answers
712 views

After hiding the Detail expand column the columns are no longer resizable, they do not even show the resize mouse over.

This is all it takes to break it:

 dataBound: function(e){                       
                  $("#grid").find(".k-hierarchy-cell, .k-hierarchy-col").hide();

}

If instead of hiding the columns I set their width to 1px it will work. I was hoping for a better solution to hiding the column and still allow the columns to be resized

here is the hacky working solution

                var cssObj = {};
                cssObj.width = "0.5px";
                  var columns = $("#grid").find(".k-hierarchy-cell, .k-hierarchy-col");
                columns.css(cssObj);
                columns.children().hide();

 

here is a dojo representing the problem.

 

http://dojo.telerik.com/@Delta/azaYU

 

Stefan
Telerik team
 answered on 14 Jun 2017
2 answers
365 views

Hi, 

I've noticed that the 'Clear' button is no longer visible for the Combo Box. An example can be found within the API, http://docs.telerik.com/kendo-ui/api/javascript/ui/combobox#configuration-clearButton.

Changing the 'clearButton' attribute to true or leaving it out has no affect.

Please Advise.

Thanks,
Grant

Grant
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 14 Jun 2017
2 answers
322 views
Hello,
I have of Each object has fields like passport, frequentFlyer number etc. I want to bind it with KendoUI MVVM I am using Inline Template (Template Stored at not in page of Both passport and frequentFlyer has difference DataSource and UI is DropdownList. 



@model List<Rezcue.ViewModel.APISViewModel>

        
<div id="APISItemContainer" data-template="APISTemplate" data-bind="source: apis">
    
    

</div>

<script id="APISTemplate" type="text/x-kendo-template">
   
    <div data-template="APISsegmentTemplate" data-bind="source: segment"></div>
    
    <div id="viewModelDiv" data-template="viewModelDivTemplate" data-bind="source: ViewModelData">



    </div>

   
    </script>

<script id="APISsegmentTemplate" type="text/x-kendo-template">
    Segment:
    <label data-bind="text: SegmentDetailsToDisplayPricing"></label>
    

</script>

<script id="viewModelDivTemplate" type="text/x-kendo-template">
    
    <div id="PaxDiv" data-template="PaxDivTemplate" data-bind="source: PaxInfo">
      


    </div>


</script>

<script id="PaxDivTemplate" type="text/x-kendo-template">
   <label data-bind="text: PersonName"></label>
    <select class="ffselect" data-role="dropdownlist"
            data-auto-bind="false"
            data-text-field="Description"
            data-value-field="Code"
            data-bind="source: frequentFlyer,value: FrequentFlyernumber"></select>

    <select class="ppDSselect" data-role="dropdownlist"
            data-auto-bind="false"
            data-text-field="Description"
            data-value-field="Code"
            data-bind="source: ppDS,value: PassportNumber"></select>

</script>

<script type="text/javascript">
   
    var apisViewModel = null;
    var frequentflyer = null;
    var ppDS = null;
        $(document).ready(function() {

             frequentflyer = kendo.observable({
                frequentFlyer: new kendo.data.DataSource({
                    transport: {
                        read: {
                            data: { TravellerId: 5 },
                            url: rootUrl("GetData/GetFrequentFlyerData"),
                            dataType: "json"
                        }
                    },
                }),
            });

             passp= kendo.observable({
             ppDS : new kendo.data.DataSource({
                transport: {
                    read: {
                        type: 'GET',
                        data: { TravellerId: 5 },
                        url: rootUrl("GetData/GetPassportData"),
                        dataType: "json"
                    }
                }
            })
           });

            apisViewModel = kendo.observable({
                apis: [
                    {
                        segment: @Html.Raw(Json.Encode(Model.Select(x => x.Segment))),
                        ViewModelData: @Html.Raw(Json.Encode(Model))
                        
                    }]
            });

            kendo.bind($("#APISItemContainer"), apisViewModel);
            //kendo.bind($("#s"), frequentflyer.frequentFlyer);
            //kendo.bind($("#as"), passp.ppDS);

            kendo.bind($(".ffselect"), frequentflyer.frequentFlyer);
            kendo.bind($(".ppDSselect"), passp.ppDS);


        });

      

</script>

Dimitar
Telerik team
 answered on 14 Jun 2017
1 answer
329 views

I have a grid column with a mouseover tooltip based on data from other columns using a client template javascript function.

When the users load their own options using a setOptions function, the tool tip disapears from that column when the setoptions method specifies a different column order.

I'm seeing this with different tooltip methods: the kendo tooltip widget, the bootstrap data-toggle widget and just having the mouseover of the title on the cell. Oddly the background color that is also dynamically applied via the same client template function is preserved.

 

Any explanation for this behavior?

Stefan
Telerik team
 answered on 14 Jun 2017
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?