Telerik Forums
Kendo UI for jQuery Forum
3 answers
934 views

Hi,

I have fileObjects and it has properties (name, extension, size, filepath). I understand name, extension and size are the reserved keywords that can be used in template code. However, i need the filepath (additional parameter) to be passed and used in template code.

So that when user click on the hyperlink, it will call the download function with two parameter (path and name). File path is mandatory because each file is stored in respective unique id (folder name) folder.

<% List<FileModel> files = ViewBag.files; %>
var fileObjects = <%: Html.Raw(Json.Encode(files)) %>
 
$("#upload-file").kendoUpload({
    async: {
        saveUrl: "<%: Url.Action("UploadFile", ViewBag.Controller, new { topicId = Model.Id }) %>",
        removeUrl: "<%: Url.Action("RemoveFile", ViewBag.Controller, new { topicId = Model.Id }) %>",
        autoUpload: true
    },
    template:
        "<span class='k-progress' style='width: 100%;'></span>" +
        "<span class='k-icon k-i-doc'></span>" +
        "<span class='k-filename' title='#=name#'><a href='\\#' onclick='downloadFile(\"#=name#\")'>#=name#</a></span>" +
        "<strong class='k-upload-status'>" +
            "<button type='button' class='k-button k-button-bare k-upload-action'>" +
                "<span class='k-icon k-i-close k-delete' title='Remove'></span>" +
            "</button>" +
        "</strong>",
    files: fileObjects,
    success: onSuccess,
    error: onError,
    upload: onUpload
});

 

Thanks.

Regards,
Yap Hui Hong

Dimiter Madjarov
Telerik team
 answered on 30 May 2016
3 answers
865 views
Hi, I'm very new to KendoUI and just managed to get my first autocomplete text box working - sort of.
Is it the normal behaviour that if there is a long list of possible selections, the list items just write over the border of the drop-down or what customization am I missing? I would expect the selection list to scroll within the drop down.

Regards
Erwin
Konstantin Dikov
Telerik team
 answered on 30 May 2016
1 answer
190 views

I used Angular-style to create a TreeList. 

In my initial test, the tree only have 3 level, root level with 1 node, second-level with 30 nodes, third-level with 1 or 2 nodes. Total are ~60 nodes.

I checked another thread mentioned that defining column template will have performance penalty and I already fixed all and it works fine on Chrome (Version 50.0.2661.102 m)

But when I use Firefox (46.0.1), it is very slow. Loading the tree is already slower than Chrome. Especially, when expand / collapse the node, it takes 3-4 seconds (while Chrome only take less than a second).

I already disabled all Plugins on Firefox.

Please advise any way I can improve the performance.

Nikolay Rusev
Telerik team
 answered on 30 May 2016
3 answers
219 views
Running into an issue trying to export a PDF drawing since updating to v2016.2.504.  Just curious if anyone else is having the same issue before opening up a support ticket.  The error I get is "TypeError: e.options.pdf is undefined http://localhost:14993/Scripts/kendo/kendo.all.min.js Line 47".  Export worked good on previous version which was v2015.3.1111.
Dimiter Madjarov
Telerik team
 answered on 30 May 2016
3 answers
150 views

Hello,

Is it possible to have multicolumn headers in TreeList? I have followed the example of the grid http://demos.telerik.com/kendo-ui/grid/multicolumnheaders but it doesn't work for tree list.

Dimiter Madjarov
Telerik team
 answered on 30 May 2016
1 answer
864 views

I tried different options but it seems form is obsolete and I don't know how to use filterMenuInit to filter date only for datetime field.  It will give me getTime() error when I select date in date filter.

columns: [
{ field: "EntryDate", title: "Date", attributes: { style: "text-align:left" }, width: "200px", template: "#= kendo.toString(kendo.parseDate(EntryDate, 'yyyy-MM-ddTHH:mm:ss'), 'dd MMM yyyy hh:mm:ss tt') #" },

 

I tried to insert a field of date only but it is empty.

schema: {
parse: function (d) {
$.each(d, function (idx, elem) {
elem.EntryDateOnly = kendo.parseDate(elem.EntryDate, "MM/dd/yyyy");
});
return d;
},

Viktor Tachev
Telerik team
 answered on 30 May 2016
1 answer
122 views

This really should be a minor but i cannot get it to work

I need to bind to a value (StatusId) from the parent row in my DropDownList

 

In my clientDetailTemplate i have

var parmStatusId = new HtmlString("#: StatusId #");
@Html.TextBox("txtBox", parmStatusId)  //this works just fine

@Html.DropDownList("myDropDownList", new SelectList(Model.StatusList, "Value", "Text", parmStatusId), string.Empty, new { @class = "form-control" }); //this doesnt work :-(

 

The source from the above is as following

 

<input id="txtBox" name="txtBox" type="text" value="#: StatusId #" />

<select class="form-control" name="1"><option value=""></option>
<option value="1">Ubehandlet</option>
<option value="2">Behandlet</option>
<option value="3">Lukket</option>
</select>

 

Am i missing the obvious??

Rosen
Telerik team
 answered on 30 May 2016
3 answers
291 views

I'm trying to add an axis to the categoryAxis to a stacked area chart http://dojo.telerik.com/@morten@munch-andersen.dk/UlEju

My data is date based but has gaps which show up when I set:

categoryAxis: {
field: "Date",
baseUnit: "day"
}

When I set baseUnit to "month" the chart loose the fine details.

I would like to add major ticks to the categoryAxis showing months and keep the fine details.

Is this possible?

 

 

T. Tsonev
Telerik team
 answered on 30 May 2016
1 answer
193 views
OK, we can control columns size by ColumnWidth property. but can limit width of part of the grid where dimension data is shown? Can we force dimension members test wrap up and grow down and not pushing columns size to the right? Looks like AJAX grid can do the triclk
Georgi Krustev
Telerik team
 answered on 30 May 2016
1 answer
235 views

It is possible to generate QRCode from server side using Kendo.Mvc.UI.QRCode?
I need to generate the QRCode for a web service that will be called from a desktop application. 

Dimiter Madjarov
Telerik team
 answered on 27 May 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
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?