Telerik Forums
Kendo UI for jQuery Forum
3 answers
128 views

There is a bug in the following scenario:

1. Go to the following example: http://dojo.telerik.com/AWihI/2

2. Sort by ProductName

3. Go to the last page

4. Click "Add New Record". It does not show the new row at the bottom of the current page.

While if you do the following scenario, it works:

1. Go to the following example: http://dojo.telerik.com/AWihI/2

2. Go to the last page

3. Click "Add New Record". It shows the new row at the bottom of the current page

Konstantin Dikov
Telerik team
 answered on 11 Oct 2017
3 answers
164 views

i have external localization file for dropdownlist.

/* DropDownList messages */

if (kendo.ui.DropDownList) {
kendo.ui.DropDownList.prototype.options.messages =
$.extend(true, kendo.ui.DropDownList.prototype.options.messages,{
  "<message-name>": "<translation",
  noDataFound:"ciao"
});
}

 

noDataFuond is definitely wrong.

What should I write to set the no-data parameter of dropdownlist? 

Then i used the template to set this properties, but now i'd like to create external file for this message.

Dimitar
Telerik team
 answered on 11 Oct 2017
1 answer
413 views

At the first rendering of a page I would like to specify and process the selection of a default autocomplete value.  I thought this code might work, it doesn't:

$(document).ready(function () {
    var ac = $("#autoComplete").data("kendoAutoComplete");
    var target = "170035";
    ac.search(target)
        .then(ac.select(target))
        .then(ac.trigger("change"))
     ;
})

AutoComplete search() does not return a promise. A promise would be needed for the .then() chaining I want to do.  For comparison, DataSource read() does return a promise and can be part of a chain.

Q: Can you suggest a different approach for search and select ?

Thanks, Richard

 

Nencho
Telerik team
 answered on 11 Oct 2017
2 answers
625 views

I have a model with two field (Code and Item). The Code is set to auto increment and the Item is a required field. When I clicked the Add New Record button, the Code column was set to 0 in the Popup. After I add a new record, the Code field in the grid was set to 0 even I return the model with the new record. 

 

Model:

public partial class HousenMokutekiD
    {
        public int Code { get; set; }

        [Required]
        [StringLength(20, MinimumLength = 3)]
        public string Item { get; set; }
    }

Controller:

public ActionResult Create([DataSourceRequest]DataSourceRequest request, HousenMokutekiD model)
        {
            if (string.IsNullOrWhiteSpace(model.Item))
            {
                ModelState.AddModelError("", "Item is required.");
            }

            if (model != null && ModelState.IsValid)
            {
                var entity = new HousenMokutekiD();

                if (model.Item != null)
                {
                    entity.Item = model.Item;
                }

                _context.HousenMokutekiD.Add(entity);
                _context.SaveChanges();

                model.Code = entity.Code;
                model.Item = entity.Item;                
            }
            return Json(new[] { model }.ToDataSourceResult(request, ModelState));
        }

Razor:

@model IEnumerable<Sms.Office.Data.PmsDd.Models.HousenMokutekiD>

@(Html.Kendo().Grid(Model)
            .Name("grid")
            .Columns(columns =>
            {
                columns.Command(command =>
                {
                    command.Edit().UpdateText("Save Changes");
                    command.Destroy();
                }).Width(162);
                columns.Bound(p => p.Code);
                columns.Bound(p => p.Item);
            })
            .ToolBar(add =>
            {
                add.Create();
            })
            .Editable(editable =>
            {
                editable.Mode(GridEditMode.PopUp);
                editable.Window(w => w.Title(""));
            })
            .Events(e =>
            {
                e.Edit("onEdit");
            })
            .Navigatable()
            .Pageable()
            .Sortable()
            .Selectable()
            .DataSource(dataSource => dataSource
                .Ajax()
                .ServerOperation(false)
                .PageSize(7)
                .Events(events =>
                {
                    events.Error("error_handler");
                    events.RequestEnd("request_end");
                })
                .Model(model =>
                {
                    model.Id(p => p.Code);
                })
                .Read(read => read.Action("Read", "Purpose"))
                .Create(create => create.Action("Create", "Purpose").Type(HttpVerbs.Post))
                .Update(update => update.Action("Update", "Purpose").Type(HttpVerbs.Put))
                .Destroy(destroy => destroy.Action("Destroy", "Purpose").Type(HttpVerbs.Delete))
            )
        )

 

Please help me. Sorry I am a newbee in MVC

 

Mervin
Top achievements
Rank 1
 answered on 11 Oct 2017
1 answer
153 views

Hi,

missingValues:"gap" not working on stockchart. "Interpolated", "Zero", these options work. But if my series contains null values and i make the missingValues option to "gap" then it is failing. Chart vanishes in that case. Looks like a bug to me.

Anyone has any idea?

Regards,
Sriram

Tsvetina
Telerik team
 answered on 10 Oct 2017
1 answer
211 views

We are currently using both the KendoUI for jQuery controls and the KendoUI for Angular controls in our application. When working with the grid we are seeing some odd styling issues with filtering in the Angular grid (numeric textboxes 2x the size as regular ones, things being pushed down to a second line, etc). 

The main question that I have though is can we make filtering behave the same way in the Angular grid as it does in the jQuery grid? Having a filter button for each column that opens a dialog to do the filtering would be very helpful in trying to keep things consistent between the different grids. Thanks in advance.

Viktor Tachev
Telerik team
 answered on 10 Oct 2017
1 answer
266 views

All,

I have a requirement of drawing area and line series together in 2 different panes. Exactly as shown here in this example - http://dojo.telerik.com/@PMcDonou/OTECi 

But i do i achieve the synchronized zooming and scrolling in such scenario?

Regards,
Sriram

Tsvetina
Telerik team
 answered on 10 Oct 2017
1 answer
135 views

Hi, I went through the discussion here - this

I understand that you were planning to get the navigator out of stockchart and make it available for normal charts. Is it done?

I am using 2017.3 version of Kendo UI. Can I use the navigator for my normal RangeArea chart?

It would be really helpful if I can.

Stefan
Telerik team
 answered on 10 Oct 2017
1 answer
304 views
ListBox is available in Kendo UI for Angluar.  If so, drag and drop is possible too?   Thanks to all of your wonderful team.
Preslav
Telerik team
 answered on 10 Oct 2017
1 answer
367 views

Hello,

I'm playing with Kendo just few days... yesterday I have start to investigate SPA app pattern and it implementation in Kendo. I understand how views, layouts and router plays together.

But I have a problem to design app as whole.

My example app is about customers. Imagine you have customers. Customers have services. And every (logged) user in my app can manage zero or more customers and their services.

In my app I have a 1 layout object rendered from template. This template have 1 combobox which can be used to select a customer and one div for "views". in this simple case imagine only 3 views, showing 3 different grids of some customer's data (for example services, log entries and contacts).

My questions:

1. one BIG model (instance of observable) or one model for layout and 3 smaller models for each views?

2. if more than one, how to synchronize "customer selection" and propagate this change down to views?

3. if i have not 3 but 100 views... will be all templates "rendered and synchronized" even if only one is active?

4. how to free memory from inactive views? each view have datasource for grid, grid's data are huge (500+ rows, more than 10 columns) ... if i enable row filtering, datasource is duplicated for suggestion autocomplete edit box. not sure if one model is good way.

 

I would be very happy if someone with more knowledge with Kendo SPA help me how to start :)

 

Peter.

Ianko
Telerik team
 answered on 10 Oct 2017
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
ContextMenu
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?