Telerik Forums
Kendo UI for jQuery Forum
0 answers
121 views

Is there an event which would fire after the DropDownList is loaded with json data, received from an ajax call?
Just like the OnDataBound event in Telerik MVC extensions.

Mayank
Top achievements
Rank 1
 asked on 03 Oct 2012
0 answers
559 views

I have a Kendo UI datepicker with placeholder data. Here is the HTML:

<input type="text" class="datepicker"' placeholder="yyyy-mm-dd" />

Here is the JavaScript:

var start = $(".datepicker").kendoDatePicker({
        format: "yyyy-MM-dd",
        parseFormats: ["MM/dd/yyyy"],
        change: startChange
    }).data("kendoDatePicker");

The Kendo UI datepicker displays the placeholder data in the same style as user entered data. I would like to style the placeholder data differently. Specifically, I would like the text to be gray and italicized. When user enters data, the style changes to solid black (non-italicized). Any thoughts on how to do this?

James
Top achievements
Rank 1
 asked on 03 Oct 2012
2 answers
101 views
Hi,

A field of my Kendo UI Grid cannot be duplicated. On Telerik Extensions for ASP .NET MVC I was using Remote validation and it was ok.
Now, using KendoUI, this field is not validated on client, just on server. The problem is that, after clicking Update button, grid looks like changes were accepted, but if you see the response of ajax call, you realize that the error message is there, but it isn't displayed because it's no more on edit mode.

Something similar occurs on the example provided with Wrappers for KendoUI, Collumn Settings (http://localhost:53702/razor/web/grid/columnsettings). If I edit a row, change any field's value and click on Update, it looks like changes where accepted, but an alert is showed: "Errors: The value '1/17/2012 12:00:00 AM' is not valid for Last supply".
The problem is not converting the date to the format accepted by my OS... but it should display the error during edit mode, using Kendo Validation, to be clear that this data was not updated.

How to achieve this behavior?

Tks
Daniel
Top achievements
Rank 1
 answered on 03 Oct 2012
3 answers
231 views
I'm told via the forums that a bug fix I am interested in was in the 2012.2.913 release.

The download for KendoUI / Web is still an older version.

When will this be changed or how can I download the new version?

Iliana Dyankova
Telerik team
 answered on 03 Oct 2012
1 answer
222 views
I am applying some client side filtering on my grid, however, I would like to change the filtering logic to use "OR" instead of "AND".

Example:
I am adding in multiple filters...
{ field: 'Status', operator: '==', value: 'Active' }
{ field:
'Status', operator: '==', value: 'Pending' }

The default logic on the grid will cause it to filter like so - Status = Active AND Status = Pending.  

Instead I want to have my fitlers do the following: Status = Active OR Status = Pending

I cannot find any examples of this.  Is this possible to do?
Nick
Top achievements
Rank 1
 answered on 03 Oct 2012
1 answer
210 views
Hi
I have this view :
<div class="draggable" style="width: 50px;height: 50px;background-color: chartreuse;">Test</div>


<div id="droptarget">
    <div class="test1" style="background-color: aqua; width: 200px; height: 200px;">
      Start dragging.
      </
div>
    <div class="test2" style="background-color: brown; width: 200px; height: 200px;">
        Start dragging.
     </
div>
</div>


when draggable Div added to test1 Div or test2  i want the draggable Div can switch between the test1 or test2.
How do i ?
Tanx.
Nohinn
Top achievements
Rank 1
 answered on 03 Oct 2012
0 answers
195 views
Hi, I think I found some incorrect behaviour for treeview checkboxes.

given:
@(Html.Kendo().TreeView()
    .Name("tree")
    .Checkboxes(checkboxes => checkboxes.CheckChildren(true))
    .Items(treeview =>
    {
        treeview.Add().Text("Furniture").Id("1")
            .Expanded(true)
            .Items(furniture =>
            {
                furniture.Add().Text("Tables & Chairs").Id("2").Expanded(true)
                    .Items(fun =>
                        {
                            fun.Add().Text("specialtable 1").Id("9").Expanded(true)
                                .Items(f =>
                                {
                                    f.Add().Text("4thlevel 1").Id("13");                                    
                                });
                            fun.Add().Text("specialtable 2").Id("10");
                        });
                furniture.Add().Text("Sofas").Id("3");
                furniture.Add().Text("Occasional Furniture").Id("4").Expanded(true)
                    .Items(fun =>
                    {
                        fun.Add().Text("occ 1").Id("11");
                        fun.Add().Text("occ 2").Id("12");
                    });
            });
    })
)
Reproduction steps:
1. Check Furniture, then uncheck "specialtable 1" and "occ 1", and then check "Furniture" again.  the 2 intermediate nodes, "Tables & Chairs" and "Occasional Furniture" remain in the "partial" state.  see kendotreeview1.png

2. Check "Furniture", then uncheck "4thlevel1", then check "Furniture" again.  "specialtable1" is not checked at all.  See kendotreeview2.png.

3.  Check "furniture", uncheck "specialtable1", check "4thlevel1", check "tables & chairs".  "special table1" is still checked.  See kendotreeview3.png

4.  Check "Furniture", uncheck "4thlevel 1", check "tables & chairs".  "special table1" is unchecked.  See kendotreeview4.png.

It seems likely all of these are related. 
Kuangyi
Top achievements
Rank 1
 asked on 03 Oct 2012
0 answers
172 views
Hello,

I wrote a little demo that has two divs, one contains draggable buttons and the other is the drop target.
I can drag buttons into the drop target just fine, and the drop target itself is also draggable so I can move the buttons around inside the drop target. 

This works, but when I try to drag a button from the dropTarget div to some other place on the page, instead of just failing to drop it there (on a non-droppable section), the button disappears from the drop target div.

This is the code, I'd appreciate if someone could tell me why this happens and if it can be avoided:

<div id="draggable" style="background-color: lightgrey; height: 60px">
Drag the buttons to the yellow section<br/>
    <button >Button 1</button>
        <button >Button 2</button>
        <button >Button 3</button>
</div>
<div id="dropTarget" style="background-color: yellow; height: 60px">
</div>​

var draggable = $("#draggable").kendoDraggable({
    filter: 'button',
    hint: function(item) {
        return $(item).clone();
    }
});
var dropTarget = $("#dropTarget").kendoDropTarget({
    dragAndDrop: true,
    drop: droptargetOnDrop
}).kendoDraggable({
    filter: 'button',
    hint: function(item) {
        return $(item);
    }
});
  
  
function droptargetOnDrop(e) {
  //  console.log("drop called");
    var $target = $(e.target);
    $(e.draggable.hint).clone().appendTo(e.dropTarget)
}

Thanks
Lior
Top achievements
Rank 1
 asked on 03 Oct 2012
2 answers
391 views
Hi, so I have a grid that shows folders and files.  How do I add 2 create button in the Grid so that I can have 1 button to create Folder and 1 button to create File in MVC asp.net that calls different action in the backend? And those two create buttons needs to be using ajax.

Here is how i am doing it for 1 button:

.ToolBar(c => c.Create())
    .DataSource(dataSource => dataSource
        .Ajax()
            .Model(model => model.Id(f => f.FileId))
                .Read(read => read.Action("GridRead""Files"))



Thanks.
Kai
Top achievements
Rank 1
 answered on 03 Oct 2012
1 answer
102 views
I would like to see an animation after initializing a "div" with many widgets created dynamically. There is no way to know when "kendo.init ($ (" # mydiv "));" ends?

Thanks
Petyo
Telerik team
 answered on 03 Oct 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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
Gauges
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
ScrollView
PivotGridV2
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
+? 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?