Telerik Forums
Kendo UI for jQuery Forum
1 answer
114 views
I've done a little experiment with http://demos.telerik.com/kendo-ui/web/sortable/sortable-panels.html and created a panel that has a simple chart in it.

If I move and other sortable item except the chart itself it removes all colors from the chart (see the the attachment file: error.png).
This happens on desktop and mobile versions of Chrome and Opera or better yet all browsers that use a blink/webkit html engine.

I could not reproduce this behaviour in IE11 or the latest version of Firefox.

It's not crucial to me at this moment but just letting you know.
Alexander Valchev
Telerik team
 answered on 09 Apr 2014
1 answer
561 views
Hi.  I am a newbie to Kendo and Mvc in general. I am trying to add a column to a grid that I would like to display as masked (i.e.  a zip code with a "00000-0000" format, or a phone number with a (000)000-0000 format.

I have not found any examples for this.  Can someone please direct me to one?  The closest I see is a masked text box, but I don't see a  way to use this in a grid.


Thank you.
Alexander Valchev
Telerik team
 answered on 09 Apr 2014
1 answer
118 views
I've having an issue when attempting to create a repeating event that runs across the midnight time span.  For instance if I create an event that runs from 4/8 10PM until 4/09 4AM, I end up with a display that shows an event from 10PM until Midnight on 4/8 and an event that is from 9:30PM(ish) until 9:45PM(ish) on 4/9.  

I've duplicated this issue won the Kendo UI Dogo as well.  

Attached is an image that contains 2 events.  Both events run from 8PM to 7:30PM the next day.  The blue event has a weekly repeat set such that it repeats every tuesday.  The other event does not have this set.  These events were created on the Dojo.  

I'm wondering if there is anything I can do to address this.  Or will the package need to be updated to fix this issue?  

Thanks,
Jared
Georgi Krustev
Telerik team
 answered on 09 Apr 2014
2 answers
253 views
Hi,

In the following example i have a kendo datetimepicker with a min and max date.

When i change the date by typing only (don't use the calendar and time button), and change it to the max day: 16/6/2014
And then open the time picker, it still shows the min time of 8:15 which is not correct.

http://jsfiddle.net/NNnJy/
Georgi Krustev
Telerik team
 answered on 09 Apr 2014
1 answer
233 views
Hi

I was trying to make grid as attached in file using Kendo Grid, but delete command can't called destroy event to delete data. And i use text box to add new data on footer table, so it can always be shown even if user change grid paging. Is this possible to be done?

Here is my html code:
<div id="example" class="k-content">
    <table id="grid">
        <colgroup>
            <col class="photo" />
            <col class="details" />
            <col />
        </colgroup>
        <thead>
            <tr>
                <th>
                    Picture
                </th>
                <th>
                    Details
                </th>
                <th>
                    ID
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="3"></td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td>
                    <input type="text">
                </td>
                <td>
                    <input type="text">
                </td>
                <td>
                    <input type="button" value="Add" />
                </td>
            </tr>
        </tfoot>
    </table>
    <div id="pager"></div>
    <script id="rowTemplate" type="text/x-kendo-tmpl">
        <tr data-uid="#: id #">
            <td class="photo">
                <span class="title">#: productName #</span>
            </td>
            <td class="details">
                <span class="title">#: category #</span>
            </td>
            <td class="employeeID">
                <a class="k-button k-button-icontext" href="\#" onclick="deleteValue(this)"><span class="k-icon k-delete"></span></a>
            </td>
        </tr>
    </script>
    <script id="altRowTemplate" type="text/x-kendo-tmpl">
        <tr class="k-alt" data-uid="#: id #">
            <td class="photo">
                <span class="title">#: productName #</span>
            </td>
            <td class="details">
                <span class="title">#: category #</span>
            </td>
            <td class="employeeID">
                <a class="k-button k-button-icontext" href="\#" onclick="deleteValue(this)"><span class="k-icon k-delete"></span></a>
            </td>
        </tr>
    </script>
</div>

Here is my script code:
var dataSource;
$(document).ready(function () {
    dataSource = new kendo.data.DataSource({
        autoSync: true,
        batch: true,
        transport: {
            read: {
                url: "@Url.Action("Read", "Home")",
                dataType: "json"
            },
            create: {
                url: "@Url.Action("Save", "Home")",
                dataType: "json",
                type: "POST"
            },
            update: {
                url: "@Url.Action("Save", "Home")",
                dataType: "json",
                type: "POST"
            },
            destroy: {
                url: "@Url.Action("Delete", "Home")",
                dataType: "json"
            },
            parameterMap: function (data, operation) {
                if (operation != "read" && data.models) {
                    return { models: kendo.stringify(data.models) };
                }
            }
        },
        pageSize: 2
    });
 
    $("#grid").kendoGrid({
        dataSource: dataSource,
        rowTemplate: kendo.template($("#rowTemplate").html()),
        altRowTemplate: kendo.template($("#altRowTemplate").html()),
        pageable: {
            previousNext: false
        },
        editable: "inline"
    });
});

function deleteValue(sender) {
    var products = dataSource.data();
    dataSource.remove(products[0]);
    dataSource.sync();
}

Is there anything that i missed?
Alexander Valchev
Telerik team
 answered on 09 Apr 2014
2 answers
173 views
Use gird editable 'popup', when click edit button and pop up a dialog and click 'cancel', the edit row will be deleted. Here is the demo code~


  <div id="grid" data-role="grid" data-scrollable="true"
                 data-editable="popup" data-toolbar="['create' ]"
                 data-columns="[ 
                                 { 'field': 'DashboardName', 'width': 200 },
                                 { 'field': 'DashboardDescription', 'width': 300 },
                                 { 'command': ['edit', 'destroy' ], 'title': '&nbsp;', 'width': 150 }
                 ]"
                 data-bind="source: dashboardSource" style="width: 800px; height:500px;">

</div> 
    
<script type="text/javascript">    

    $(document).ready(function () {  

        kendo.bind(document.body, viewModel);

    });


    var viewModel = kendo.observable({        

        dashboardSource: new kendo.data.DataSource({
            schema: {
                model: {
                    id: "DashboardId",
                    fields: {
                        DashboardId: { editable: false },
                        DashboardName: { validation: { required: true } },
                        DashboardDescription: { },
                        UserAlias: { validation: { required: true } }
                    }
                }
            },
            data: []
            
        }),

    }); 

</script>
Alexander Valchev
Telerik team
 answered on 09 Apr 2014
1 answer
154 views
I am using an external template and binding it my javascript.   In IE8 I don't get my template.  What am I missing to make this work in IE8?


Javascript:
var data = kendo.template($('#contactTmpl').html());
 $('[data-iaform]').find('form').replaceWith(data);

HTML:
 <title>{$site_title}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<div class="class-Price-Quote-form" data-iaform="" >
       <form>
       </form> 
</div>

Kendo Template:
<script id="contactTmpl" type="text/x-kendo-template">

    <form class="contactTmpl" data-iacuform="">
        <h4>Contact Name<span class="k-invalid-msg" data-for="name"></span></h4>
        <input type="text" data-bind="value: name" name="name" placeholder="Full name" required data-required-msg="Please enter your name." />
        <h4 >Title<span class="k-invalid-msg" data-for="title"></span>
        <input type="text" data-bind="value: title" name="title" placeholder="Your title" data-required-msg="Please enter your title." /></h4>
        <h4>Email<span class="k-invalid-msg" data-for="email"></span></h4>
        <input type="email" data-bind="value: email" name="email" placeholder="e.g. myname@example.net"  required data-required-msg="Please enter your                 email."  validationMessage="Please enter email in following format: myname@example.net" />    
        <h4>Organization<span class="k-invalid-msg" data-for="organization"></span></h4>
        <input type="text" data-bind="value: organization" name="organization" required data-required-msg="Please enter your organization." placeholder="Your organization" />
        <h4>Phone</h4>
        <input type="tel" data-bind="value: phone" name="phone" />
        </form>
</script>
Petyo
Telerik team
 answered on 09 Apr 2014
1 answer
249 views
Hello ,
Can you provide us with project for master-datial CRUD operations for kendo web grid (CRUD for both master and detail)

Thanks
Alexander Valchev
Telerik team
 answered on 09 Apr 2014
8 answers
236 views
Hey,
I have a problem with Kendo grid css over google chrome, please check the attached files which show the problem 
Dimo
Telerik team
 answered on 09 Apr 2014
3 answers
706 views
Hi Guys

I am new to Kendo MVVM and trying to decipher a way to correctly implement the architecture. I have read many posts and put together a working implementation which I would like to get your take on:

My view.
define(['kendo', 'data', 'utils', 'config'], function (kendo, data, utils, config) {
   var _runInit = false;
   var browseViewModel = kendo.observable({
      browseSource: data.browseServices(),
      itemClick: function (e) {
         window.localStorage["RequestId"] = e.dataItem.RequestId;
         utils.navigate('details.html', 'slide');
                                           
      }
   })
 
   return {
      init: function (initEvt) {
 
         //kendo.bind($('#serviceDetailsListview'), browseViewModel, kendo.mobile.ui);
 
      },
      beforeShow: function (beforeShowEvt) {},
      show: function (e) {
         console.log(e.view.params.fromView);
         if (e.view.params.fromView != "detailsPage") {
            if (!_runInit) {
               kendo.bind($('#serviceDetailsListview'), browseViewModel, kendo.mobile.ui);
               _runInit = true;
            } else {
               browseViewModel.set("browseSource", data.browseServices());
            }
         }
 
      },
      viewModel: browseViewModel
   }
});

Data Source:

var browseServices = function () {
 
    var browseDataSource = new kendo.data.DataSource({
       requestStart: function (e) {
 
          utils.showLoading();
       },
       requestEnd: function (e) {
          utils.hideLoading();
       },
       error: function (e) {
          var xhr = e.xhr;
          var statusCode = e.status;
          var errorThrown = e.errorThrown;
          alert("A error has occured fetching data from the server.");
       },
       transport: {
          read: {
             url: config.browseUrl,
             dataType: "json",
             cache: false
          },
          parameterMap: function (options, type) {
 
             var theSettings = utils.getCurrentSettings();
             return {
                phonelat: window.localStorage["gpsLat"],
                phonelon: window.localStorage["gpsLong"],
                assetId: window.localStorage["AssetId"],
                groupId: window.localStorage["GroupId"],
                serviceId: window.localStorage["ServiceId"],
                range: theSettings.RequestRange
 
             }
          }
       },
       change: function (e) {
          var data = this.data();
 
       },
       schema: {
          data: function (response) {
 
             storage.persistServicesCollection(response.Collection);
             return response.Collection;
          }
       }
    });
    return browseDataSource;
 
 }

HTML:

<div data-role="view" data-layout="child" data-title="Service Overview" data-show="app.browseView.show" id="serviceDetailsView">
   
<ul data-role="listview" id="serviceDetailsListview" data-bind="source: browseSource, click: itemClick" data-template="templateServiceDetails" ></ul>
 
<script type="text/x-kendo-template" id="templateServiceDetails">
     <div class="product">
    <a data-role="detailbutton" data-style="detaildisclose"></a>
      #if (Image != null){#
     <img class="pullImage" src='#: Image.ImageUrl#' />
      #}else{#
       <img class="pullImage" src='images/marker.png' />
        #}#
    <h3>${Address} </h3>
    <p>Range: ${Range} km</p>
    <p>Status: ${Status}</p>
    <p>Created: ${DateCreated}</p>
    </script>
</div>
 
</div>


It seems to work (as in I am getting the expected result), however, I am not sure if this is the correct implementation? The idea is to refresh the view from the remote source onShow?

Is there a better way to design? Am I missing something?

Thanks in advance
Luke



Kiril Nikolov
Telerik team
 answered on 09 Apr 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
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
DropDownTree
ListBox
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?