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.
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
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.
Was looking into documentation for deactivating or suppressing tabs and discovered a potential issue with the deactivateTab method:
Am I missing something?
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!
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
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,
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.