Telerik Forums
Kendo UI for jQuery Forum
1 answer
522 views
If I have a grid in batch edit mode with numeric columns that add the numeric Editor to the cell, I need it so that when the field value is 0 (zero) it either shows as blank or highlights the zero so a user can type the value without the superfluous zero. In other words, a data-entry person using the keyboard (over the spinner) to navigate the grid and enter data, will need to do extra work to prevent the value from staying as "4000" when they intend to enter "400", b/c the cursor by is to the left of the default value. I've done this myself many times in unit testing. It's an annoying trait when they want to do rapid keyboard-based data entry.
Boyan Dimitrov
Telerik team
 answered on 07 Apr 2016
1 answer
101 views

Hi,

I use the build-in functions to export a grid to Excel. Is it possible to use a template file (xlt) for styling the output excel export? The template could also contain a letterhead with a logo so it needs to be possible, to specify an offset for rows and columns.

Thanks and regards,

Stefan

Dimiter Madjarov
Telerik team
 answered on 07 Apr 2016
1 answer
406 views
Is there a way to check all by default for this control when it is being used with the grid? Users would like it to behave similar to Excel in a way. Thanks, Hung.
Boyan Dimitrov
Telerik team
 answered on 07 Apr 2016
1 answer
3.3K+ views

Hi,

I've got a problem with your textarea under angularjs.

I need to initialize control as you can check here:

http://dojo.telerik.com/IxEKI

but, when there's no text, i DON'T want "inherited font" and "inherited size" as default selection for comboboxes, i have to select fontsize and fonttye from settings i read on my setting db.

When something is written inside, it's accettable selection mentioned above... really it would be better if selection correstond to the font and size used to write text present inside.

Thanks a lot

Matteo

Niko
Telerik team
 answered on 07 Apr 2016
2 answers
165 views

There's a Kendo UI 2016.1.406 showing for download, but the online Release Notes page just has "n/a".  Are the notes to follow?

Also, I get "2015.3.1214" returned from "kendo.version" in my console, and I certainly seem to remember updating to something around that vintage, but "old versions" only shows "2015.3.930" and "2015.3.1111" before hitting "2016.1.112".  Was 2015.3.1214 withdrawn or otherwise disappeared?

Khengaik
Top achievements
Rank 1
Iron
 answered on 07 Apr 2016
1 answer
711 views

Hi

I am trying to return IDs for all grid rows in the order the grid is shown in...I have a hidden column which contains the ID.

I first tried with the code below.. where gridData is the datasource.data

        for (var i = 0; i < gridData.length; i++) {
            var dataitem = gridData[i].Id;            
        }

The above works, however the ID order is always the same even after fort or filters have been applied.

What am I doing wrong or what property should I be using?

Regards

Mike

Boyan Dimitrov
Telerik team
 answered on 07 Apr 2016
10 answers
872 views
When I have a div like this:

<div data-role="view" id="vFoo">
    <div data-role="header">
        <div data-role="navbar">
            <a class="drawer-button" data-role="button" data-rel="drawer"
                href="#my-drawer" data-align="left">
                <img src="img/menu_button.png" />
            </a>
            <span>Foo view</span>
        </div>
    </div>
    <div class="margin-box">
        The page
    </div>
</div>

the result will involve an automatic scroll container (why?)

It will wrap the margin box div I have like this

<div class="km-scroll-container" style="transform: translate3d(0px, -60px, 0px) scale(1);">
  <div class="margin-box">
     The page
  </div>
</div>

What I want is to get events from that automatically created scroller, especially the one where I scroll to far and get an elastic bounce back.

I also want to know how to get rid of the automatic creation of the scroller.
Alexander Valchev
Telerik team
 answered on 07 Apr 2016
3 answers
377 views

Hello,

I have a table that contain a lots of rows (3000+ rows). Each rows are text entered by the users. Some have 1 line of text, some have 100 lines of text.

So each rows have a different height. I cannot truncate the text.

If I use virtual scroll, sometime the scroll "jump" and skip some rows.

And if I don't use the virtual scroll, the page take a long time to load and even get the unresponsive script error message from the browser.

 

I know about the warning about virtual scroll and different height from http://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#virtual-scrolling, but I was hoping someone would have find a way around that?

 

Alexander Valchev
Telerik team
 answered on 07 Apr 2016
4 answers
179 views

Here are my code. Job data aren't coming in scheduler. There is error in browser's console also.

 

function recreateScheduler(groupArray, techs) {
    $("#kendoDemoScheduler").kendoScheduler({
        date: new Date("2016/3/31"),
        startTime: new Date("2016/3/31 07:00 AM"),
        height: 600,
        eventHeight: 50,
        majorTick: 60,
        views: [
            { type: "timeline", selected: true}
        ],
        timezone: "Etc/UTC",
        dataSource: {
            batch: true,
            transport: {
                read: {
                    url: '@Url.Action("JobSchedule_Read", "JOBS")',
                    dataType: "jsonp"
                },
                update: {
                    url: "//demos.telerik.com/kendo-ui/service/meetings/update",
                    dataType: "jsonp"
                },
                create: {
                    url: "//demos.telerik.com/kendo-ui/service/meetings/create",
                    dataType: "jsonp"
                },
                destroy: {
                    url: "//demos.telerik.com/kendo-ui/service/meetings/destroy",
                    dataType: "jsonp"
                },
                parameterMap: function (options, operation) {
                    if (operation == "read") {
                        var searchCondition = "";
                        var statusCheckBoxesValues = "";
 
                        var sortFilter = $("#sortFilterDropDownList").data("kendoDropDownList").text();
                        var dispatch = $("#dispatchDropDownList").data("kendoDropDownList").value();
                        var assignto = $("#techDropDownList").data("kendoDropDownList").value();
                        var area = $("#areaDropDownList").data("kendoDropDownList").value();
                        var category = $("#categoryDropDownList").data("kendoDropDownList").value();
                        var product = $("#productDropDownList").data("kendoDropDownList").value();
                        var proditem = $("#itemDropDownList").data("kendoDropDownList").value();
 
                        var datefrom = $("#fromDatePicker").val();
                        var dateto = $("#toDatePicker").val();
 
                        if (sortFilter == "[NONE]") {
                            if (area == "[ALL]" && dispatch == "[ALL]" && assignto == "[ALL]" && category == "[ALL]") {
                                searchCondition = "opq3";
                            }
                            else
                                searchCondition = "opq3_1";
                        }
 
                        if (sortFilter == "Name")
                            searchCondition = "opq1";
                        else if (sortFilter == "@SystemConfiguration.AssignTo")
                            searchCondition = "opq2";
                        else if (sortFilter == "PostCode")
                            searchCondition = "opq4";
                        else if (sortFilter == "Area")
                            searchCondition = "opq5";
                        else if (sortFilter == "Suburb")
                            searchCondition = "opq6";
                        else if (sortFilter == "Job Address")
                            searchCondition = "opq8";
 
                        $(".treatmentCheckBoxes .k-checkbox").each(function (index) {
                            if ($(this).is(":checked"))
                                statusCheckBoxesValues += $(this).attr("status") + ",";
                        })
 
                        $(".followUpCheckBoxes .k-checkbox").each(function (index) {
                            if ($(this).is(":checked"))
                                statusCheckBoxesValues += $(this).attr("status") + ",";
                        })
 
                        if (statusCheckBoxesValues.indexOf(",") >= 0)
                            statusCheckBoxesValues = statusCheckBoxesValues.substring(0, (statusCheckBoxesValues.length - 1));
 
                        return {
                            ip_cond: searchCondition,
                            ip_area: area == "" ? "[All]" : area,
                            ip_dispatch: dispatch == "" ? "[All]" : dispatch,
                            ip_assignto: assignto == "" ? "[All]" : assignto,
                            ip_category: category == "" ? "[All]" : category,
                            ip_product: product == "" ? "[All]" : product,
                            ip_proditem: proditem == "" ? "[All]" : proditem,
                            ip_streetno: $("#txtSearchStreetNo").val(),
                            ip_filter: $("#txtSearchInput").val(),
                            ip_datefrom: datefrom == "" ? null : datefrom,
                            ip_dateto: dateto == "" ? null : dateto,
                            ip_statlist: statusCheckBoxesValues == "" ? "DB" : statusCheckBoxesValues,
                            ip_unsched: $("#unsceduledCheckBox").is(":checked"),
                            ip_contr_only: $("#contractJobsCheckBox").is(":checked"),
                            ip_quote: $("#quoteShowOnlyCheckBox").is(":checked")
                        };
                    }
                }
            },
            schema: {
                model: {
                    id: "ReservationID",
                    fields: {
                        taskId: { from: "ReservationID" },
                        title: { from: "Title" },
                        start: { type: "date", from: "Start" },
                        end: { type: "date", from: "End" },
                        ownerId: { from: "emm_code" }
                    }
                }
            }
        },
        group: {
            resources: groupArray,
            orientation: "vertical"
        },
        resources: [
            {
                field: "attendees",
                name: "Attendees",
                dataTextField: "TechName",
                dataValueField: "emm_code",
                dataSource: techs,
                multiple: true,
                title: "Attendees"
            }
        ]
    });
}
 
$(function () {
    var groupArray = ["Attendees"];
    var techs = [];
 
    $.ajax({
        async: false,
        url: '@Url.Action("Techs", "JOBS")',
        type: 'GET',
        dataType: 'json',
        success: function (data) {
            $.each(data, function (i, tech) {
                techs.push(
                    { TechName: tech.TechName, emm_code: tech.emm_code }
                );
            })
            recreateScheduler(groupArray, techs);
        }
    });
})

 

public JsonResult JobSchedule_Read([DataSourceRequest] DataSourceRequest request, string ip_cond, string ip_area, string ip_dispatch, string ip_assignto, string ip_category, string ip_product, string ip_proditem, string ip_streetno, string ip_filter, DateTime? ip_datefrom, DateTime? ip_dateto, string ip_statlist, string ip_unsched, string ip_contr_only, string ip_quote)
{
    int jobHour = 0;
    int jobMinute = 0;
    string duration = "";
    DateTime startDateTime = ip_datefrom ?? DateTime.Now;
    DateTime endDateTime = ip_dateto ?? DateTime.Now;
    List<TaskViewModel> tasks = new List<TaskViewModel>();
 
    List<JscMstr> jscMstrs;
    List<JhMstr> jhMstrs;
    List<JdDet> jdDets;
    List<JscDet> jscDets;
    List<CoMstr> coMstrs;
    List<CodDet> codDets;
    List<JrSumm> jrSumms;
    List<CsMstr> csMstrs;
    List<HhStatus> hhStatuses;
    List<HhSumm> hhSumms;
    List<GrJscMstr> grJscMstrs;
    List<SchJsdDet> schJsdDets;
 
    List<TsMstr> tsMstr;
    JobRepository jr = new JobRepository();
 
    tsMstr = jr.GetReservations(startDateTime, endDateTime, "[ALL]");
 
    foreach (var item in tsMstr)
    {
        tasks.Add(new TaskViewModel()
        {
            TechName = item.tsm_assto,
            emm_code = item.tsm_assto,
            Title = item.tsm_reason,
            ReservationID = item.tsm_res_id,
            ReservedBy = Session["CompanyID"].ToString(),
            ReservationDate = item.tsm_res_date,
            ReservationViewDate = item.tsm_res_date.ToString("dd/MM/yyyy"),
            ReservationTime = item.tsm_res_date.ToString("dd/MM/yyyy") + " " + item.tsm_res_time,
            Start = startDateTime,
            End = endDateTime,
            Description = "Description 101",
            IsAllDay = false,
            StartViewDate = startDateTime.ToString("dd/MM/yyyy"),
            StartViewTime = startDateTime.ToString("HHmm"),
            Duration = item.tsm_job_duration,
            ScheduleType = "Reservation",
            Color = "#f8a398"
        });
    }
 
    return Json(tasks.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
}

Thanks.
Georgi Krustev
Telerik team
 answered on 07 Apr 2016
1 answer
219 views

When user copy paste the listed items from notepad or textpad to editor and clicking on the bullet\numbering list icon the whole text is considered as single item as shown (Before and After selecting Order List Image).

Please provide us the solution to fix this issue

Ianko
Telerik team
 answered on 07 Apr 2016
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
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?