Telerik Forums
Kendo UI for jQuery Forum
1 answer
215 views
How to set the border color of a Area chart in MVVM?

 

<div data-role="chart"
 data-legend="{ position: 'bottom' }"
 data-series-defaults="{ type: 'area' }"
 data-series-colors="['#A2A2A2']"
 
 data-series="[
                 { field: 'id', name: 'id' , labels: {visible: true},line: {style:'smooth'}}
             ]"
 
 data-bind="source: sourceId,
            events: { seriesHover: onSeriesHoverIndex }"
 style="height: 250px;" >
Daniel
Telerik team
 answered on 20 Jun 2017
4 answers
1.1K+ views
How to change the color of a grid column in MVVM?
i would like something like this:
first column: green
second column: yellow

    <div data-role="grid"
                 data-toolbar="DOC"
                 data-columns="[
                                 { 'field': 'doc1'},
                                 { 'field': 'doc2' }
                              ]"
                 data-bind="source: sourceList"></div>
Federico
Top achievements
Rank 1
 answered on 19 Jun 2017
1 answer
443 views

Hi,

In the demos of the editor (Proxy target demo) we need to export the pdf that we have ( i already set the proxy and is working) to a new window/tab just like the example says:

pdf: {       forceProxy: true,     
               proxyURL: "/save",    
               proxyTarget: "_blank"
}

EXAMPLE - OPEN THE GENERATED DOCUMENT IN A NEW WINDOW

In the editor it open the pdf in the same window  . You can see that in the example in the Dojo . 

This same example but in the scheduler ( scheduler demo)  works fine and it open like it says it does.

is this a bug or how should i do to open the pdf in a new window using the editor?

thanks in advance

Dimitar
Telerik team
 answered on 19 Jun 2017
1 answer
367 views
$scope.mainGridOptions = {
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Employees"
                    },
                    pageSize: 5,
                    serverPaging: true,
                    serverSorting: true
                },
                sortable: true,
                pageable: true,
                dataBound: function() {
                    this.expandRow(this.tbody.find("tr.k-master-row").first());
                },
                columns: [{
                    field: "FirstName",
                    title: "First Name",
                    width: "120px"
                    },{
                    field: "LastName",
                    title: "Last Name",
                    width: "120px"
                    },{
                    field: "Country",
                    width: "120px"
                    },{
                    field: "City",
                    width: "120px"
                    },
                           {
                           field:"urlList",title:"url",
                           template:"<a href="#=urlList[0]#">#=urlList[0]#</a>"
                           }
 
            ]};

 

Here in the "Url" Column(italic one)  i want to show a list of comma seperated urls .For the time being i'm only able to show the first one. Is there any way i could show all the urls seperated by a comma so that each will open a seperate link.

 

Georgi
Telerik team
 answered on 19 Jun 2017
4 answers
282 views

I have several tables that have different numbers of columns, but I want to columns widths of the tables to be the same.

I have achieved this by setting all the columns widths, but with one empty column at the end (without a column width) - see attached image. What is the best way to do this, without having to add any empty columns?

Georgi
Telerik team
 answered on 19 Jun 2017
7 answers
165 views

I use the Kendo with AngularJS. I define the datasource for my drop-down-list during initialization of the page, together with other options and define it via k-options.
In other places it works fast, on the desktop, android devices and so on.  But when I touch on the drop-down-list on my IPad first time, the delay occurs around 2-3 seconds. Then of course it works fast.

 

How can I reduce a delay by the first touch? 

Tsvetina
Telerik team
 answered on 19 Jun 2017
1 answer
270 views

Is it possible to show an icon or button "within" the diagram (say at the top right) that allows the person to export to PDF?

It would help with our layout if such an icon/button could be part of the diagram itself if that makes any sense?

Konstantin Dikov
Telerik team
 answered on 19 Jun 2017
3 answers
223 views

I am using the treeview in Angularjs 1.5

The treeview do not have a single Root node, but multiple Root nodes and i am trying to detect when i am dropping a node to the top level/Root without any luck.

See attacheched image.

Dimitar
Telerik team
 answered on 19 Jun 2017
2 answers
222 views

Hello,

 

I have a tab stripe and the tab Content which is a grid bound to datatable gets loaded with Ajax call like this

      @(Html.Kendo().TabStrip()
.Name("myKendoTabs")
.Animation(animation =>
{
    animation.Enable(false);
})
.SelectedIndex(0)
    .Items(t =>
    {
        t.Add().Text("Objektliste").LoadContentFrom("GetObjectsforAdress", "AdressActivity", new { strAdressID = ViewBag.SelAdressID });
    })
        )

 

And the GetObjectsforAdress method in Controller Returns a partial view

return PartialView("DocumentList", ds.Tables[0]);

 

and the partialview is like this

            @(Html.Kendo().Grid(Model)
    .Name("Grid_ObjActivity")
                  .Scrollable()
     .HtmlAttributes(new { style = "height: 300px;" })
     .DataSource(dataSource1 => dataSource1
                    .Ajax()
                    .PageSize(100)
                    .Model(model1 =>
                    {
                        if (Model != null)
                        {
                            foreach (System.Data.DataColumn ocolumn in Model.Columns)
                            {
                                model.Field(ocolumn.ColumnName, ocolumn.DataType);
                            }
                        }
                    })
 .ServerOperation(false)
                     )
                      .Resizable(resize => resize.Columns(true))
    .Columns(columns =>
    {
        if (ViewBag.ObjListHeader != null)
        {
            for (int j = 0; j < ViewBag.ObjListHeader.GetLength(0); j++)
            {
              
                            columns.Bound(ViewBag.ObjListHeader[j, 0]).Title(ViewBag.ObjListHeader[j, 0]).Width(120);
                   
            }
        }
    })
    .Selectable(selectable => selectable
            .Mode(GridSelectionMode.Single))
.Filterable(filterable => filterable
                                  .Extra(false)
                                  .Operators(operators => operators
                                      .ForString(str => str.Clear()
                                          .StartsWith("Starts with")
                                          .IsEqualTo("Is equal to")
                                          .IsNotEqualTo("Is not equal to")
                                      ))
                                  )
                              .Groupable()
                              .Reorderable(r => r.Columns(true))
                    .Resizable(r => r.Columns(true))
                              )

 

The Problem is when the tab is selected then GetObjectsforAdress method is called twice. Loads once and again loads. Not sure why it is called twice.

Can you please suggest what am i doing wrong here.

 

Thanks

 

Anamika

Anamika
Top achievements
Rank 1
 answered on 19 Jun 2017
7 answers
201 views
1) Why do you think the cancel button would wipe all the entries?
http://screencast.com/t/MJ6AJU2Kf

2) Is there ANY way to do a drag\drop reorder with kendo?  You know how the left of the items would have draghandles and the user could re-order items as needed and the model (MVVM) would reflect the new order?

<div data-role="listview"
    data-template="list-template"
    data-edit-template="edit-template"
    data-bind="source: controls">
</div>

<script id="list-template" type="text/x-kendo-template">
    <div>
        # if(data.ControlType === "TextBox") { #
            <h3>#:Label#</h3>
            <input type="text" data-bind="value: PropertyName" class='k-textbox' disabled="disabled" />
        # } else if(data.ControlType === "DateTime"){ #
            <h3>#:Label#</h3>
            <input type="text" data-bind="value: PropertyName" data-role="datetimepicker" disabled="disabled" />
        # } else if(data.ControlType === "CheckBox"){ #
            <label>
                <span data-type="CheckBox">
                    <input type="checkbox" disabled="disabled">
                </span>
                #:Label#
            </label>
        # } #
     
        <a class="k-button k-button-icontext k-edit-button" href="\\#"><span class="k-icon k-edit"></span></a>
        <a class="k-button k-button-icontext k-delete-button" href="\\#"><span class="k-icon k-delete"></span></a>
    </div>
</script>
 
<script id="edit-template" type="text/x-kendo-template">
    <div>
        <input type="text" data-bind="value: Label" class='k-textbox' style="width: 100px" required="required"  />
        <br/>
        <input type="text" data-bind="value: PropertyName" class='k-textbox' required="required"  />
        <select data-bind="source: controlTypes, value: ControlType" data-role="dropdownlist"></select>
        <br/>
        <div class="edit-buttons">
            <a class="k-button k-button-icontext k-update-button" href="\\#"><span class="k-icon k-update"></span>Update</a>
            <a class="k-button k-button-icontext k-cancel-button" href="\\#"><span class="k-icon k-cancel"></span>Cancel</a>
        </div>
    </div>
</script>

Am I missing something?  Should be like the demo?


Steve
Konstantin Dikov
Telerik team
 answered on 19 Jun 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
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
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?