Telerik Forums
Kendo UI for jQuery Forum
4 answers
154 views
I have a splitter in a window and resize the splitter to fit the window like this...

    //open window
    window.data("kendoWindow").open();

    //ensure splitter is sized correctly
    splitter.trigger("resize");

this code works in 2013.1.419

when i upgraded to the latest version (2013.3.1119) this no longer works. any ideas?
Alex Gyoshev
Telerik team
 answered on 29 Jan 2014
1 answer
337 views
I need to use MultiSelect with a large data source (15K+ items) and am trying to figure out if this is possible with reasonable performance. I've enabled server-side filtering, but the control still tries to pull down the entire list of items on initialization. Part of my dilemma is that one client has 10K+ items that are all in the format of: 12345***** where the first 5 characters are always the same. I think ideally the control would have some sort of virtualization where it could pull down a page of data at a time while the user scrolls through it.

Are there any tips for working with the control using large data sources?
Kiril Nikolov
Telerik team
 answered on 29 Jan 2014
3 answers
98 views
I'm running it in the context of an Android app, and when I go to the kendo page part it flashes white first, then goes to the correct style/dark background. Is there any way to not flash white when starting up?
Kiril Nikolov
Telerik team
 answered on 29 Jan 2014
7 answers
247 views
I've got a Kendo UI Grid with row details displaying tabs, using the kendo-template and tabRowDetails.   I've got a div in the tab that contains text with over-flow-y: scroll so that the user can scroll through the text in the row detail without having to take up the whole page.  The scrolling works fine with Firefox, Chome, and Safari, but the vertical scroll does not work with IE11(scrolling with mouse wheel works ok).   The scrolling lags when clicking on the scroll bar and dragging...

The html looks like:
<div id="example" class="k-content">
     <div id="grid"></div>
     <script type="text/x-kendo-template" id="template">
         <div class="tabstrip">
             <ul class="tabRowDetails">
                 <li class="k-state-active tabformat" onclick="TabClicked(this)">
                         Visit
                </li>
                         etc.............             
          </ul>
        <div class="pageViewDetailsTop tabGeneral">
         <!--Customer Details-->
         <table>
            <tr>
                 <td>
                 </td>
                <td style="border-left: none;">
                           -----> scrolling div here......
                 </td>
          </tr>
        ............
Dimo
Telerik team
 answered on 29 Jan 2014
1 answer
156 views
How does one listen on clicks on the dropdown arrow that's generated by the hierachy grid?
Nikolay Rusev
Telerik team
 answered on 29 Jan 2014
1 answer
165 views
We use the Scheduler widget like the following: 

<div id="scheduler" style="height:500px"></div>
 
$("#scheduler").kendoScheduler({
    editable: {
        confirmation: false
    },
    resources: ko.observable([
        {
            field: "displayMode",
            dataSource: [
                    { text: "Regular-Other-Future", value: 111, color: "#93D095" },
                    ...
            ]
        }
    ]),
    add: function (e) {
        e.preventDefault();
        // Custom adding implementation
    },
    edit: function (e) {
        e.preventDefault();
        // Custom editing implementation
    },
    remove: function (e) {
        e.preventDefault();
        // Custom removing implementation
    },
    moveStart: function (e) {
        e.preventDefault(); // Prevent drag-and-drop
    },
    move: function (e) {
        e.preventDefault(); // Prevent drag-and-drop
    },
    moveEnd: function (e) {
        e.preventDefault(); // Prevent drag-and-drop
    },
    views: [{ type: "day", showWorkHours: true }, { type: "week", showWorkHours: true, selected: true }, "month", "agenda"],
    timezone: "Etc/UTC",
    date: new Date(),
    dataSource: self.dataSource // self.dataSource is KO observable, which is assigned later with kendo.data.SchedulerDataSource()
});

There is no ability for events resizing - when cursor is over an event, cross icon appears but no marks for resizing (as result no resizeStart/resize/resizeEnd events are fired). Please look at the attached screenshot. 

How to make the event resizing feature to be active? It looks like by default it should be available but in our case it is even just not visible. 

Thank you in advance! 
Atanas Korchev
Telerik team
 answered on 29 Jan 2014
5 answers
242 views
I have a problem with creating a listview. I have a category page from where i navigate to a messages page specific to the chosen category. The messages view is a listview with and endless scroll in it. The problem is that I always only see one item in the listview and when i try to update the listview i get a TypeError undefined has no properties.

I have attached the code below, Im really stuck on what to do?

categories.html
01.<div id="category" data-role="view" class="NoBack" data-init="getCategories" data-show="categoryShow" data-title="Categories">
02.    <header data-role="header" data-id="defaultHeader">
03.        <div data-role="navbar" data-id="firstNavbar">
04.            <a class="nav-button" data-role="backbutton" data-align="left">Back</a>
05.            <span data-role="view-title"></span>
06.        </div>
07.        <div data-role="navbar" data-id="secondNavBar">
08.            <ul id="buttongroup" data-role="buttongroup" data-index="0" data-select="redirect">
09.                <li>View Categories</li>
10.                <li>View All</li>
11.            </ul>
12.        </div>
13.    </header>
14.    <div>
15.        <ul data-role='listview' data-style='inset' data-source="categoryListDS" data-template="categoryTemplate" data-select-on="up">
16.        </ul>
17.    </div>
18.    <script id="categoryTemplate" type="script/x-kendo-template">
19.        <a id="#: id#" title="#: title#" onclick="updateMessages(id,title);return false;">
20.            <img src="#: icon#"/>#: title#</a>
21.    </script>
22.</div>

messages.html
01.<div id="messageList" data-role="view" data-title="Secrets">
02.        <!-- list of secrets -->
03.        <ul id="messageList" data-role="listview"  data-source="messagesDS" data-endless-scroll="true" data-template="messagesTemplate">
04.        </ul>
05. 
06.     
07.    <script type="text/x-kendo-template" id="messagesTemplate">
08.        <a id="#:id#" href="messageDetails.html?id=#:id#&message=#:message#">
09.            <p>#:message#</p>
10.        </a>
11.    </script>
12.</div>


Snippet of JS associated with the problem
01.var messagesDS = new kendo.data.DataSource({
02.    data: [],
03.    pageSize: 60,
04.});
05. 
06. 
07.function clearMessages(){
08.    messagesDS.data([]);
09.}
10. 
11.// Updates the messages and shows them to the user
12.// TODO: make the language dynamic
13.function updateMessages(id, title) {
14. 
15.    clearMessages();
16. 
17.    var data = {
18.        'language': "en",
19.        'api_version': '2'
20.    };
21.    var categoryId = id.split('-').pop();
22.    categoryId = typeof categoryId !== 'undefined' ? categoryId : "";
23. 
24.    var url = SERVER_NAME;
25.    if (categoryId === "") {
26.        url += '/secret/all';
27.    }
28.    else {
29.        url += '/secret/category/' + categoryId;
30.    }
31.    url += '?callback=?';
32. 
33.    $.getJSON(url, data, function(json) {
34.        $.each(json.messages, function() {
35.            messagesDS.add({id: this.id, message: this.message, machineTimestamp: this.machine_timestamp, humanTimeStamp: this.human_timestamp, comments: this.number_comments})
36.        });
37.    });
38.    app.application.navigate('messages.html');
39.}
Kiril Nikolov
Telerik team
 answered on 29 Jan 2014
1 answer
77 views
I have a grid where I want to select multiple rows and post back a list of IDs back to an action.  I've tried various ways but I'm not successful.  Here's my code.

@Html.Kendo().Grid(Model).Name("events").Columns(columns =>
    {
        columns.Bound(c => c.EventID).Width(140).Title("Name").Hidden(true);
        columns.Bound(c => c.EventName).Width(140).Title("Name");
        columns.Bound(c => c.EventStatus).Width(120).Title("Status");
        columns.Bound(c => c.EventStartDate).Width(140).Format("{0: MM-dd-yyyy}").Title("Start Date");
        columns.Bound(c => c.EventEndDate).Width(140).Format("{0: MM-dd-yyyy}").Title("End Date");
        columns.Bound(c => c.RegisteredParticipants).Width(120).Title("Registered");
    }).HtmlAttributes(new { style = "height: 400px;" }).Scrollable().Sortable().Selectable(s => s.Mode(GridSelectionMode.Multiple)).DataSource(d => d.Server().Model(m => m.Id(c => c.EventID))
)

//Action 
   [HttpPost]
     public ActionResult EmailEvents(IEnumerable<int> events)
     {

         if (events != null)
         {
             if (events.Any())
             {
                 EmailEventParticipants(events);
             }
         }
         return View();
     }

Alexander Popov
Telerik team
 answered on 29 Jan 2014
1 answer
152 views
Am trying to use Linq (VB.net) to populate grid with data returning from MS SQL Stored procedure. 
1) Every thing works fine if SP returns fixed numbers of colums ex - 

Create procedure testp1 as 
begin 
select * from tab_a
end

2) How ever things dont work if SP returns dynamically created column names ex - 

Create procedure testp2 as 
begin
select 'T'+ltrim(str(day(getdate()-2),2)),'T'+ltrim(str(day(getdate()-1),2)),'T'+ltrim(str(day(getdate()),2))
end

Is there a way to populate data grid for SP like second one given above?
Petur Subev
Telerik team
 answered on 29 Jan 2014
1 answer
151 views
We use the Scheduler widget like the following: 

<div id="scheduler" style="height:500px"></div>
 
$("#scheduler").kendoScheduler({
    editable: {
        confirmation: false
    },
    resources: ko.observable([
        {
            field: "displayMode",
            dataSource: [
                    { text: "Regular-Other-Future", value: 111, color: "#93D095" },
                    ...
            ]
        }
    ]),
    add: function (e) {
        e.preventDefault();
        // Custom adding implementation
    },
    edit: function (e) {
        e.preventDefault();
        // Custom editing implementation
    },
    remove: function (e) {
        e.preventDefault();
        // Custom removing implementation
    },
    moveStart: function (e) {
        e.preventDefault(); // Prevent drag-and-drop
    },
    move: function (e) {
        e.preventDefault(); // Prevent drag-and-drop
    },
    moveEnd: function (e) {
        e.preventDefault(); // Prevent drag-and-drop
    },
    views: [{ type: "day", showWorkHours: true }, { type: "week", showWorkHours: true, selected: true }, "month", "agenda"],
    timezone: "Etc/UTC",
    date: new Date(),
    dataSource: self.dataSource // self.dataSource is KO observable, which is assigned later with kendo.data.SchedulerDataSource()
});

We need to have custom drag-and-drop handlers, but moveStart/move/moveEnd work unstable, sometimes it's impossible to drop the event (it sticks to mouse cursor) and exceptions are thrown from inside Kendo code after several D&D actions. We tried to block drag-and-drop operations (by calling preventDefault event methods, as you can see in the code above), but this does not help: if aggressively try to drag an event, exception appears again - but expected behavior is nothing should happen since the beginning of drag operation is prevented. 

The question is how to properly implement the moveStart/move/moveEnd handlers to have stable working in both cases (with custom logic and just to block the D&D feature)? 

Thank you very much in advance! 
Atanas Korchev
Telerik team
 answered on 29 Jan 2014
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
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
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?