Telerik Forums
Kendo UI for jQuery Forum
0 answers
99 views
FIrst I would like to load a JSON datasource and populate the tree view.

Next I would like to edit the tree view, by modifying, adding or deleting the nodes and items in the tree view.

Lastly, I would like to save the tree view as an JSON object.

Do you have any sample JSFiddle to illustrate this example?

Thanks!
George
Top achievements
Rank 1
 asked on 20 Apr 2012
3 answers
163 views
Hello,

I want to know if I can show a message in my chart ; when my datasource is empty.
Saying that there are no records


Regards,

M.
Iliana Dyankova
Telerik team
 answered on 20 Apr 2012
3 answers
131 views
Hi there,

We're in the process of extending our existing demo at http://openaccess.spirit.de/ and allowing CRUD operations.

On first load everything is working well, but once you are start scrolling the edit button stops working correctly.
The following short video demonstrates the behavior or feel free to use this test page http://openaccess.spirit.de/crud.htm (in Firefox make sure to filter otherwise you won't see a working scroll bar, but this is an separate issue).

https://saucelabs.com/jobs/a135eb7d6a034b44af647902e554f0c8

Looks like as if the edit button is not hooked up correctly to records that are retrieved while scolling. Delete button is working all the time.
Any hints how to solve this issue are appreciated.

Thanks,

Rainer

Rosen
Telerik team
 answered on 20 Apr 2012
3 answers
82 views
Will the gauge support the API svg markup function like other charts?

I use this method to render in android 2.x devices  (http://www.kendoui.com/blogs/teamblog/posts/12-02-17/using_svg_on_android_2_x_and_kendo_ui_dataviz.aspx )
T. Tsonev
Telerik team
 answered on 20 Apr 2012
3 answers
288 views
I have a combobox who's html source is below.  When I try to bind my viewModel using MVVM, the following message is displayed: "change binding is not supported by the select element".  The funny thing is that this works fine on the 1012.1.229 beta, but does not work when I switch to 2012.1.335 commercial release.  Can anyone help with this?

HTML Code:
<select id="tePriority" class="tePriority editControl autoCommit" data-bind="change: onPriorityChange">
<asp:PlaceHolder ID="phPriority" runat="server"></asp:PlaceHolder></select>
Rosen
Telerik team
 answered on 20 Apr 2012
1 answer
67 views
Hi

I can change the view background image using style tag.

But when i goto other view and i come back the background is missing. Why?

Petyo
Telerik team
 answered on 20 Apr 2012
2 answers
915 views
I am loading a dropdownlist from a datasource but wish to trigger another action when the first item is selected but I do not seem to be able to get Kendo to trigger a change event?

The change fires OK when I actually select another item (as expected) but I would like an initial change event to be fired.

Leaving out the index it does load OK and appear to select the first item OK but I do not get any event.

Any ideas on how this can be done?
Vadivel
Top achievements
Rank 1
 answered on 20 Apr 2012
2 answers
366 views
Hello,

I tried to use kendo upload and that works but I get a error message when upload finish.

Kendo upload does everything right and at the end the file was uploaded but kendo upload says that it had a problem.

I know that in Save file if response is empty means the process was good otherwise the process had a problem.

I think the problem is caused because of response of apache, it says that My Content-Length = 2 but really My response was empty.

I took this examples from kendo examples

This is the raw view of the response of my web server:

HTTP/1.1 200 OK
Date: Tue, 17 Apr 2012 06:31:58 GMT
Server: Apache/2.2.21 (Win32) PHP/5.3.8
X-Powered-By: PHP/5.3.8
Content-Length: 2
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html


Code html/js:
<div id="example" class="k-content">
 
    <div style="width:60%">
        <input name="files[]" id="files" type="file" />
    </div>
 
</div>
       
    <script>
        $(document).ready(function() {
            $("#files").kendoUpload({
                async: {
                    saveUrl: 'save.php',
                    removeUrl: 'remove.php',
                    autoUpload: true
                }
            });
        });

    </script>

code save.php:

<?php
    $fileParam = "files";
    $uploadRoot = "c:/upload/";
    $files = $_FILES[$fileParam];
     
    if(!is_dir($uploadRoot))
    {
        mkdir($uploadRoot, 0777, true);
        chmod($uploadRoot, 0777);
    }
 
    if (isset($files['name']))
    {
        foreach ($files["name"] as $i => $name) {
            $error = $files['error'][$i];
 
            if ($error == UPLOAD_ERR_OK) {
                $targetPath = $uploadRoot . basename($files["name"][$i]);
                $uploadedFile = $files["tmp_name"][$i];
 
                if (is_uploaded_file($uploadedFile)) {
                    if (!move_uploaded_file($uploadedFile, $targetPath)) {
                        echo "Error moving uploaded file";
                    }
                }
            } else {
                // See http://php.net/manual/en/features.file-upload.errors.php
                echo "Error code " . $error;
            }
        }
    }
    // Return an empty string to signify success
    echo "";
?>

code remove.php:

<?php
    $fileParam = "files";
    $uploadRoot = "c:/upload/";
    $fileNames = $_POST["fileNames"];
 
    if (isset($fileNames))
    {
        foreach ($fileNames as $i => $name) {
            $targetPath = $uploadRoot . basename($name);
            if (!unlink($targetPath)) {
                echo "Error removing file";
            }
        }
    }
 
    // Return an empty string to signify success
    echo "";
?>



Is there a way to configure kendo upload to understand another answer than empty? For example a JSon like {Status:0}

Thank you,
Daniel Botero Correa
Daniel Botero Correa
Top achievements
Rank 1
 answered on 20 Apr 2012
0 answers
297 views
Is there a way to prevent the detail template from automatically opening on load?

I am referring to your Grid / Detail template example http://demos.kendoui.com/web/grid/detailtemplate.html

I want the user to have to select a record to open the detail grid.

ANSWER:
Sorry I didn't notice this was being called:
this.expandRow(this.tbody.find("tr.k-master-row").first());

Regards,
Mark.
Mark
Top achievements
Rank 1
 asked on 20 Apr 2012
3 answers
588 views
I am trying to set the text color for my autocomplete box on the fly.  I was able to get it working with the combobox thanks to your help in another thread, but having trouble applying that same logic to the autocomplete.

I grab the autocomplete box like this:
var cinput = $("#boxName").data("kendoAutoComplete");


cinput is an object, so at least it's not undefined, but I don't know if it's the correct object or if I am not setting the color properly (or both!).

But then it doesn't do anything when I try setting the color via any of the following (not all at once obviously):

cinput.css("color", "red");
cinput.color = "red";
cinput.style.color = "red";
cinput.foreground = "red";

but no luck.  I'm probably missing something fundemental due to my lack of JS experience.  Also without any intellisense it feels like I'm just taking shots in the dark, any guidance in that respect is greatly appreciated, in addition to a solution to my specifc question of course.
William
Top achievements
Rank 1
 answered on 19 Apr 2012
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)
SPA
Filter
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?