Telerik Forums
Kendo UI for jQuery Forum
3 answers
479 views

I am displaying an image in a grid via a template and I use a web service to get that image.  After I have updated a row via the update popup, the image does not get refreshed.  I need to force the grid to call the web service again.

            {title: "Modified Drawing",
             template: function(data){return getModifiedDrawingTemplate(data) },
                filterable: false
            },
 
function getModifiedDrawingTemplate(data) {
    var url = buildWebServiceUrl(retrieveDrawingUrl, data.CORR_DETAIL_ID, "new", "SVG", "250");
    return '<img src="' + url + '" />';
}

 

Could you please tell me how to do this?  The column is not bound to the data as such so I can't use the bind method.

Stefan
Telerik team
 answered on 01 Jun 2017
2 answers
552 views

Hello,

There is a way for block a event propagation for a specific time or to wait a specific event?

example:

01.var index = 0;
02. 
03.function OnSelect(e){
04.        index = $(e.item).index();
05.    if(condition){
06.        setTimeout(function(){
07.            OnShow();
08.        },
09.        3000);
10.    }else{
11.        "no wait and run OnShow()....but only when the new url document is ready!";
12.    }
13.}
14. 
15.function OnShow(){
16.    console.log("onShow only after timeout");
17.    switch(index){
18.        case 0:
19.            ViewModelUrl1.someCalc(); // if no document ready --> error!
20.            break;
21.        case 1:
22.            ViewModelUrl2.someCalc(); // if no document ready --> error!
23.            break;
24.    }
25.}
26. 
27.var tabstrip = $("#tabstrip").kendoTabStrip({
28.    animation: {open: {effects: "fadeIn"}},
29.    show: OnShow,
30.    select: OnSelect,
31.    contentUrls: [
32.        'url1',
33.        'url2,
34.    ]
35.}).data('kendoTabStrip');

 

 

Best regards,

Manlio

Manlio
Top achievements
Rank 1
 answered on 01 Jun 2017
1 answer
139 views

I was following the example on the documentation here.

The code mentions setting the "type" of the datasource to "webapi", but when you do this you get a script warning: "Unknown DataSource transport type 'webapi'.".

...
        pageable: true,
        sortable: true,
        dataSource: {
            type: "webapi",
            transport: {
                read: {
...

 

Not sure if this a typo or just out of date.

Stefan
Telerik team
 answered on 01 Jun 2017
1 answer
306 views
Is there any way to create a scatter line chart with a navigator attached to it, similar to the stock charts? We are looking to display continuous data rather that daily/weekly/monthly aggregates, which looks like it rules out the stock charts.
Stamo Gochev
Telerik team
 answered on 01 Jun 2017
1 answer
104 views

Was looking into documentation for deactivating or suppressing tabs and discovered a potential issue with the deactivateTab method:

  • Go to http://docs.telerik.com/kendo-ui/api/javascript/ui/tabstrip#methods-deactivateTab
  • Click "Open in Dojo"
  • Run the sample

Am I missing something?

Ivan Danchev
Telerik team
 answered on 01 Jun 2017
2 answers
426 views

So I may be missing something quite obvious, but I've been stuck on this for the past day.

I've got a source listbox with a destination listbox to the right. Let's say the datasource of the source listbox is optionList, and the datasource of the destination listbox is selectionlist. It appears selectionList does not get populated with the items moved from the source to destination listbox.

Am I looking in the wrong place to find the output list? It seems this is a new(er) feature so documentation and forum posts are light. I appreciate any help, thanks!

Mick
Top achievements
Rank 1
 answered on 31 May 2017
3 answers
419 views

Hi!

It seems like the popup notifications overlap and the last word of short notification texts slips to the next line, when I limit their max-width and set the font-size in pt units.

Here is a demonstration of the bug (don't forget to make the browser window narrow first, so that longer notification texts need get wrapped automatically): http://dojo.telerik.com/iwiXE/13

When you change the font-size units to px, then the popup notifications work as expected. So it seems like the notification widget has a problem with font-size set in pt units. Or maybe I have to set the max-width in a different way?

 

What font-size and div size units are recommended generally when I want to create responsible web apps with Kendo UI? I am using vw and vh units for divs.

 

Best regards,

Kaan

Dimitar
Telerik team
 answered on 31 May 2017
1 answer
172 views

Hello,

Is it possible to fill the datasource of shapes and the datasource connection without using read method for both datasources, like in grid when loading local data ? 

@(Html.Kendo().Diagram(Model.Ds, Model.DsCnx)
          .Name("diagram")
          .DataSource(d => d
              .ShapeDataSource()
              .Model(m =>
              {
                  m.Id(s => s.Id);
                  m.Field(s => s.Id).Editable(false);
                  m.Field(s => s.Name).Editable(false);
                  m.Field(s => s.CodeMst).Editable(false);
                  m.Field(s => s.NbEl).Editable(false);
                  m.Field(s => s.NbImbCode).Editable(false);
                  m.Field(s => s.ObjType).Editable(false);
                  m.Field(s => s.ObjectId).Editable(false);
                  
              })

          )
          .ConnectionsDataSource(d => d
              .Model(m =>
              {
                  m.Field(c => c.From);
                  m.Field(c => c.To);
              })

          )
          .Events(e => e.DataBound("onDataBound"))
          .Layout(l => l
              .Type(DiagramLayoutType.Tree)

              .LayerSeparation(50)
              .Subtype(DiagramLayoutSubtype.Right)
              .NodeDistance(20)
          )
          .Editable(true)
          .ShapeDefaults(sd => sd
              .Visual("visualTemplate")
          )

         .Pannable(true)
              .Zoom(0.7)
)

Best regards, 

Boyan Dimitrov
Telerik team
 answered on 31 May 2017
7 answers
967 views
hello this my controller
How to bind data would ? and How can I bind Guid?

example : ?
{
            field: "GUID",
            title: ""   
        }, {

// northwind database

 [WebMethod]
        [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
        public JsonResult GetCustomer()
        {
            _CustomerItems.AddRange(_CustomerProcess.GetCustomer());  
            JsonResult js = Json(_CustomerItems);   // ( 91 records ready )
            return js;
        }

<html>
<head>
</head
<body>
<div id="grid"></div>
</body>
</html>


function GridDataBind(modul) {
    
    $("#grid).kendoGrid({
        dataSource: {
            type: "odata",
            transport: {
                read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
            },
            pageSize: 10
        },
        groupable: true,
        sortable: true,
        pageable: {
            refresh: true,
            pageSizes: true,
            buttonCount: 5
        },
        columns: [{
            field: "CompanyName",
            title: "Company Name",
            width: 140
        }, {
            field: "ContactTitle",
            title: "Contact Title",
            width: 190
        }, {
            field: "CompanyName",
            title: "Company Name"
        }, {
            field: "Country",
            width: 110
        }]
    });
}
Alex Hajigeorgieva
Telerik team
 answered on 31 May 2017
3 answers
114 views

is there any way to set specific size of PolarLine Chart (not the ChartArea, the chart)

In the image it can be seen the "space reserver to I don't know what" 

So there is two options, determine the size of Chart, or equalize the size of chart to the ChartArea.

 

Stamo Gochev
Telerik team
 answered on 31 May 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?