Telerik Forums
Kendo UI for jQuery Forum
1 answer
147 views

I have a global sales application where sales staff work on accounts around the globe.  They are asking to see the currency in the format for the country within the same grid.

Example:

Joe's Garage, $1,000.00

Fredreich's Gasthouse, €2.000,00

Elizabeth's Castle, £50.000.000,00

 

Is this possible?

Stefan
Telerik team
 answered on 28 Apr 2017
1 answer
389 views

Hello,

I was wondering if there is a way to show the most recently added item in a Kendo DropDownList which is bound to a remote datasource (from a database, via an MVC action controller).

I tried the following approach: in the same event that adds the item, once it is added, I try to set the DropDownList.select method with the value of the last index; however, this fails, and I get some warning about a synchronous XMLHttpRequest.

According to the research I have conducted, this happens because the script is trying to assign the index to the select method way too quickly, when the dataSource has not really been updated yet. If I try to assign the select method to a previous index (e.g. i - 1) and it does so without issue (showing the second-to-last item in the list). I assume this is because the item already exists in the database and thus there are no sync issues.

I appreciate any ideas you guys can share regarding this issue.

Thanks!

Stefan
Telerik team
 answered on 28 Apr 2017
3 answers
2.3K+ views

Hi,

 

     I've a custom template to delete, download uploaded files. I would like to clear the deleted file from the upload control list after calling the 'deleteFiles' JS function in my code. Please do let me know how to achieve this. Thanks.

 

Code snippet:

<script id="fileTemplate" type="text/x-kendo-template">
    <span class='k-progress'></span>
    <div >
        <label class="control-label">Name: #=name#</label>
        <button type='button' class='btn btn-primary glyphicon glyphicon-remove pull-right' id="deleteFile" onclick="deleteFiles('#=name#', '#=files[0].extension#')"></button>
        <button type='button' class='btn btn-primary glyphicon glyphicon-download pull-right' id="downloadFile" onclick="downloadFiles('#=name#')"></button>
        @*<span class='file-icon #=addExtensionClass(files[0].extension)# pull-right'></span>*@
        @*<p class='file-heading file-size-heading'>Size: #=size# bytes</p>*@
    </div>
</script>

Ivan Danchev
Telerik team
 answered on 28 Apr 2017
5 answers
1.2K+ views

Hello All,

I have the following groupFooterTemplate:

groupFooterTemplate: '<div style="text-align: right;">#=data.col01.group.value# #=kendo.toString(sum, "n0")#</div>'

 

It works perfectly, but when I export to Excel, I get the following error:

VM49544:3 Uncaught TypeError: Cannot read property 'value' of undefined
    at Object.eval [as groupFooterTemplate] (eval at compile (kendo.all.js:194), <anonymous>:3:131)

What am I doing wrong?

Cheers.

Edo.

Eduardo
Top achievements
Rank 1
 answered on 27 Apr 2017
1 answer
3.3K+ views

I have a grid which i need to open as editable and i am showing all fields and columns with editable controls.in this case i am showing  html5 dropdown .  How can i change it to Kendo Dropdown list?

 

Please advise.

 

 

title: "Licensed/UnLicensed",
                               template: function (dataItem) {

if (dataItem.InputControl === "DropDown") {
                                           var cntrls = '<div class="col-xs-4"><select class="form-control input-sm" id ="selval' + dataItem.CarePointID + ' " data-bind="value:FormVal"';
                                           if (dataItem.Mandatory)
                                               cntrls += ' required ';
                                           cntrls += ' tabindex= "' + dataItem.CntrlTabIndex + '" ';
                                           cntrls += ' >';
                                           if (questOptions.length > 0) {
                                               cntrls += '<option value="" >Select value</option>';
                                               $.each(questOptions, function (opnum, opObj) {
                                                   var cntrl = '<option value="' + opObj.DropDownValue + '">' + opObj.DropDownText + '</option>';
                                                   cntrls += cntrl;
                                               });
                                               cntrls += "</select></div>";
                                               
                                           }
                                                
                                           return cntrls;
                                       }

    }

Sapandeep
Top achievements
Rank 1
 answered on 27 Apr 2017
1 answer
237 views

i want to change the axis-gird to the kendo-grid in the controller add

{{key: "sttsNm", label:"status" ,width:140 ,fomatter: function(){

return(jsonpath($scope.codeData, "$.sttsCd[?(@.dataCd =='" + this.item.sttsCd + '")].strProp")+

"").trim();}};

i want to change the template of kendo grid how do i change it?

 

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

What kind of conversion should be done in kendo grid?

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

I want to change the axis-grid to the kendo-grid. In the controller, add

{{ key: "sttsNm", label: "Status", width: "140", align:"center", formatter: function(){ return (jsonPath($scope.codeData, "$.sttsCd[?(@.dataCd=='" + this.item.sttsCd + "')].strProp") + "").trim(); }},

Konstantin Dikov
Telerik team
 answered on 27 Apr 2017
1 answer
819 views
Hi,

Take a look at this example:
http://dojo.telerik.com/uFEsi/3

It looks good, but if uncomment "min: 0" so scaling will change and the chart will become unobvious.

I have a few questions:

1) How to dynamically calculate max and set max + 10% in this case?
2) How to dynamically calculate max for stacked chart? 
3) How to always show the label on Y axis with max value for a chart?

I think about using event for 1 and 2 and about using majorUnit for 3, but maybe I'm wrong.
Stefan
Telerik team
 answered on 27 Apr 2017
8 answers
1.0K+ views

Hi,

I am new to the Kendo U, and I am trying to build the app using UI calendar with Angular JS. Please help me with the solution.

 

Is it possible to disable the weekends of the particular month. For example, I am using april month. In here I need to disable the weekends and some days also, like 15 and 16 dates. Please provide the solution on how to achieve it. sample given below.

 

Your solution will help me with the product.

http://dojo.telerik.com/oMoDU/4 

 

Regards,

Dhinesh R

Dhinesh
Top achievements
Rank 1
 answered on 27 Apr 2017
2 answers
388 views

Hello

On my column chart I have prevented hiding default behavior when clicking on a legend item. Instead of that I highlight the serie with chart.toggleHighlight method. Now I'd like to display bold the item corresponding to highlithed serie. I have been looking for a solution for hours unsuccessfully. Can you help me ?

Thanks

Christophe
Top achievements
Rank 1
 answered on 27 Apr 2017
1 answer
326 views

When exporting to Excel, if the spreadsheet has any validation (using range.validation(string here)) then the Export fails to open in Excel 365. Error message is below:

<?xml version="1.0" encoding="UTF-8"
standalone="true"?>
-<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error113640_02.xml</logFileName>
<summary>Errors were detected in file
'C:\Users\freemand\Downloads\CurrentStageSkuLine.xlsx'</summary>
-<removedFeatures summary="Following is a list of
removed features:">
<removedFeature>Removed Feature: Data validatin from
/xl/worksheets/sheet1.xml part</removedFeature>
</removedFeatures>
</recoveryLog>

Currently we get around this, by removing all the range.validation before we export and then add it back afterwards. However this is incredibly slow (over 15 seconds, when the spreadsheet has only 3 rows populated).

Thanks

Marc

Nencho
Telerik team
 answered on 27 Apr 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
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?