Telerik Forums
Kendo UI for jQuery Forum
3 answers
386 views
Hi Guys,

I'm hoping for some collective genius as i've hit a stumbling block trying to implement a feature request on a Scheduling application I've written.

The desired effect i'm after is that on a moveEnd event, the user should be prompted with the option to either, Move or Copy the event, with an option to cancel the drag operation also.

So far i have the following (sections of code for illustration purpose only)

var eventHolder;
 
$("#scheduler").kendoScheduler({
moveEnd: function (e) {
        e.preventDefault();
        eventHolder = e;
          var dialog = $("#schedulerWindow").data("kendoWindow");
              dialog.center();
              dialog.open();
      }
});


So i'm preventing the default operation, populating a global placeholder variable with the event data so it's accessible from the following buttons.

$("#moveEventButton").kendoButton({
    click:function(e){
      var dialog = $("#schedulerWindow").data("kendoWindow");
      eventHolder = null;
      dialog.close();
    }
 
  });
  $("#copyEventButton").kendoButton({
    click:function(e){
      var dialog = $("#schedulerWindow").data("kendoWindow");
      eventHolder = null;
      dialog.close();
    }
 
  });
  $("#cancelDragButton").kendoButton({
    click:function(e){
      var dialog = $("#schedulerWindow").data("kendoWindow");
      eventHolder = null;
      dialog.close();
    }
  });

My scheduler data source is quite complex, but in essence contains, create:, update:, read: and destroy: elements, a parameterMap: function to parse the data before the ajax post and a parse: function to format the response.

But i'm at a bit of a loss on where to go next, ideally it would be as easy as calling a method to either create or edit the event but i get the feeling it's not going to be that simple.

Thanks in advance for any suggestions!





Vladimir Iliev
Telerik team
 answered on 29 Jul 2014
3 answers
231 views
Hi,
I wrote a simple appl with a navbar and a title.
Then I add the back button as a lot of examples show and it works perfect.
I create a kind of log-in view where basically a user logs in and I'd like to show at the top right corner in the Nav Bar a button called Log out.
Initially I add directly the button like this:

    <header data-role="header">
        <div data-role="navbar">
            <a class="nav-button" data-align="left" data-role="backbutton">Back</a>
            <span data-role="view-title"></span>
            <a id="logout" class="nav-button " data-align="right" data-role="button" onclick="Test.common.logOut()">Logout</a>
        </div>

    </header>

It works of course, but what I should do is to hide it and show it only when the user is logged.
With some jQury stuff I can hide it but not show it again. I missing something.
Can someone please help me?

thanks a lot
Kiril Nikolov
Telerik team
 answered on 29 Jul 2014
2 answers
104 views
I have a listview and save the user selections to localstorage. When the app closes and is reloaded I pull the selected items from localstorage. 

How can I reselect the items when the listview is displayed? I tried to trigger the click event but I don't know what item actually triggers the click.
Kiril Nikolov
Telerik team
 answered on 29 Jul 2014
2 answers
467 views
Hello,

The datasource read method is called twice when the contents are displayed on UI. Please refer to the attached file for code details.

Thanks for  your time and help.

Alexander Valchev
Telerik team
 answered on 29 Jul 2014
3 answers
129 views
Hi, I have a grid checkbox column that i want to stay read-only in edit mode; but i want to programatically change the value (mode.set) - and have it reflect on the grid.
How can i achieve this?

Dimiter Madjarov
Telerik team
 answered on 29 Jul 2014
1 answer
190 views
I have some columns that are frozen by default, if I try something like $("#grid").data("kendoGrid") I only get the data of all the columns that are not frozen as it seems. How do I get access to the frozen columns?
Dimo
Telerik team
 answered on 29 Jul 2014
1 answer
505 views
Is it possible to set height for the scroller to be a percentage instead of hard coded pixels or ems?  There are so many screen sizes that using a percentage for height makes it easy to adapt for different sizes without having to manually get the window height, and then do a conversion on the height I want and apply it.



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link href="styles/kendo.common.min.css" rel="stylesheet" />
        <link href="styles/kendo.default.min.css" rel="stylesheet" />
        <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
        <link href="styles/Custom/GeneralStyles.css" rel="stylesheet" />
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.all.min.js"></script>

        <title>KonnexMe</title>
    </head>
    <body>
          <!--Main View-->
        <div data-role="view" data-layout="layout" id="viewHome">
            
            <div class="flex">
                <div>
                    <div data-role="scroller" 
                         style="height: 320px; width: 98%; margin-left: .3em; box-shadow: 5px 5px 10px #888888; overflow-x:hidden !important;">
                        <ul id="notesHome" 
                            data-role="listview" 
                            data-type="group" 
                            data-fixed-headers="true">
                            <li>
                                Notes
                                <ul>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <div>
                    <div data-role="scroller" 
                         style="height: 320px; width: 98%; box-shadow: 5px 5px 10px #888888;">
                        <div>
                            <ul id="tasksHome"
                                data-role="listview"
                                data-type="group"
                                data-fixed-headers="true">
                                <li>
                                    Tasks
                                    <ul>
                                        <li>Tasks</li>
                                        <li>Two</li>
                                        <li>Three</li>
                                        <li>Four</li>
                                        <li>One</li>
                                        <li>Two</li>
                                        <li>Three</li>
                                        <li>Four</li>
                                        <li>One</li>
                                        <li>Two</li>
                                        <li>Three</li>
                                        <li>Four</li>
                                        <li>One</li>
                                        <li>Two</li>
                                        <li>Three</li>
                                        <li>Four</li>
                                        <li>One</li>
                                        <li>Two</li>
                                        <li>Three</li>
                                        <li>Four</li>
                                        <li>One</li>
                                        <li>Two</li>
                                        <li>Three</li>
                                        <li>Four</li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="flex">
                <div id="activitesHome">
                    <div data-role="scroller"
                         style="height: 320px; width: 98%; margin-left: .3em; margin-top: .5em; box-shadow: 5px 5px 10px #888888; overflow-x:hidden !important;">
                        <div data-role="scheduler"></div>
                    </div>
                </div>
                <div>
                    <div data-role="scroller"
                         style="height: 320px; width: 98%; margin-top: .5em; box-shadow: 5px 5px 10px #888888;">
                        <ul id="alertsHome"
                            data-role="listview"
                            data-type="group"
                            data-fixed-headers="true">
                            <li>
                                Alerts
                                <ul>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                    <li>One</li>
                                    <li>Two</li>
                                    <li>Three</li>
                                    <li>Four</li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
        

        

        <!--Main View Drawer-->
        <div id="drawerHome"
             data-role="drawer"
             data-views="['viewHome']">
            <ul data-role="listview" data-style="inset">
                <li><a>Accounts</a></li>
                <li><a>Calendar</a></li>
                <li><a>Company</a></li>
                <li><a>Correspondence</a></li>
                <li><a>Documents</a></li>
                <li><a>People</a></li>
                <li><a>Reports</a></li>

                <li><img src="" style="height: 10em; margin-left: 1.6em;"></li>

                <li><a>Change UI Theme</a></li>
                <li><a data-transition="none">About</a></li>
                <li><a href="/views/Logout.html" data-transition="none" data-target="paneMain">Logout</a></li>
            </ul>
        </div>
        
        
        

        <!--Global Layout-->
        <div data-role="layout" data-id="layout">
            <header data-role="header">
                <div data-role="navbar">
                    <a data-role="button" data-rel="drawer" href="#drawerHome" data-icon="drawer-button" data-align="left"></a>
                    <span data-role="view-title">Sample</span>
                </div>
            </header>

            <footer data-role="footer">
                <div data-role="tabstrip">
                    <a data-icon="contacts">Profile</a>
                    <a data-icon="settings">Settings</a>
                </div>
            </footer>
        </div>
            
        
        <style>
            .flex {
                display: flex;
                flex-direction: row;
            }

            .flex > div {
                flex: 1 1;
            }
        </style>

        <script>
            var app = new kendo.mobile.Application(document.body);
        </script>
    </body>
</html>
Kiril Nikolov
Telerik team
 answered on 29 Jul 2014
1 answer
148 views
We are having an issue with our grid that when a column is dragged into the group section it is no longer horizontal scrollable.

If the grouping is deleted then we can horizontal scroll again.

Has anybody ran into this issue before?
Dimo
Telerik team
 answered on 29 Jul 2014
1 answer
62 views
Hi, I noticed a bug in Chrome for editor.  If you click browser back button on a page with editor then click browser forward button, the editor shows the HTML.  I was able to reproduce at demo site as well.

http://demos.telerik.com/kendo-ui/editor/index
Dimo
Telerik team
 answered on 29 Jul 2014
3 answers
368 views
Hi ,

I would like to have masked text inside combobox. For example value from my database will be A22345. This will appear as user starts typing. But I would like it to be displayed as A2-2345 in the combobox. How can I achieve this?
Georgi Krustev
Telerik team
 answered on 29 Jul 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
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?