Telerik Forums
Kendo UI for jQuery Forum
1 answer
434 views

I am checking out KendoUI for Angular.  

The DataQuery component mentions mvc integration (http://www.telerik.com/kendo-angular-ui/components/dataquery/mvc-integration/).

I went to (http://docs.telerik.com/aspnet-core/getting-started/getting-started#configuration-Add) on how to add the UI for ASP.NET Core.

The only thing I can find at the source is KendoUIProfessional.Trial.

What gives?  I am trying to get the mvc service extenstions like ToDataSourceResult.  

Ianko
Telerik team
 answered on 02 May 2017
2 answers
500 views

I would like to localize the "No data found" message in the grid when the column filter is not overriden. In my grid I have filterable mode="row" so by setting the column values to collection the filter will work as expected. Is there a way to easily override this label without customizing the filter? 

<kendo:grid-column title="Field1" field="field1">
    <kendo:grid-column-values value="${field1Values}"/>
 </kendo:grid-column>

 

I found the <kendo:grid-filterable-messages> tag which has options to translate a few properties, so I expected that this would be there too.

Thanks in advance.

Daniel

Daniel
Top achievements
Rank 1
 answered on 02 May 2017
13 answers
1.8K+ views

Hi 

I get some problem when I try to delete a record in Grid. They method will call the create and update method which is I don't want.

Please refer to pic1, my grid is batch update, I have one record in , then click Add new record button to add two new records but not save into database yet. At this moment, there are three records in grid, then I click the delete button on the third row, it will trigger the create method to transfer the two new records to the backend, this is I don't want, because I have not typed any value, it will get error in my backend.

So my question is there any way to ignore the create, update method when I click the delete button?

Below is the method of my custom Delete button.

function onDeleteConfirm_VendorSalesRepsGrid(e, obj) {
    e.preventDefault();
    var dataItem = obj.dataItem($(e.target).closest("tr"));
    CustomConfirmDialog("Are you sure you want to delete this Vendor Sales Reps?", function test2(result) {
        if (result === true) {
            var dataSource = $("#VendorSalesRepsGrid").data("kendoGrid").dataSource;
            dataSource.remove(dataItem);
            //If the id equal to 0, it means that this record does not existed in database. so no need to run the sync().
            if (dataItem.id != 0) {
                dataSource.sync();
            }            
        }
    });
}

 

Stefan
Telerik team
 answered on 02 May 2017
3 answers
365 views

Hi,

Facing issue with TreeView with  angular1. PSB code.

Problem: When i try to model my JSON for Checkbox Tree doesn't bind my attribute named "children" may be because the property name same!

Expected: As we change kendo default "text" property to custom "dataTextField", How can i replace "items" to "children"

 

HTML:

<div kendo-tree-view="tree"  k-data-source="dataSource"   k-options="options"   k-on-change="selecteditem=dataItem"> </div>

 

Angular:

 var schemaTree = {
        model: {
          //children: "items"
            children: "children"
          }
        };

        $scope.options = {
         dataTextField: "name",
          
          checkboxes: {
            checkChildren: true,
            template: "<input id='checkbox_#:item.uid#' ng-model='dataItem.isChecked' type='checkbox' class='k-checkbox'/><label for='checkbox_#:item.uid#' class='k-checkbox-label'></label>"
          },
          
          template: "#: item.name #"
        };

        $scope.treeData = [
          {
            "name": "Alex's family tree",
            "isChecked":true,
            "id": 44,
            "items": [
              {
                "id": 1,
                "name": "Reef",
                "isChecked": true
              },
              {
                "id": 2,
                "name": "Coraline",
                "isChecked": true
              }
            ],
            "children": [
              {
                "id": 1,
                "name": "Reef",
                "isChecked": true
              },
              {
                "id": 2,
                "name": "Coraline",
                "isChecked": true
              }
            ]
          }
        ];
        
        $scope.dataSource = new kendo.data.HierarchicalDataSource({
        data : $scope.treeData,
          schema: schemaTree
        });

 

Please let me know if you need more info on the same. Any help will be appreciated.

 

Regards,

Harish

Veselin Tsvetanov
Telerik team
 answered on 02 May 2017
2 answers
142 views

Hi, is there any way to filter rows in the spreadsheet by cell colour? Excel has this functionality - its called "Filter by Color or Filter Cell by color"

Thanks

Marc

Marc
Top achievements
Rank 1
 answered on 02 May 2017
1 answer
609 views

Hi,

 

I'm trying to figure out how to display the category name for each data series on a column chart (I'm trying to get to something like the attached picture).

For now I'm just hard coding up an example in an html template. and so far I have the following:

<kendo-chart [categoryAxis]="{ categories: ['Assets', 'Liabilities']}">
    <kendo-chart-title text="Balance Sheet" font="22pt Segoe UI">
    </kendo-chart-title>
    <kendo-chart-series-defaults type="column" [labels]="{ visible: true }">
    </kendo-chart-series-defaults>
    <kendo-chart-legend [visible]="false"></kendo-chart-legend>
 
 
    <kendo-chart-series>
        <kendo-chart-series-item [stack]="true" [gap]="0.5" [data]="[60000, 0]" [name]="'Current Assets'">
        </kendo-chart-series-item>
        <kendo-chart-series-item  [name]="'Capital & Reserves'" [data]="[0, 20000]">
        </kendo-chart-series-item>
        <kendo-chart-series-item  [name]="'Current Liabilities'" [data]="[0, 40000]" >
        </kendo-chart-series-item>
    </kendo-chart-series>
</kendo-chart>

 

Looking at the docs (SeriesLabel) I think I can add more to the labels json object I'm configuring on line 4. But I'm struggling to get the syntax correct.

Does anyone have any suggestions?

 

Daniel
Telerik team
 answered on 02 May 2017
5 answers
188 views

Can you look this example http://dojo.telerik.com/ebAkU/5.

When i use "editRow" method first time - all work good. But the second call "editRow" kendo grid do nothing. 

Did i do something wrong? Or it is a grid bug?

Dimiter Topalov
Telerik team
 answered on 01 May 2017
1 answer
739 views

I have a method which takes some data from the datasource and via a RESTful webservice, changes it. I then need to update the datasource items.

I am using AngularJS so I have tried updating the $scope variable which is used inside the read method of my datasource ie (in the below example I changed $scope.myLocalResults

read: function (options) {
    options.success($scope.myLocalResults);
}

And then called datasource.read() - however this turned out to be quite slow.

I have then tried just updating the changed records - ie my webservice returns an array of records (order guaranteed so I find the originally index of the record from $scope.myLocalResults, and then do:

var dataItem = dataSource.at(index);
dataSource.remove(dataItem);
dataSource.insert(index, myNewRecord);

 

However this is also quite slow - around 1 second per record, and I have around 2000 records.

Is there a quicker way to achieve what I want to do? I cannot simply using the .set method of the dataItem, as we have around 200 columns which could change.

Also - does .remove and .insert on the dataItem cause any datasource method to be fired, ie read or sync or something like that? I'm trying to work out why this is so slow, in comparison to other operations I am doing to the JS objects.

Thanks

Marc

Veselin Tsvetanov
Telerik team
 answered on 01 May 2017
1 answer
153 views

Good afternoon,

I am trying to implement some custom behaviour in a Scheduler during a move operation.

I am binding to the moveEnd event, and the API is very helpfully providing the destination slot and the resources associated with that slot. So far, so good. But I also require the origin slot and the resources associated with it. The moveEnd event does not provide this information. The moveStart event does not provide any information about slots or resources at all. My grouping resource allows multiple values, so I can't determine by looking at the event itself which of its several resources corresponds to the slot that was clicked at the start of the drag. How can I determine this information?

Plamen
Telerik team
 answered on 01 May 2017
4 answers
316 views

Hi, 

I have a aspgrid for which i am applying kendo grid ui. There are 2 columns in the grid, 1. BoundField 2. TemplateField in which i want to show KendoEditor control.

But KendoEditor UI is applied to only first row. I am expecting this will get applied to all the rows.

I have attached my aspx and aspx.cs code snapshots. 

 

Dharmavaram
Top achievements
Rank 1
 answered on 01 May 2017
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
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?