Telerik Forums
Kendo UI for jQuery Forum
1 answer
93 views
Using an inline editor in IE9, reproduce using the following steps:

1. Enter text into an empty inline editor
2. Bold the text
3. Move the focus to another input element by clicking into that element
4. Observe that the bold formatting disappears visually, though the Editor control indicates bold formatting is applied
5. If you have set up a means of saving the content, e.g. to localStorage, note that on page reload, the content displays with bold formatting

Further note that this behavior is intermittent. Sometimes we have observed that the bold formatting is never applied. Other times, the formatting works just fine, though changing focus generally causes the bold formatting to disappear.
Alex Gyoshev
Telerik team
 answered on 05 Mar 2014
1 answer
226 views
function ShowDiagnostics() {
    diagnosticDataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: "/DiagnosticBuilder/GetDiagnosticJSON",
                dataType: "json",
            }
        },
        pageSize: 10
    });
    var columns = [
        { title: "DiagnosticBuilderID", field: "DiagnosticBuilderID", hidden: true, type: "number", filterable: false },
        { title: "Template Name", field: "TemplateName", hidden: false, type: "string", filterable: false },
        { title: "Target", field: "Target", hidden: false, type: "string", filterable: false },
        { title: "No. of Questions", field: "NumberOfQuestions", hidden: false, type: "number", filterable: false },
        { title: "Action", field: "", hidden: false, type: "string", filterable: false }
        
    ];

    diagnosticGrid = $("#tblDiagnostics").kendoGridAcademy({
        columns: columns,
        dataSource: diagnosticDataSource,
        rowTemplate: kendo.template($("#diagnosticRowTemplate").html()),
        filterable: true,
        pageable: true,
    });
    $(diagnosticGrid).refresh();
}
Petur Subev
Telerik team
 answered on 05 Mar 2014
1 answer
501 views
Hi, 

I'am evaluating hte DataViz graph and have troubles when printing the graph. Tried with the example: ../kendo/examples/dataviz/bar-charts/column.html
If I print this chart the 2 last months are truncated/not visible on the print (Google Chrome, printing with Ctrl+P)
T. Tsonev
Telerik team
 answered on 05 Mar 2014
7 answers
792 views
Hi,
The problem occurs when I add  the <script src="../../../js/kendo.dataviz.min.js"></script> to the  \examples\web\grid\index.html example. Then I refresh the IE window, a JS error "Microsoft JScript runtime error: Object doesn't support this action" occurs. If I change the "pagable:true"  in the \examples\web\grid\index.html to "pagable:false", the JS error disappears.  You can see the details in the attached image.
I have no idea why this happens. Can you give me a solution to fix it?

Any clue and suggestion is appreciated. thank you.
Atanas Korchev
Telerik team
 answered on 05 Mar 2014
4 answers
312 views
I can not seem to get a GeoJSON layer with MultiPoint data to display. My map code looks like this (using the ASP.NET MVC wrapper):

@(Html.Kendo().Map()
    .Name("map")
    .Center(39.50, -98.35)
    .Zoom(3)
    .Layers(x =>
    {
        x.Add().Type(MapLayerType.Tile).UrlTemplateId("http://tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png");
        x.Add().Type(MapLayerType.Shape)
            .Style(y => y.Fill(z => z.Color("#000000").Opacity(1)))
            .DataSource(y => y.GeoJson().Read(z => z.Action(MVC.MyController.Map())));
    })
   .Events(events => events
       .ShapeCreated("onShapeCreated")
    )
)
 
<script>
    function onShapeCreated(e) {
        alert('shape!');
    }
</script>

My action code looks like (using JSON.NET Linq):
public virtual ActionResult Map()
{
    List<Tuple<double, double>> coordinates = new List<Tuple<double,double>>(){
        new Tuple<double, double>(39.50, -98.35),
        new Tuple<double, double>(30.268107, -97.744821)
    };
 
    JObject featureCollection = new JObject(
        new JProperty("type", "FeatureCollection"),
        new JProperty("features", new JArray(
                new JObject(
                    new JProperty("type", "Feature"),
                    new JProperty("properties", new JObject()),
                    new JProperty("geometry", new JObject(
                        new JProperty("type", "MultiPoint"),
                        new JProperty("coordinates", coordinates.Select(c => new JArray(c.Item1, c.Item2)).ToArray())
                    ))
                )
            ))
        );
 
    ContentResult result = new ContentResult();
    result.Content = featureCollection.ToString();
    result.ContentType = "application/json";
    return result;
}

I have verified that the action gets called and that it generates the following GeoJSON file:
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "MultiPoint",
        "coordinates": [
          [
            39.5,
            -98.35
          ],
          [
            30.268107,
            -97.744821
          ]
        ]
      }
    }
  ]
}

None of the points are shown on the map. The alert in onShapeCreated also doesn't get called, which makes me think there's something wrong with the GeoJSON - but it looks good to me based on the specification. What am I missing?

Thanks,

Dave
T. Tsonev
Telerik team
 answered on 05 Mar 2014
1 answer
530 views
I want to get the updated / changed value of the drop down, when user change it while editing in console.log.

 
<script>
    $(document).ready(function () {
             
        $("#grid").kendoGrid({
            dataSource: {
                data: itemData(50),
                pageSize: 12,
                change: function(e) {
                    var item = e.items[0];
                    console.log(item.get("gridActionPlan.gridActionPlanID"));
                    
                }
            },
            height: 475,
            groupable: true,
            navigatable: true,
            sortable: true,
            filterable: true,
            resizable: true,
            columnMenu: true,
            pageable: true,
            toolbar: ["save", "cancel"],
            columns: [
                { field: "gridActionPlanID", values: actionPlanValues, title: "Action Plan", width: 200 },
                { field: "gridNewRetailSP", title: "New Retail SP", width: 120 },
                { field: "gridPercentEffectedStock", title: "% of Effected Stock", width: 150 },
                { field: "gridSales", title: "Sales", width: 150 },
                { field: "gridNetImpact", title: "Net Impact", width: 150 }],
            editable: true
        });
    });
 
 
 
 
    function itemData(count) {
        var data = [];
         
        for (var i = 0; i < count; i++) {
            data.push({
                gridActionPlanID : 0,
                gridActionPlan : {
                    gridActionPlanID : 0,
                    gridActionPlanName : "[Select Action Plan]"
                },
                gridNewRetailSP : 0,
                gridPercentEffectedStock : 0,
                gridSales : 0,
                gridNetImpact : 0
            });
        }
             
        return data;
    }
     
     
                
    var actionPlanValues = [{
        "value": 0,
        "text": "[Select Action Plan]"
    },{
        "value": 1,
        "text": "SP Adjustment / Display"
    },{
        "value": 2,
        "text": "Clearances"
    },{
        "value": 3,
        "text": "Return to Supplier"
    },{
        "value": 4,
        "text": "Inter-Store Transfer"
    },{
        "value": 5,
        "text": "Seasonal Import or Local"
    },{
        "value": 6,
        "text": "Bar Code Problem"
    },{
        "value": 7,
        "text": "Waste"
    },{
        "value": 8,
        "text": "Stock Problem"
    },{
        "value": 9,
        "text": "Display Piece"
    },{
        "value": 10,
        "text": "Color / Size / Range"
    }];
</script>
Nikolay Rusev
Telerik team
 answered on 05 Mar 2014
3 answers
632 views
I'm trying to apply a template to the chart serias label... Currently when I chose to make the series lable visible it displays the value exactly as saved in the database.  For instance if the value in the database is 0.621 then the value at the top of the column displays 0.621; however, on the tooltips I have added formatting that works and in this case I've asked the tooltip to round to two decimal places so in the tooltip it displays: 0.62  and the value 0.663 would round to 0.67.  I want to be able to apply the same format to the label on the series... hopefully the code below makes sense.. I can dummy it up without the model references if necessary... by the way the "thetemplateformat" is just a variable on the view... It works correctly for the tooltip but has no apparent affect on the series... Thanks..

series.Column(s => s.rate1_1).Name(Model.Rate01Lbl).Color(Model.Rate01Clr).Labels(l => l.Visible(Model.ShowChartValue_yn).Template(thetemplateformat));
Iliana Dyankova
Telerik team
 answered on 04 Mar 2014
1 answer
98 views
Hi,

We would like to do Instagram-like interface and have problem incorporating images with Listview.  We found out that ListView doesn't displayed correctly if we do not specify height of the image.  However, we cannot set image height for every devices.  Please advice. 
Petyo
Telerik team
 answered on 04 Mar 2014
1 answer
205 views
Hi,

I would like to make Instagram's grid-like interface.  Is it possible to do so using ListView?  

I have tried incorporating Endless Scroll and Pull to Refresh.  But the ListView has problem making it into grid interface.  

This is a piece of CSS that I am using:
ul#product-list > li {Width:50%; float:left;} 
Petyo
Telerik team
 answered on 04 Mar 2014
1 answer
81 views
All - we just had ran into an issue where the performance of row selection was painful in IE10+.  Looking on the forums, we saw that others have had issues with this and that it was "better" in the latest release.  The cause is apparently's IE's slow handling of the CSS ":not" selector.

We had to find a fix and believe we have traced it down to a problem in Kendo's code.  Basically, if you have a grid and you do NOT use Grouping or Footers, the code thinks you do and thus appends extra ":not" selectors to the CSS queries.  The fix for this assuming you DO NOT use grouping or footers is to set these templates to "".  The problem is Kendo does a !== "" check and if you don't define them and leave them undefined, it assumes you do have them.

Here is our code fix:

// Push the column info
columnInfo.push(
{
      // OMIT
      groupFooterTemplate: "",
       footerTemplate: ""

});

The offending code in Kendo is Line #26619 inside of _hasFooters


if (cols[j].footerTemplate !== "" || cols[j].groupFooterTemplate !== "") {
return true;
}


Hopefully this helps some.


Nikolay Rusev
Telerik team
 answered on 04 Mar 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Drag and Drop
Application
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?