Telerik Forums
Kendo UI for jQuery Forum
3 answers
119 views
Essentially I want to have an "Empty Data Template" so after my custom binder runs for every row in my table I want to then check the visible count, and perform an action.

So is there an event that fires, or....?

Steve
Petur Subev
Telerik team
 answered on 15 Aug 2012
0 answers
149 views
Hello,

I am using Kendo UI Grid to display a long list of data (10000+). As one of your demos shows, I used virtualization of local data in the grid. But after i changed my datasource later, the grid would not load the rest data automatically while scrolling down. I have tried both ObservableArray and a new DataSource object, but neither works. Please help!!! 

          var newData = createRandomData(10);
            for (var i = 0; i < 10; i++) {
                source.pop();
                source.unshift(newData[i]);
            }
            var newSource = new kendo.data.DataSource({
                data: source,
                pageSize: 10
            });
            var grid = $("#grid").getKendoGrid();
            grid.dataSource = newSource;
            newSource.read();
            grid.refresh();
Wenhao
Top achievements
Rank 1
 asked on 15 Aug 2012
7 answers
238 views
Hi,

Is the validator functionality available for the mobile version too? All the examples are subject to web development and I can't get it working inside my mobile application. 

I keep getting the error 'Object has no method kendoValidator' when executing the following code on a div called login that contains the fields that I want to validate.

<div data-role="view" id="login">
        <h2>Log in</h2>
        <ul data-role="listview" data-style="inset">
            <li>
                <input type="text" style="width:60%" id="emailinput" required/>
                E-mail
            </li>
            <li>
                <input type="password" style="width:60%" id="passwordinput" required />
                Password
            </li>
        </ul>
         <a class="button" data-role="button" data-click="logIn" style="float: right; margin: 1em 1em 0 0 ">Log in</a>
    </div>

$("#login").kendoValidator({
                 messages: {
                   // defines message for the 'custom' validation rule
                   custom: "Please enter valid value for my custom rule",
                   // overrides the built-in message for required rule
                   required: "My custom required message"
                }
             });
Iliana Dyankova
Telerik team
 answered on 15 Aug 2012
1 answer
157 views
I am using combobox and need at a time to redo the ajax call that returned the results to populate the combobox. But with different parameters.

Is there any method to run again this request to update the combobox?
David A.
Top achievements
Rank 1
 answered on 15 Aug 2012
1 answer
174 views
Hi,
i'm trying to fix a code that resets the "end time" minimum value to be half hour more than the "begin time".

var value = $("#begin").data("kendoTimePicker").value();
var end = $("#end").data("kendoTimePicker");
 
                if(value.getHours().toString() == "18" && value.getMinutes().toString() == "30")
                {
                    var minimo = new Date(value.getTime() + 30*60000);                   
                    end.value(minimo);
                    end.enable(false);
                }
                else
                {
                    var minimo = new Date(value.getTime() + 30*60000);
                    end.min(minimo);
                    end.enable(true);
                }

For some reason, the code ends in error because it says that "min is not a function". In the docs it says it is? Is this some kind of bug of some sort?

Don't think it's due to wrong reference because the value function works. Can you help me here?
David Beck
Top achievements
Rank 1
 answered on 15 Aug 2012
1 answer
114 views
Combine the AutoComplete and ComboBox and include features from http://ivaynberg.github.com/select2/
Jonathan
Top achievements
Rank 1
 answered on 14 Aug 2012
0 answers
186 views
Hello Telerik Team,

I have a grid with in-cell editing enabled and the grid is bound to my DepositDepartment model below.  Each DepositDepartment can optionally have a DepositDivision.  This DepositDivision can be chosen by the dropdown list I have on the grid.  The dropdown list gets its Text field from DepositDivision.Name and the Value field from DepositDivision.Id.  I also wire the Save event of the grid, so I can set DepositDivisionId property of the model.  I also need to set the DepositDivisionName property as it will be used for display when the cell comes out of the edit mode. 

public class DepositDepartment
{
    public int Id { get; set; }
    public string Name { get; set; }
    public int? DepositDivisionId { get; set; }
    public string DepositDivisionName { getset; }      
    /* other fields omitted */
}
 
public class DepositDivision
{
    public int Id { get; set; }
    public string Name { get; set; }
    /* other fields omitted */
}

With this setup, everything is working fine except for one specific scenario.  If I select "(None)" on the dropdown and get out of the edit cell.  The next time go into that cell and try to select some legit DepositDivision, when I come out of the cell, it won't have any effect (it will still show blank).  And when that happens, the Save event of the grid won't fire.  I've managed to narrow down the issue and found that in the code snippet below, it will somehow determine that the DepositDivisionId property is an observable object after I select the "(None)" option.  Specifically, when I select "(None)"  (which has empty string as its value) and get out of the edit cell, the grid fires the Save event properly and I set the DepositDivisionId property of my model to empty.  So far so good.  However, when I try to edit the dropdown again (without saving changes on the grid), the "this.widget.value()" will return null instead of empty.  The null value will cause _isObservableObject to be true.  And a little further down the value will be replaced by "value = source[idx];".  At this point the value variable will be the model corresponding to the grid row instead of just blank.  I think this is what causes the this.bindings.value.set(value) to fail and as a result, it won't trigger the Save event of the grid.

change: function () {
    var value = this.widget.value();
    var idx, length;
 
    var field = this.options.dataValueField || this.options.dataTextField;
 
    if (field) {
        var source,
            isObservableObject = this._valueIsObservableObject;
 
        if (this.bindings.source) {
            source = this.bindings.source.get();
        }
 
        if (value === "" && isObservableObject) {
            value = null;
        } else {
            if (!source || source instanceof kendo.data.DataSource) {
                source = this.widget.dataSource.view();
            }
 
            for (idx = 0, length = source.length; idx < length; idx++) {
                if (source[idx].get(field) == value) {
                    if (isObservableObject) {
                        value = source[idx];
                    } else {
                        value = source[idx].get(field);
                    }
                    break;
                }
            }
        }
    }
 
    this.bindings.value.set(value);
},

The sample project size is slightly large than the attachment limit but you can download it from the external link below.

http://dl.dropbox.com/u/18673670/TelerikSamples.zip

I know this is a very specific issue. So if you need further clarification, please feel free to let me know.

Thank you,
ben
Top achievements
Rank 1
 asked on 14 Aug 2012
2 answers
161 views
Hello everyone

Is there a way to set up a specific color to a serie? I am using a webservice.

I am bringing status, description and count... if I want put all that series with the estatus "disabled" in red...

I tried to work with my colors string array but the behavior it isn't standar
 series: [{ field: "count"}],
 seriesColors: ["#FF0000", "#0000FF", "#74DF00", "#DF3A01"],
Iliana Dyankova
Telerik team
 answered on 14 Aug 2012
1 answer
213 views
I want to change the standard select button to my own image.  How can I do this?
Alexander Valchev
Telerik team
 answered on 14 Aug 2012
1 answer
219 views
When TreeView is defined as static structure, or dataSource parameter is array type, expand method works correctly. But if items are bind by Kendo dataSource object the expand method works only if tree node was previously expanded "manually". This issue have consequence also for append method - if we use it to add item to "not-expanded" node it will destroy all child items for this node.

I've added simple example of this issue.

regards,
Piotr
Alex Gyoshev
Telerik team
 answered on 14 Aug 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
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
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?