Telerik Forums
Kendo UI for jQuery Forum
7 answers
709 views

I have a grid with remote datasorce. An I had jquery function called on specific event, which changed the grid data :

 function approve(e) {
            var grid = $("#grid").data("kendoGrid");
            var tr = $(this).parents("tr");
            var dataItem = grid.dataItem(tr);
            if (dataItem != null) {
                    dataItem.set("Approved", true);
                    dataItem.set("ApprovalDate", new Date());
                }
        }

This function worked and updated the datasource and the data in the grid. After we upgraded to the version 2016.1 12, the code stopped working. I found the alternative which is working:

 

function approve(e) {
            var grid = $("#grid").data("kendoGrid");
            var tr = $(this).parents("tr");
            var dataItem = grid.dataItem(tr);
            if (dataItem != null) {
                    dataItem.Approved = true;
                    dataItem.ApprovalDate = new Date();
                 
                }
            }
            grid.refresh();
        }

Why the old approach is not working anymore? It is a huge problem for us, because a lot of old code is broken. What is the correct way to update data in the grid programmatically?

Rosen
Telerik team
 answered on 22 Feb 2016
6 answers
778 views
How would I go about constructing a string value for the drillpath to the current node?

In breadcrumb form it might look like this:
  level-1-node-text > level-2-node-text > level-3-node-text > level-4-selected-node-text
or 
  Tools>Carpentry>Hammer>Lightweight>Stanley

Thanks,
Richard
Alex Gyoshev
Telerik team
 answered on 22 Feb 2016
7 answers
1.7K+ views

I would like to get an example of using Kendo RadioButtonFor control which is not working whatever way I use.
For example I am using it following way insode my Editor Template for Kendo Grid

@(Html.Kendo().RadioButtonFor(model=>model.IsMale).Value(true).Name("IsMale").Label("Male").Checked(Model.IsMale))  @(Html.Kendo().RadioButtonFor(model=>model.IsMale).Value(false).Name("IsMale").Label("Female").Checked(Model.IsMale))

It does not show correct radiobutton selected no matter isMale is true or false....
I'd appreciate any good example....

 

Thanks
Rizwan

Alex Gyoshev
Telerik team
 answered on 22 Feb 2016
3 answers
5.4K+ views
Hi guys, I can't figure out how to change the title after initializing my kendo win.
MyNamespace._myWin =
       $("#recapitoWin").kendoWindow({
       modal: true,
       width: 600,
       visible: false,
       title: "add user"
}).data("kendoWindow");
Now I use this window for add and modify users...
when I need to modify I set the title as follow
MyNamespace._myWin .title = "Edit User";
the result is that the title is still "add user"..no changes.
i tried also
$("#recapitoWin").kendoWindow({
            title: "Edit User"
        }).data("kendoWindow");
but still no changes..
what am I doing wrong?
thanks!
Coty
Top achievements
Rank 1
 answered on 20 Feb 2016
1 answer
64 views

I have 2 grids on my page.  The first contains a list of customers.  When a customer is selected in the first grid, a second grid populates with the customer's phone numbers.  When I edit a phone number in the second grid, the selected row in the customers grid becomes unselected.  What's causing this behavior and how can I prevent it? 

Here's a fiddle demonstrating the problem:

https://jsfiddle.net/6kdvC/139/

 

Thanks! 

Trevor
Top achievements
Rank 1
 answered on 19 Feb 2016
1 answer
67 views
I am trying use the Filter for the GRID. when I use the  Kendo Professional  version 2016.1.112 it does not give the  Multi  Check box filter. But If I  use Kendo Professional 2015.2.805   that works fine. Is it a bug or any thing changed in this new version? 
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 19 Feb 2016
1 answer
114 views

I have a Kendo chart that receives data from the server using Angular. While loading I have an overlay that displays to show that the data is loading. That works fine, but if I receive an error on my promise call I would like to display another message (i.e. "Could not retrieve data"). Below is a sample of what my call looks like.

1.service.getData(request)
2.    .then(function (result) {
3.        options.success(result.data.data);
4.        // at this point either dataBound or Render is called and I can remove the overlay.
5.    }).catch(function (error) {
6.        options.error(error);
7.        // What can I call here to change the message in my overlay?
8.    });

Basically, what can I do in my catch to change the message on my overlay?
T. Tsonev
Telerik team
 answered on 19 Feb 2016
1 answer
181 views

Hello,

I have an issue with Firefox and the DatePicker.

The further down I scroll on the page, the further down the datepicker is placed compared to the input element (where it is placed). Eventually it opens outside the visible area and you cannot interact with it (due to it being placed outside the view).

Any solution to this?

Viktor Tachev
Telerik team
 answered on 19 Feb 2016
4 answers
595 views

Hi,

I would like to customize the spreadsheet for my application. But I can't figure out how.

I would like to remove the contextual tabs, the undo/redo buttons, the toolbar and the formula bar.

But it may be useful to keep the "header" where these "components" are right now.

How can I do that?

Thanks.

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 19 Feb 2016
2 answers
330 views

I have been playing around with a local copy of the pie chart using remote data, as per this demo http://demos.telerik.com/kendo-ui/pie-charts/remote-data-binding

 

The chart is rendering just fine. However, when I update the data on the server the chart does not update until I prompt it to with this;

$("#chart").data("kendoChart").dataSource.read();

 

I found this post in the forums, perhaps the wording is misleading, but it suggests that it should "automatically refresh".

http://www.telerik.com/forums/update-datasource#6D639C0ai0Sf57uQiljUug

 

Maybe I am missing something? Here is my source code;

 

<!DOCTYPE html><html><head>
    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.112/styles/kendo.common-material.min.css" />
    <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.1.112/styles/kendo.material.min.css" />
    <script src="//kendo.cdn.telerik.com/2016.1.112/js/jquery.min.js"></script>
    <script src="//kendo.cdn.telerik.com/2016.1.112/js/kendo.all.min.js"></script>
</head>
<body>
<div id="example">
    <div class="demo-section k-content wide">
        <div id="chart"></div>
    </div>
    <script>
        function createChart() {
           $("#chart").kendoChart({
               dataSource: {
                   transport: {
                       read: {
                           url: "http://www.jamiekdonnelly.co.uk/stuffs/data.json",
                           dataType: "json"
                       }
                   }
               },
               title: {
                   text: "Title"
               },
               legend: {
                   position: "top"
               },
               seriesDefaults: {
 
               },
               series: [{
                   field: "percent",
                   categoryField: "resolution",
                   padding: 0,
                   type: "pie",
                   labels: {
                        visible: true,
                        background: "transparent",
                        template: "#= kendo.format('{0:P}', percentage)#"
                    }
               }],
               tooltip: {
                   visible: true,
                   format: "N0",
                   template: "#= kendo.format('{0:P}', percentage)#"
               }
            });
        }
        $(document).ready(createChart);
        $(document).bind("kendo:skinChange", createChart);
        // Useing this to update the chart
        //$("#chart").data("kendoChart").dataSource.read();
    </script>
</div></body></html>

T. Tsonev
Telerik team
 answered on 19 Feb 2016
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?