Telerik Forums
Kendo UI for jQuery Forum
3 answers
120 views
Greetings, I ran into a problem using kendo mobile with angular, if I place a combo-box inside a list-view, the css of the combo is broken, is there any solution or workaround for this?.
Im attaching dojo example of the case: http://dojo.telerik.com/uJanA
Thanks in advance.
Petyo
Telerik team
 answered on 15 Aug 2016
18 answers
666 views
Hi guys,

Using the navigatable property (navigable?) on a grid with data virtualization and scrolling set to {virtual: true} doesn't scroll as i use the down arrow key. The selected row disappears off the bottom of the grid into the hidden overflow area. I've noticed that navigation works correctly and scrolls the grid when using scrolling set to true.

Tony

Timothy
Top achievements
Rank 1
 answered on 15 Aug 2016
1 answer
457 views

I am unable to create a new record, i.e. nothing pops up, when my grid is bound to my Person.Employer's EmployerName string property. 

@model IList<EmployeeManager.Web.EmployeeServiceRef.Person>
@(Html.Kendo().Grid(Model)
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.PersonName);
        columns.Bound(p => p.PhoneNumber);
        columns.Bound(p => p.Employer.EmployerName);
        columns.Bound(p => p.Address);
    })
    .ToolBar(toolbar => toolbar.Create())
    .Editable(editable => editable.Mode(GridEditMode.PopUp))

When I comment out p.Employer.EmployerName, the New button pops up a dialog as expected. Is there any way I can bind my Employee object to the grid so that I can edit these details as well? The plan is to create a dropdown list of the Employer Name's once I can figure out how to bind it to an Add New call.

Any help would be greatly appreciated.

Randal
Top achievements
Rank 1
 answered on 15 Aug 2016
3 answers
236 views

Asking for clarification on dataType: "json". In an example I created at http://dojo.telerik.com/AQEpe, when I run the code the debugger will display only one call to the customers api if I just list the URL in the transport read section. But when I add dataType: "json" as a property below the url and run the code the datasource will be retrieved twice now as shown in the debugger. 

The Callback1.png displays the first method with no dataType and only one call to the api. Callback2.png displays the second method described with a datatype and two calls to the api. 

Should I not include dataType: "json" in my code for shared calls? Is including dataType necessary at all? I am trying to limit the calls to the database and in my application the filters similar to the example are creating duplicate calls slowing the page.

Boyan Dimitrov
Telerik team
 answered on 15 Aug 2016
1 answer
110 views

I have a kendo gird displaying on the screen.  When I click on a kendo menu item, I need to close this grid and save all data that are changed on the grid, and open/display another grid.

How to archive this?

Boyan Dimitrov
Telerik team
 answered on 15 Aug 2016
1 answer
449 views
Hi,
I have a kendo grid to display some editable data.  To edit the data, an edit pop-up is used.  The pop-up displays a MVC editor template.
I need a validation summary section at the top of the pop-up, to display all the required field validations.  When I add the MVC validationsummary declaration
in the editor template, it doesnt work (the errors are not displayed at the top of the pop-up).  I dont know how to do it, can someone tell me how to do it ?
There is the kendo grid declaration code :
        @(Html.Kendo().Grid(Model.Customers)
      .Name("Customers")
      .Columns(columns =>
      {
          columns.Bound(p => p.Id).Visible(false);
          columns.ForeignKey(p => p.LevelId, Model.Levels, "Id", "Text");
          columns.Bound(p => p.Name);
          columns.Bound(p => p.Comment).Sortable(false).Filterable(false);
          columns.Command(command =>
          {
              command.Destroy().Text(" ").Text(" ").HtmlAttributes(new { @class = "k-icon-only" });
              command.Edit().UpdateText(Res.SAVE).CancelText(Res.CANCEL).Text(" ").HtmlAttributes(new { @class = "k-icon-only" });
          }).Width(80).HtmlAttributes(new { @class = "align-right" });
      })
      .ToolBar(toolbar => toolbar.Create().Text("").HtmlAttributes(new { @class = "k-icon-only" }))
    .Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("Customer"))
    .Navigatable()
    .Filterable()
    .Sortable()
    .Events(p => p.Edit("OnEdit").Save("OnSave"))
    .DataSource(dataSource => dataSource
        .Ajax()
        .Model(model =>
        {
            model.Id(p => p.LevelId);
        })
        .ServerOperation(false)
            .Create(update => update.Action("Create", "Program"))
            .Update(update => update.Action("Update", "Program"))
            .Destroy(destroy => destroy.Action("Delete", "Program"))
        )
        .HtmlAttributes(new { @class = "k-fixed-grid" })
        )
There is the pop-up editor template code :
@model CustomerViewModel
@Html.ValidationSummary()
<div class="row hl-pad-bottom-sm">
    <div class="col-xs-12 hl-label-bold">@Html.DisplayNameFor(x => x.Id)</div>
    <div class="col-xs-12">
        @(
            Html.Kendo().ComboBoxFor(m => m.Id)
                .DataTextField("Text")
                .DataValueField("Id")
                .AutoBind(true)
                .Filter(FilterType.StartsWith)
                .DataSource(source =>
                {
                    source.Custom()
                        .Type("aspnetmvc-ajax")
                        .ServerFiltering(true)
                        .Transport(transport =>
                        {
                            transport.Read("Customers_Read", "Program");
                        })
                        .Schema(schema =>
                        {
                            schema.Data("Data")
                                .Total("Total");
                        });
                })
                .HtmlAttributes(new { style = "width:100%", @class= "hideArrow" })
        )
    </div>
</div>
Alex Hajigeorgieva
Telerik team
 answered on 15 Aug 2016
2 answers
223 views

Link to chart: Example

I have tried using the "baseUnit", "maxDateGroups", and "autoBaseUnitSteps" with no success.

I also tried applying this to the category axis with no success:

            valueAxis: {
                min: new Date("2016/02/01").getTime(),
                max: new Date("2016/05/16").getTime(),
                majorUnit: 60 * 60 * 1000 * 24 * 7 * 2, // 14 days in milliseconds
                labels: {
                  template: "#= kendo.toString(new Date(value), 'MM-dd-yy') #"
                }
             },

 

Thank you for you help,

Ted

Ted
Top achievements
Rank 1
 answered on 15 Aug 2016
5 answers
214 views

Hi,

We have a shape design that consists of a large circled icon and a balloon style label above it. 

The problem we're encountering, is that we have a hard time selecting shapes that are visible in the "empty" areas of the shape, since the diagram determines which shape is hovered according to the bounding box of the shape. In the case of a group, this is the bounding box that encompasses every shape inside the group. What makes things even worse, is that our graphical design dictates that there's no marking of a surrounding box.

I've altered one of your Diagram example to resemble our situation, please play with it for a while and see what I'm talking about: http://dojo.telerik.com/IqAlI/8

Can you please offer solutions, or consider changing the current implementation ?

 

Thanks in advance

Vessy
Telerik team
 answered on 15 Aug 2016
1 answer
610 views
Hi,
I'm using a kendo grid to display my data.  The grid is editable, through a pop-up.  There is the problem I have : when the data is updated by a user in the pop-up window, if  a textbox contains a quote symbol, the string value is truncated.  The quote symbol is removed from the string and the rest of the string value after the quote symbol is also truncated.  I've tried to find a solution or a work-around, without success.  The data is lost before the data is sent to the controller Save/Post method.  Do you know a solution for this problem ?
There is the kendo grid declaration code :

@(Html.Kendo().Grid<Program.LevelModel>()
 .Name("MyLevels")
 .Columns(columns =>
 {
 columns.Bound(p => p.LevelId)
 .Visible(false);
 columns.Bound(p => p.Level)
 .Visible(false);
 columns.Template(@<text></text>)
 .ClientTemplate("#= LevelDisplayed # <input type='hidden' name='AlertLevels[#= indexGrid(data, 'MyLevels')#].Level' value='#= Level #' />" +
 "<input type='hidden' name='AlertLevels[#= indexGrid(data, 'MyLevels')#].LevelId' value='#= LevelId #' />" +
 "<input type='hidden' name='AlertLevels[#= indexGrid(data, 'MyLevels')#].AlmostMessageEn' value='#= AlmostMessageEn #' />" +
 "<input type='hidden' name='AlertLevels[#= indexGrid(data, 'MyLevels')#].AlmostMessageFr' value='#= AlmostMessageFr #' />" +
 "<input type='hidden' name='AlertLevels[#= indexGrid(data, 'MyLevels')#].AchievedMessageEn' value='#= AchievedMessageEn #' />" +
 "<input type='hidden' name='AlertLevels[#= indexGrid(data, 'MyLevels')#].AchievedMessageFr' value='#= AchievedMessageFr #' />")
 .HtmlAttributes(new { @class = "hl-align-center" })
 .Width(235)
 .HeaderTemplate(Html.HlText("LEVEL"))
 .HeaderHtmlAttributes(new { @class = "hl-align-center" });
 columns.Command(command => { command.Edit().UpdateText(" ").CancelText(" ").Text(" "); })
 .HtmlAttributes(new { @class = "hl-align-center" })
 .HtmlAttributes(new { style = "text-align: center;" })
 .HeaderHtmlAttributes(new { @class = "hl-align-center" })
 .HeaderTemplate(Html.HlText("MESSAGE_ALMOST_EN"));
 columns.Command(command => { command.Edit().UpdateText(" ").CancelText(" ").Text(" "); })
 .HtmlAttributes(new { @class = "hl-align-center" })
 .HtmlAttributes(new { style = "text-align: center;" })
 .HeaderHtmlAttributes(new { @class = "hl-align-center" })
 .HeaderTemplate(Html.HlText("MESSAGE_ALMOST_FR"));
 columns.Command(command => { command.Edit().UpdateText(" ").CancelText(" ").Text(" "); })
 .HtmlAttributes(new { @class = "hl-align-center" })
 .HtmlAttributes(new { style = "text-align: center;" })
 .HeaderHtmlAttributes(new { @class = "hl-align-center" })
 .HeaderTemplate(Html.HlText("MESSAGE_ACHIEVED_EN"));
columns.Command(command => { command.Edit().UpdateText(" ").CancelText(" ").Text(" "); })
 .HtmlAttributes(new { @class = "hl-align-center" })
 .HtmlAttributes(new { style = "text-align: center;" })
 .HeaderHtmlAttributes(new { @class = "hl-align-center" })
 .HeaderTemplate(Html.HlText("MESSAGE_ACHIEVED_FR"));
 @*columns.Template(@<text></text>)
 .ClientTemplate("<label class='form-checkbox form-normal form-primary form-text #= DisabledMessageClass #' style='padding-left:0px'> <input type='checkbox' class='chkbx' /> </label>")
 .HeaderHtmlAttributes(new { @class = "hl-align-center" })
 .HeaderTemplate(Html.HlText("MESSAGE_DISABLED_MSG"))
 .HtmlAttributes(new { @class = "hl-align-center" });*@
columns.Bound(p => p.AlertDisabled)
 .ClientTemplate("<input type='checkbox' id='AlertDisabled' name='AlertDisabled' #= AlertDisabled ? checked='checked': '' # value='#= AlertDisabled #' class='chkbx' onchange='alertDisabledClick(this)' />" +
 "<input type='hidden' name=AlertLevels[#= indexGrid(data, 'MessageLevels')#].AlertDisabled value = '#= AlertDisabled #' />")
 .HtmlAttributes(new { @class = "hl-align-center" })
 .HeaderHtmlAttributes(new { @class = "hl-align-center" });
 })
 .Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("AlertSelection"))
 .Events(events => events.Save("onSave"))
 .Events(e => e.Cancel("onCancelEdit"))
 .Events(e => e.Edit("onEdit"))
 .Events(e => e.DataBound("onDataBound"))
 .Navigatable()
 .AutoBind(false)
 .DataSource(dataSource => dataSource
 .Ajax()
 .Read(read => read.Action("Levels_Read", "Program", new { Id = Model.ProgramId }))
 .Model(model =>
 {
 model.Id(p => p.LevelId);
 })
 .Update(update => update.Action("Update", "Program"))
 )
 .HtmlAttributes(new { @class = "k-fixed-grid" })
 )
Niko
Telerik team
 answered on 15 Aug 2016
5 answers
230 views
I'm progressively adding children to the HierarchicalDataSource via AJAX calls that populate the items array of an exists data item with the returned results.

The only way I've found to refresh the diagram is to recreate the HierarchicalDataSource with the revised data, and then call diagram.setDataSource(...).

Is that the correct method? It seems a bit heavy handed to me.

Thanks,
Gary
Vessy
Telerik team
 answered on 15 Aug 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
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
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?