Telerik Forums
Kendo UI for jQuery Forum
1 answer
141 views

Hello, I have a problem with my code.

In mi command i try to use a template whit a "If" statement, but doesn't work, what is wrong? 

 

command:
                            {
                                text: "Work",
                                click: function (e) {
                                    angular.copy(this.dataItem($(e.currentTarget).closest("tr")), vmOrd.DataRel);
                                    $scope.$broadcast('loadData', vmOrd.DataRel);                                   
                                    $scope.$apply();
                                },
                                template: '#if(Quantity != 0){# <a href="\\#" class="k-button k-button-icontext k-grid-Work"><span class="fa fa-2x fa fa-pencil-square-o text-default"></span></a> # } else {# <a href="\\#" class="k-button k-button-icontext k-grid-Work"><span class="fa fa-2x fa fa-pencil text-default"></span></a> #} #',
                            },

Georgi
Telerik team
 answered on 14 Feb 2018
7 answers
486 views
Hello, have template as shown below:

Remote template:

<script id="AirPricingWithoutPNRViewModelItemTemplate" type="text/x-kendo-template">
     <div class="postpricingItem">
        <div>
            <table>
                <tbody data-template="T2Template" data-bind="source: data"></tbody>
            </table>
        </div>
        <div>Quote: <span data-bind="text: Total"></span></div>  /* attr: title to be attached to this span */
    </div>
</script>

I want the Quote element span to have 'title' attribute binding to format as in T1Template  So that on hover  can see details.



child Template:

    <script id="T1Template" type="text/x-kendo-template">
        
                <tr>
                    <td>TST </td>
                    <td title="Passenger Type" data-bind="text: UnitQualifier"></td>
                    <td title="Passenger Quantity" data-bind="text: Quantity"></td>
                    <td title="PricingPCC" data-bind="text: OptionFilters.PricingPccInformation.PCCCode"></td>
                    #if (data.lkpStatus=="D") {#
                    <td title="Deleted TST"><i class="fa text-danger fa-times" aria-hidden="true"></i></td>
                    #} else {#
                    #}#
                    <td title="Price" data-bind="text: TotalSalesPriceToDisplay"></td>
                </tr>
          
    
</script>





Georgi
Telerik team
 answered on 14 Feb 2018
5 answers
1.5K+ views
Hi All,

I am using listview in some of the mvc views. When page size is increased,e.g,50 items per page, records are coming out of the listview. To fix this issue, how to apply vertical scroll bar to kendo listview? Immediate help would be appreciated.

Regards,
Partha.
Tsvetina
Telerik team
 answered on 14 Feb 2018
3 answers
969 views

I am trying to bind a combobox to a dynamic array defined on Vue instance. The values on the array are not known until the control is databound. I can't seem to figure why change to the array won't refresh the combo. Here's the code snippet. Does current version pf kendo-vue support this behavior?

 

//javascript

var that = this;

that.$set(that, 'countryArray', [{text: 'canada', value:'2' }]);

//html

<kendo-combobox v-model="countrySel"
:placeholder="'Select country...'"
:data-source="countryArray"
:data-text-field="'text'"
:data-value-field="'value'"
:filter="'contains'"
>
</kendo-combobox>

Dimitar
Telerik team
 answered on 14 Feb 2018
6 answers
270 views
Hello,
              I have created sample problem in I have used row
  Following :

1) The DataSource is grouped by  PricingPCC Column which collapse. 
2) And want to increase Segment Column tried hardcoded 150-300px that work either.
3) Mismatch in width of table header and row data Row data render below column header properly
Georgi
Telerik team
 answered on 14 Feb 2018
8 answers
277 views

hey, i'm ecaluating the pivot grid using the trial version. i seem to have problems getting angularjs and the pivot templates to work together.

my script imports in the index are as follows: 

  <script src="bower_components/jquery/jquery.js"></script>
    <script src="bower_components/angular/angular.js"></script>
    <script src="bower_components/kendo-ui/js/kendo.all.min.js"></script>

in the HTML page i have: 

    <div class="col-md-12" ng-if="vm.data.HeatChartSkillsPerResource && vm.data.HeatChartSkillsPerResource.length > 0">
        <kendo-pivot-grid  k-data-source="vm.dataSource" k-options="vm.options" id="pivotgrid" class="hidden-on-narrow">
            <div k-column-header-template>
                {{member.caption}}
            </div>
        </kendo-pivot-grid>

in the relevant controller: 

 

    vm.dataSource = new kendo.data.PivotDataSource({
                    data: vm.gridOptions.data,
                    schema: {
                        model: {
                            fields: {
                                FullName: {
                                    type: 'string'
                                },
                                skill_rating: {
                                    type: 'number'
                                },
                                skill_name: {
                                    field: 'Skill.SkillName'
                                },
                                Category: {
                                    field: 'Skill.Category'
                                }
                            }
                        },
                        cube: {
                            dimensions: {
                                FullName: {
                                    caption: 'Resources'
                                },
                                Category: {
                                    caption: 'Categories'
                                },
                                skill_name: {
                                    caption: 'Skills'
                                }
                            },
                            measures: {
                                'Average': {
                                    field: 'skill_rating', aggregate: 'average'
                                }
                            }
                        }
                    },
                    columns: [{ name: 'FullName', expand: true }],
                    rows: [{ name: 'Category', expand: true }, { name: 'skill_name', expand: true }],
                    measures: ['Average']
                });

 

        vm.options = {
            columnWidth: 100,
            height: 500,
            filterable: true,
            sortable: true,
            reorderable: false
        }

 

the data is loaded as expected but column header templates (or any other templates) don't recognize angularjs. what i see is {{member.caption}} inside the headers. (as in the attached file).

i don't see any errors.

any help on that?

Pavlina
Telerik team
 answered on 13 Feb 2018
1 answer
104 views
Hi,

we have issue with tooltip in drawing. Please see the link below

https://dojo.telerik.com/uHimOD/3

Steps to Reprodue

1) Click the link above.

2) Mouse over Red Arc and quickly move cursor on the tooltip or click on tooltip

3) Tooltip will not go off.

4) Try some times in order to reproduce 

Please help.

Thank you

 Sriram
Neli
Telerik team
 answered on 13 Feb 2018
11 answers
2.0K+ views
I have recently started working on KENDO UI stack for ASP.NET MVC.

Question: The icons for the GRID and DatePicker are missing in the deployment.
Looked at the resolution (link below) for  missing icons, but could not figure out where are the FONT-files and what exactly need to set in the web.config.
http://www.kendoui.com/forums/kendo-ui-mobile/general-discussions/2012-3-1114---kendo-mobile-all-min-css---missing-icons.aspx
If some one could help me walk through Step by Step how to resolve the missing icons issue on deployment of an ASP.Net application.

Thank You,
Pankaj Kumar
Konstantin Dikov
Telerik team
 answered on 13 Feb 2018
3 answers
3.5K+ views

Is it possible to data-bind the visible property in MVVM to multiple conditions, either by using logical operators (&&) or calling a function that accepts parameters?

<div id='test' data-bind='visible: condition1 && condition2'>...</div>

or

<div id='test' data-bind='visible: myShowFunction('a', 'b')'>...</div>

 

 

 

Dimitar
Telerik team
 answered on 13 Feb 2018
2 answers
519 views
I have a Dropdown List Editor Template for a field in my Grid, and when I create a new row in the grid, the options are visible, and it appears as if the initial item is selected. However, the value of this item is not carried back to the server unless I open the drop down list and select an item.

Any Thoughts?
Patrick
Top achievements
Rank 1
 answered on 13 Feb 2018
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?