Telerik Forums
Kendo UI for jQuery Forum
3 answers
262 views
I have an angular widget that I'm placing into an angular kendo grid table row. In this widget, you can enter some text for a tag and this will be communicated to a rest endpoint and then updated within the widget on the data set. In regular angular, the two way data binding will automatically update this to whatever is associated with the same data set. In addition, you can use the scope chain for publish/subscribe events ($broadcast, $emit, $on) to listen for change events. When I place the widget into the kendo layout, it will render and update it's own data set, but this will not propagate to the other data sets. In addition, events on the scope chain won't emit up to the parent containers. So at some point, kendo is creating a new scope without inheriting from the parent scope (or so it seems). 

So the question is...how do we bind the data, or scope so that we can update other display items that rely on the binding? It doesn't seem possible with the grid.

Any help is appreciated.
Georgi Krustev
Telerik team
 answered on 10 Sep 2014
6 answers
188 views
We are using angular binding per below to bind our Kendo UI grid. What is standard Kendo process for binding grid data source to grid?

We want to replace Kendo-Angular directive for binding with Kendo code.

Thanks,

Bradley


Current kendo-angular binding:

<div>
                                <div id="mainGrid" kendo-grid k-options="gridOptions" k-rebind="gridOptions.selectable"
                                     k-on-change="handleChange(selected, data, dataItem, columns)"></div>
                            </div>
Petur Subev
Telerik team
 answered on 10 Sep 2014
1 answer
2.5K+ views
Hi, I'm wanting to put a css class on dropdownlist but unsure how to do.  I have a "width100percent" css class, but just doing inline styles at moment.

​ @(Html.Kendo().DropDownListFor(m => m.SecurityQuestion1Id)
 .DataTextField("Item2")
 .DataValueField("Item1")
 .BindTo(Model.SecurityQuestionOptions)
 .HtmlAttributes(new { style = "width:100%;" })
 )

Iliana Dyankova
Telerik team
 answered on 10 Sep 2014
2 answers
90 views
How do I tell button X in the navbar to open view Y in my layout?
Petyo
Telerik team
 answered on 10 Sep 2014
8 answers
946 views
I am writing an order-entry system using Angular with Kendo-UI.  To add lines to an order, the user will either scan a barcode or pick an item using an item-lookup grid.  When an item is picked, the popup edit/add form for order line grid should open up with most of the fields pre-populated with values based on the item picked.  The custom edit form contains many read-only informational fields that the sales person needs to see when adding the item, such as item #, description, manufacturer, manufacturer's part number, cost, etc., along with some editable fields such as quantity and price.   

Here is the HTML snippet that renders the line grid as well as a simple addButton to simulate an item being picked from the item lookup grid:
<div id="wrapper" class="container-fluid" ng-controller="ticketEntryController">
  <div ng-controller="ticketLineController">
      <div kendo-grid="ticketLineGrid" k-options="getTicketLineGridOptions()"></div>
  </div>
  <button id="addButton" ng-click="addRow()" class="btn btn-primary btn-sm">Add Row</button>
</div>

Here is the ticketEntryController:
(function () {
    'use strict';
    angular.module('app').controller('ticketEntryController', ticketEntryController);
 
    function ticketEntryController($scope) {
        $scope.lineGrid = {};
        $scope.addRow = function () {
          var item = { itemNo: 'TEST123', itemDescr: 'Some description' };
          $scope.$broadcast('AddRow', item);
        }
    }
})();

Here is part of the ticketLineController:
function ticketLineController($scope) {
    $scope.$on('AddRow', function(event, item) {
        console.log("ticketLineController, AddRow: " + item.itemNo);
        $scope.itemNo = item.itemNo;
        $scope.itemDescr = item.itemDescr;
        $scope.ticketLineGrid.addRow();
    });

When the Add Row button is clicked, the editor popup form opens up, but all fields are empty. How can I populate the fields (like they are when you click the Edit button for an existing row)?  Also, of course the sales person could click Cancel from the edit form, in which case the item should not be added to the order line grid.

Here is a Plunker

Thanks,
Lars

Lars
Top achievements
Rank 1
 answered on 10 Sep 2014
4 answers
247 views
Hi,

I'm using the visible bind and it's working perfectly. The thing is I would like the element to show with an animation. Anybody have any idea how to do this?

Thanks in advance!
J
Top achievements
Rank 1
 answered on 09 Sep 2014
1 answer
1.6K+ views
On this http://dojo.telerik.com/oPePO example hide filter on column name?

filterable: {
                    cell: {
                        enabled: false
                    }
                }

This option is ignored ?
Dimiter Madjarov
Telerik team
 answered on 09 Sep 2014
1 answer
246 views
How to call an angular controller method from kendo template? Controller is defined as data-ng-controller="feedbacksSurveyReportCtrl as vm" and the call to vm.couponStatusAsString fails with vm as undefined.



​
<script type="text/x-kendo-template" id="responder-template">
    <table class="table table-striped">
        <tbody>
            <tr>
                <th>Name</th>
                <th>Redeemed Date</th>
                <th>Coupon Status</th>
            </tr>
            # for (var i = 0; i < coupons.length; i++) { #
            <tr>
                <td>#= coupons[i].name #</td>
                <td>
                    #= kendo.toString(new Date(coupons[i].redeemedDate), "g") #
                </td>
                <td>
                    #= vm.couponStatusAsString(coupons[i].status) #
                </td>
            </tr>
            # } #
        </tbody>
    </table>
    </div>
    #}#
</script>
Petyo
Telerik team
 answered on 09 Sep 2014
3 answers
129 views
Hi, the Kendo demo site stopped working for myself and my co-worker.  My company blocks "connect.facebook.net" which is getting pinged when I look at Fiddler.  This results in each demo control page not loading the actual demo content.
Dimo
Telerik team
 answered on 09 Sep 2014
2 answers
242 views
I have a form I'd like to submit synchronously.
The form has multiple upload widgets, each with unique names:

<input id="file-21-103" name="file-21-103" class="picture" type="file" data-itemoptionid="103" />
<input id="file-22-104" name="file-22-104" class="picture" type="file" data-itemoptionid="104" />

How can I retrieve either the id, the name, the data-... attrib of the upload element server-side (asp.net mvc)?
Morten
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 09 Sep 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
Application
Drag and Drop
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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?