Telerik Forums
Kendo UI for jQuery Forum
1 answer
139 views

Hi,

When I select any text and try to format, then the entire text is getting formatted.

However, in the tools when I change the shift settings, only the selected text is getting formatted as expected.

Attached are the screenshots for the working and non-working scenarios. 

Could you please help me in this regard.

Thanks,

Pavan

Alex Gyoshev
Telerik team
 answered on 04 May 2015
1 answer
215 views

I have two sparkline charts.

A is using dataSource, B is using data.

How do I set the line width of B? (line width in A work fine).

Sparkline A

$(".item-dev-chart", sparkline).kendoSparkline({
    theme: "bootstrap",
    dataSource: itemDevDs,
    series: [{
        type: "line",
        field: "p",
        width: 2
    }],
    tooltip: {
        visible: false
    }
});

Sparkline B:

$t.kendoSparkline({
    theme: "bootstrap",
    data:$t.data("source").split(','),
    type: "line",
    chartArea: {
        background: "#f5f5f5"
    },
    tooltip: {
        visible: false
    }
});

Copying series options from A to B causes B to not show at all.


 

 

 

 

Iliana Dyankova
Telerik team
 answered on 04 May 2015
1 answer
664 views

Hi

I have a bunch of colums with fixed width and the last column which has percentage as width (I want it to occupy all the remaining space in the grid).

If the window is resized the last item disappears and the scrollbar only appears after the item before it starts to be hidden.

How can I have the scrollbar appear for the percentage width table column or perhaps is there some other way to have the last column occupy the remaining space of the grid.

Thanks

Dimiter Madjarov
Telerik team
 answered on 04 May 2015
3 answers
84 views

Hi

For some reason scrollbar doesnt work property with virtual: true when a schema.data object is specified. This works fine if the data is flat.

 

http://jsfiddle.net/9dn1qsoz/

Dimo
Telerik team
 answered on 04 May 2015
3 answers
967 views
Hi,

I am trying to render a kendo window within another kendo window, but it always appears on top of previous window.

below is the code, the nested div does not result into nested kendo window, even if the div/window is appended to parent div/window it still appear on top of previous window. 

any help is greatly appriciated

<div kendo-window="win2" k-title="'First Window'"
                 k-width="600" k-height="200" k-visible="false"
                 k-content="hello"
                 k-on-open="win2visible = true" k-on-close="win2visible = false">
                <div kendo-window="win3" k-title="'Second Window'"
                     k-width="400" k-height="200" k-visible="false"
                     k-content="hello"
                     k-on-open="win3visible = true">

                </div>
</div>

Kiril Nikolov
Telerik team
 answered on 04 May 2015
3 answers
563 views
I was working on a Code-Library Project.
This is a sample ASP.NET Web API test application.

I do see the success callback function being called, and "data" does seem to carry the expected json object array.

TestContract.cs & TestContoller.cs

public class TestContract
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Description { get; set; }
}
​
public class TestController : ApiController
{
    private IEnumerable<TestContract> getTestData()
    {
        return (new TestContract[] {
            new TestContract{ Id = 1, Name = "Name 1", Description = "Description 1" },
            new TestContract{ Id = 2, Name = "Name 2", Description = "Description 2" },
            new TestContract{ Id = 3, Name = "Name 3", Description = "Description 3" },
            new TestContract{ Id = 4, Name = "Name 4", Description = "Description 4" },
            new TestContract{ Id = 5, Name = "Name 5", Description = "Description 5" }
        }).AsEnumerable();
    }
...


app.js ( AngularJS module definition )

var app = angular.module('app', ['kendo.directives']);
 
app.filter("asDate", function () {
    return function (input) {
        return new Date(input);
    }
});

TestService.js AngularJS Service

(function () {
    'use strict';
 
    angular
        .module('app')
        .service('TestService', ['$http', TestService]);
 
    function TestService($http) {
        this.getData = getData;
 
        function getData() {
            return $http.get(rootUrl + 'api/test');
        }
    }
})();


TestController.js AngularJS Controller


(function () {
    'use strict';
 
    angular
        .module('app')
        .controller('TestController', ['$scope', 'TestService', '$http', TestController]);
 
 
    function TestController($scope, service, $http) {
        $scope.title = 'TestController';
 
        $scope.testGridOptions = {
            columns: [
                { field: "Id", title: "Column 1" },
                { field: "Name", title: "Column 2" },
                { field: "Description", title: "Column 2" }
            ],
            dataSource: {
                schema: {
                    data: "d"
                },
                transport: {
                    read: function (e) {
                        service.getData().
                        success(function (data, status, headers, config) {
                            e.success(data)
                        }).
                        error(function (data, status, headers, config) {
                            alert('something went wrong in test grid')
                            console.log(status);
                        });
                    }
                },
                pageSize: 5
            }
        };
    }
})();


Index.cshtml

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Index</h2>
 
<div data-ng-controller="TestController">
 
    <div>Controller: {{title}}</div>
 
    <div>Grid 2 Starts</div>
    <div data-kendo-grid="" data-k-options="testGridOptions"></div>
    <div>Grid 2 Ends</div>
 
</div>


Attachments :

1) Error.PNG
     shows the error I am getting in browser's Dev Tools console after sucess call back

2) transport service success callback has expected data.PNG
    showing the data-tip in Visual Studio with expected data.


If you'd like to investigate, I have a test application ready.
Please let me know if I have to remove something prior to upload.
I am not using any telerik's dlls but I do am using references to Kendo UI CDN libraries.
Kiril Nikolov
Telerik team
 answered on 04 May 2015
3 answers
179 views
Hi

I have stumbled across this file: http://cdn.kendostatic.com/2014.3.1411/js/messages/kendo.messages.de-DE.min.js

Can you tell me how to implement it so that I do not have to code every messages string myself?

I tried here:

http://dojo.telerik.com/IqIYI/22

Many thanks
Alexander Valchev
Telerik team
 answered on 04 May 2015
7 answers
364 views

I have custom buttons inside a table in my row template grid.

on click of the button,i need to get the corresponding  row values to perform some action.

How do we get the HTML control values of the row corresponding to the button click.

Dimiter Madjarov
Telerik team
 answered on 04 May 2015
9 answers
308 views
Hi (Kamen Bundev)

Based on previous post, I have found new problem with internal build under IE7 and 8 control no longer able to select item in the list using mouse.

Thanks,
Maxim
Maushmi
Top achievements
Rank 1
 answered on 04 May 2015
11 answers
270 views
Hi,
I'm successfully using the imageBrowser with localstorage when opening the the "PostsView". I would like to change the folder while in the view but can't get this to work. If I goto another view and set localstorage with a different value I can then open the posts view with the desired folder. I would like to change the folder that the editor uses when changin the select value on the $scope.$watch.

controller
// set all folder options for select control, read localstorage and set a default if not value
$scope.datasets = ["archival","blackfish","bluefish","boats","codfish","crew","fluke", "porgy","strippedbass"];
var lc = localStorage.getItem("galleryid");
if (lc !==undefined){
$scope.dataset = lc;
} else $scope.dataset ='crew';

$scope.$watch("dataset", function () {
     localStorage.setItem("galleryid",$scope.dataset); 
     $scope.editor.imageBrowser.read();
     $scope.$apply();
});$scope.tooloptions = {

tools: [
"bold",
...
],
imageBrowser: {
messages: {
dropFilesHere: "Drop files here"
},
transport: {
read: {
url:'api/galleryKendo/'+$scope.dataset,
type:'GET'
},
create: {
url: '/api/upload',
type: "POST"
},
thumbnailUrl:'api/gallerythumbsKendo/'+$scope.dataset,
uploadUrl: 'http://localhost:8013/upload',// '/api/gallery/crew',//'api/upload',
imageUrl: 'http://localhost:8013/images/'+$scope.dataset+'/{0}'
}
}

html
<textarea style="width:100%;height:500px" kendo-editor="editor" k-options="tooloptions"
k-encoded="false" ng-model="currentPost.postContent"></textarea>
Alex Gyoshev
Telerik team
 answered on 04 May 2015
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
Application
Map
Drag and Drop
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
ListBox
DropDownTree
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
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?