Telerik Forums
Kendo UI for jQuery Forum
1 answer
76 views
From a grid row I would like to open a kendoWindow that provides a form and is pre-filled with the dataitem from the selected row.
The window is using a kendoTemplate as its content and now I want to use various kendo widgets in the template like datepicker and numerictextbox etc.

My current solution can be found in this fiddle:
http://jsfiddle.net/somethingunique/W5tj2/

Can somebody help me out, why the numerictextbox is not shown in my solution? Or should I an event on the window or template to initialize the numerictextbox

Dimo
Telerik team
 answered on 09 Apr 2014
1 answer
96 views
Hi,

It seems that I just cannot get beyond this issue.This is an example of dataset:[
{ type: "FOO", date: 1396952060722, count: 3 },
{ type: "BAR", date: 1396952060722, count: 2 },
{ type: "FOO", date: 1396952060722, count: 4 },
{ type: "BAZ", date: 1396952060722, count: 1 },
{ type: "FOO", date: 1396952060722, count: 3 },
{ type: "FOO", date: 1396952060722, count: 3 }
]
How can I make stacked column chart where X axis holds dates and columns are stacked bytype with count fields summed (Y axis) if they fall under the same date. I also need a way to regulate date granularity (year/month/day) and the data should distribute accordingly.Is there a buildin way to do this or I'll have to make complex data transform?

This is really important feature for us and I want to take advantage of every Kendo feature as much as possible so I can justify possible purchase.

Thanks.

T. Tsonev
Telerik team
 answered on 09 Apr 2014
1 answer
314 views
Hi there,

I want to add a default filter to a boolean column in the grid. Could you tell me how to do it?

@(Html.Kendo()
.Grid<Client.Website.Models.ClientModel>()
.Name("ClientGrid")
            .HtmlAttributes(new { style = "height:100%; clear:both;table-layout: fixed;" })
            .Columns(columns =>
            {
                columns.Bound(c => c.ClientId).Hidden();
                columns.Bound(c => c.Name);
                columns.Bound(c => c.IsActive).Width(80).Filterable(filter=>filter.Enabled(true));
                columns.Bound(c => c.Notes)})
            .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("GetClients", "Client"))
                    )
            .Scrollable()
            .Pageable()
            .Sortable()
            .Selectable()
            .Filterable())

Thank you


regards
Jerry
Alexander Popov
Telerik team
 answered on 09 Apr 2014
1 answer
88 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
528 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
95 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
211 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
204 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
150 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
139 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
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?