Telerik Forums
Kendo UI for jQuery Forum
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.3K+ 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
249 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
844 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
396 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
342 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
6 answers
630 views
Hi,

1. I'm trying to create a process diagram using the kendoDiagram function. However, the labels for each node are not contained inside its shape's container. I tried several methods to break the line, but none seem to work. Is it possible to wrap the text of each node so it will fit inside its shape's container?

2. Another question, is it possible that on initial load I can give a shape a different color besides the one that is set in shapeDefaults? I am using dataSource and I assume that I can do something like:
 { id: "one", name: "C" width: 40, height: 40, type: "circle", fill: "red"}
I tried other property names like 'color' but it does not work. 


Please see attached sample screenshot and the script I used.


Thanks!!

Boyan Dimitrov
Telerik team
 answered on 27 Apr 2017
1 answer
546 views

The treeview is currently configured to load on demand.

Scenario is this I need to be able to refresh a node (ask database) due to one of the following actions from a user:

 

1. Adding of a new node under currently selected item.
2. Deleting of a node that is the currently selected item.
3. Updating the name of the currently selected item.

 

I have this working however if the selected node is expanded and all nodes below are expanded also - the state of the branch up to the selected node is retained but the nodes past the selected node are now collapsed after a reload of the selected node. (In the case of the delete - I refresh the parent node).

 

Is there a way to maintain the state of the branches so that a refresh does not collapse the branch below the refresh point?

 

If my description is insufficient I can explain with a more specific scenario and include screen shots.

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
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?