Telerik Forums
Kendo UI for jQuery Forum
6 answers
579 views
Hi,

I'm building several forms where I need to upload files to a directory and save the file name of the uploaded file to a mysql database. I'm using PHP and have the latest KendoUI Complete build.

I thought I saw a tutorial on this but can't find it anywhere. So, can you please send or post an example in PHP/MYSQL of how to setup a file upload that uploads the file to a directory and saves the filename in the database?

I think this would be a great tutorial to post on the site docs....or better yet, build the functionality into the next release, in PHP, of course.

Thanks for the help and I'm looking forward to seeing how these Premium forums work. I love the idea!

Thanks,
Tony
Dimiter Madjarov
Telerik team
 answered on 24 Jul 2015
6 answers
660 views
hi,

I use  kendoDropDownList as editor in few cells in kendo grid  .

How can I define the width of the list to be depended on the list items length (auto) and not on the containing cell width?

The issues for this question are: 

     • I don’t want to change the columns width, just the popup list, so that the list will be wider than the cell.
     • I support in my grid few languages, so I don’t know on the grid loading – what items are going to be in the list.

thanks.
Iliana Dyankova
Telerik team
 answered on 24 Jul 2015
3 answers
395 views

We are trying to use the grid with embedded detail grid when the use opens the selected line, but want to load just the detail data for the opened master record that is related to the detail. 

So when the user opens master line 1, it loads the data for detail of line 1, then when they open master line 2, it loads the data for that master's detail grid.

I can find how to filter all the details for all masters, but if we have hundreds of masters with thousands of related detail records, we don't want to load all those. 

Is there a way to assign a different data set to each opened detail grid?

Thanks for any ideas

Alexander Popov
Telerik team
 answered on 24 Jul 2015
1 answer
202 views

I have a toolbar with a dropdownlist in it, based on this example: http://demos.telerik.com/kendo-ui/toolbar/index

When I try to disable the dropdownlist within the toolbar, I get the following error on the console:

"TypeError: n.twin is not a function"

I only see this error when I use the "Kendo 2015 Q2" library. "Kendo 2015 Q1 SP2" and previous do not issue an error

See my snippet here: http://dojo.telerik.com/@dhughes/UqAci

Please let me know what I am doing wrong. Any and all help is greatly appreciated!

Alexander Valchev
Telerik team
 answered on 24 Jul 2015
3 answers
176 views

Not sure if this is a vb.net or datasource issue but am trying here.

I'm using vb.net and am having an issue when i try to ​send the updated data back to the server. I've found there to be a number of idiosyncrasies with connecting to .net so perhaps this is another one.

When I try to receive the data, it says it the method name isn't valid only when I try to assign the data to a variable. For example ​I'm able to send along a parameter to one function with an Int. And I can call the update function with no receiving parameter, but when I try to send along the data object it fails.

VB.Net code:
Works when accepting an int.
 

 <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
Public Function GetFullRecords(projectID as Integer) As List(Of fullRecords)
       return loadFullRecords(loadMonths(projectID), loadHeaders(projectID) ,  loadDetails(projectID) )
 End Function

And the broken one works fine if I don't accept anything

<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
Public Function UpdateFullRecords() As String 
   return "​gotData"
End Function 

 

But as soon as I try to accept those records it fails

<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
Public Function UpdateFullRecords(models as List(of fullRecords) ) As String 
   return "​gotData"
End Function 


System.InvalidOperationException: UpdateFullRecords Web Service method name is not valid.

Datasource code:

    dataSource = new kendo.data.DataSource(    {
        transport: {
            read:  {
                url: baseUrl + "gridData.asmx/GetFullRecords",
                type: "POST",
                contentType: "application/json; charset=utf-8",
                headers: {"Accept": "application/json"}
            },
            update: {
                url: baseUrl + "gridData.asmx/UpdateFullRecords",
                type: "POST",
                dataType: "json"
               headers: {"Accept": "application/json"}
            },
            parameterMap: function(options, operation) {
                if(operation === "read")
                    var values = {projectID: 32};
                   return kendo.stringify(values);
                } else if (operation !== "read" && options.models) {
                    console.log("Not Read - " + operation);
                    return{fullRecords:  kendo.stringify(options.models)};
                }
            }
        },
        schema: {
            parse: function (data) {
                return data.d;
            },
            model: {
                id: "headerID",
                fields: mySchemaFields
            }
        }
   });

Attached images from firebug showing that the data looks to be the same.  So not sure why it can find the method in one instance and not the other.

 

Alexander Valchev
Telerik team
 answered on 24 Jul 2015
1 answer
132 views

Hi,

 I'm trying to implement dynamic windows using angular + kendo window by pointing ng-repeat to the collection of urls (here is the full sample: http://dojo.telerik.com/INeFO/2):

<div kendo-window="win" k-title="'AJAX content'" ng-repeat="form in forms track by $index"
            k-width="600" k-height="200" k-visible="true"
            k-content="{ url: form }"
            ></div>

Everything works ok during initialization. But when new item is added to the forms collection in runtime, new window is being opened ok, but the existing windows become corrupted - they lose their content, please see the dojo link.

So the question is - is it possible to get it working somehow and is it a bug or I'm doing something wrong?

Alexander Valchev
Telerik team
 answered on 24 Jul 2015
1 answer
177 views

Hello,

 My model is

 model: {
                    id: 'id',
                    fields: {
                        id: {type: 'number'},
                        parentId: {field: "parentId", nullable: true},
                       // some other fields
                    }
                }

When I edit item from my datasource and call dataSource.sync()  in dataSource update request value of parentId parameter is empty. Than when I receive the response with parentId: "" treelistview deletes the corresponding row.

How can I manage to send parentId with null value to server?

Thanks in advance

Nikolay Rusev
Telerik team
 answered on 24 Jul 2015
6 answers
228 views

Hi,

I am not sure whether I should ask this question here or not.

But the combo box is not rendering properly in Visual Studio LightSwitch. It seems a JQuery Mobile issue more than LightSwitch though. However not being an expert in JQM it is becoming difficult for me to solve this. The JQuery version LightSwitch uses is 1.9.1 and the JQuery Mobile version it issues is 1.3.0. 

Please see attached file for the issue.

Thanks.

Divyang
Top achievements
Rank 1
 answered on 24 Jul 2015
5 answers
136 views

Hi All,

Could anyone explain why I can't enter values in filter text box as shown in the attachment.  Here is my script  

     var grid = $("#grid").kendoGrid({
       dataSource: ds,
       height: 250,
       pageable: true,            
       selectable: "row",
       resizable: true,
       groupable: true,
       sortable: true,           
       filterable: true,
       columns: [
               {   title: "col1",  field: "col_1", width: 80  },
               {   title: "col2",  field: "col_2", width: 80  },
               {   title: "col3",  field: "col_3", width: 120 }

       ]
   })

;
TIA

Steve
Top achievements
Rank 1
 answered on 23 Jul 2015
3 answers
364 views

I am using Typescript to define objects that extend the kendo.data.ObservableObject type.  These objects contain getter and setter properties.  When I pass an array of these ObservableObject-derived objects into the DataSource data property and when I specify a schema.model value, I lose all the getter and setter properties on my objects, such that the grid does not display any values properly.  The only fields left available in the DataSource object are the private properties.  I made an example here:

 http://dojo.telerik.com/ozuHI

 Please comment out the commented section at the bottom to see the problem occur.

 The PersonDTO definition in my example is the same code that gets generated by Typescript when I define a class that extends kendo.data.ObservableObject in Typescript.  The getters and setters are defined on PersonDTO.prototype rather than on PersonDTO itself and I suspect that is the source of the problem.  Internally, DataSource seems to be ignoring properties that are not found on PersonDTO directly whenever it wraps an object in a model object.

 I would appreciate any ideas for workarounds or a bug fix.  Thanks!

Daniel
Telerik team
 answered on 23 Jul 2015
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?