Telerik Forums
Kendo UI for jQuery Forum
6 answers
348 views
Hi there, i`ve a little question. how i can reset the legend of chart? i mean, when i`m turn of some series and refresh or redraw chart, the series stay turned off. Thx.
Stefan
Telerik team
 answered on 16 Aug 2017
3 answers
154 views

Let's say we have this tree: A -> B -> [C,D]  where A = root node, B = childnode of A, nodes C and D are children of B).

When I check node C or D without filters applied, nodes A and B get the indeterminate state correctly. 

However, when I apply a filter (i.e. text contains C), node D get's hidden. When I now check node C, both nodes A and B also get checked, while they should be indeterminate since node D is not checked.

Using Kendo UI version 2017.2.621, OS Windows 10, Chrome 59.0.3071.115 (64-bit), jQuery version 1.12.4

Attached files:

  • Initial state
  • Checked C with filter applied
  • Removed filter with C being checked (incorrect indeterminate state for A and B)
  • Expected result (after removing filter, but should also have indeterminate state when filtering is still applied)
Ivan Danchev
Telerik team
 answered on 16 Aug 2017
4 answers
317 views

I've managed to recreate this bug in the Dojo.

http://dojo.telerik.com/EPOWex

 

The problem is only occurring in Edge (Chrome and IE are working correctly). 

After you select a value from the AutoComplete and set it to enable(false). Notice that in Edge you can still select the text in the widget. Simply then press the del-key and the value is removed...

 

 

 

 

Gerard
Top achievements
Rank 1
 answered on 16 Aug 2017
2 answers
347 views
hello, all. I would like to have a little assistance. I'm exporting grid information as a pdf file. the grid contains character latin as well as Cyrillic, Latin characters are displayed normally but Cyrillic are replaced with symbols. I have read all the posts about the issue, have read the documentation but nothing has worked for me. if you have any ideas and can share would much appreciate it. 
Giorgi
Top achievements
Rank 1
 answered on 16 Aug 2017
2 answers
466 views

Is it possible to override the value axis label content?

<kendo-chart-value-axis-item-labels format="n" [visual]="drawLabel"></kendo-chart-value-axis-item-labels>

Format I believe uses the Intl service which in turn uses the LOCALE_ID - I'm changing culture dynamically so I cannot use this.

Visual takes a function which might have worked except you have no reference to the component so I can't use any injected services to format the text.

The tooltip has a template option so something like this works for me there, using a custom pipe:

<kendo-chart-tooltip>
  <ng-template kendoChartSeriesTooltipTemplate let-value="value">
    {{ value | intlNumber }}
  </ng-template>
</kendo-chart-tooltip>

Is there anything I'm missing that could achieve this for value axis labels?

esp
Top achievements
Rank 1
Veteran
 answered on 15 Aug 2017
3 answers
191 views

Hello Telerik Team,

We have a requirement in which we need to track the upload progress even after page is refreshed or a new URL is opened on the same website. Please suggest a way to achieve this with KendoUI upload control.

Thanks

Ivan Danchev
Telerik team
 answered on 15 Aug 2017
3 answers
465 views
So, I have this grid code (that i got from one of your examples), that Ive been trying out, it works find when paging using Ajax.

I have now tried turning off javascript functionality in the browser, to investigate the fallback functionality of the grid. When paging I then get the clean JSON text in my browser, nothing shows of my original page. How can I fix so that my code works well both with javascript datagets and without?

Index.cshmtl

@model IEnumerable<KendoUIMvc.Models.Product>



<div id="kjsimpleGrid">


    @(Html.Kendo().Grid<KendoUIMvc.Models.Product>(Model)
        .Name("grid")
            .Columns(columns =>
            {
                columns.Bound(product => product.ProductID).Width(100);
                columns.Bound(product => product.ProductName);
                columns.Bound(product => product.UnitsInStock).Width(250);
                columns.Command(commands =>
                {
                    commands.Edit(); // The "edit" command will edit and update data items
                    commands.Destroy(); // The "destroy" command removes data items
                }).Title("Commands").Width(200);
            })
            .ToolBar(toolbar => toolbar.Create()) // The "create" command adds new data items
            .Editable(editable => editable.Mode(GridEditMode.InLine)) // Use inline editing mode
            .DataSource(dataSource =>
                dataSource.Ajax()
                  .Model(model =>
                  {
                      model.Id(product => product.ProductID); // Specify the property which is the unique identifier of the model
                      model.Field(product => product.ProductID).Editable(false); // Make the ProductID property not editable
                  })
                  .Create(create => create.Action("Products_Create", "Home")) // Action invoked when the user saves a new data item
                  .Read(read => read.Action("Products_Read", "Home"))  // Action invoked when the grid needs data
                  .Update(update => update.Action("Products_Update", "Home"))  // Action invoked when the user saves an updated data item
                  .Destroy(destroy => destroy.Action("Products_Destroy", "Home")) // Action invoked when the user removes a data item
            )
    .Pageable()
        )

</div>



Homecontroller.cs

public ActionResult Index()
        {

            //List<Product> products = new List<Product>();

            //foreach (Product product in this.productsDB.Products)
            //{
            //    products.Add(product);
            //}

            var products = productsDB.Products;

            //{
            //    Name = genre,
            //    Albums = this.storeDB.Albums.ToList()
            //};
                return View(products);


        }


        public ActionResult Products_Read([DataSourceRequest]DataSourceRequest request)
        {
            using (var northwind = new NorthwindEntities())
            {
                IQueryable<Product> products = northwind.Products;
                DataSourceResult result = products.ToDataSourceResult(request);
                return Json(result, JsonRequestBehavior.AllowGet);
            }
        }


Konstantin Dikov
Telerik team
 answered on 15 Aug 2017
3 answers
198 views

Hello,

 

I am trying to manipulate min max of an axis item but the axis values are not correct.

Here is an example of the scenario - plunker

It is interesting when the axis values are whole numbers for example from 1 to 10 and you enter 5 the axis units are 50 for 5 then 51 for 6 and so on.

 

Another way of achieving what I want, that I can think of, is using the narrowRange property of the axis and then filtering the data but the property is not working at all..

 

Thanks

Georgi Mitev

Georgi
Top achievements
Rank 1
 answered on 15 Aug 2017
4 answers
663 views
Hi all

i want to get selected row and pass the ProductID to controller action, these is my code

@model TelerikMvcApp2.Models.Products@{
    ViewBag.Title = "1";
    var ProductID = 0;
    int x = 0;
}
<h2>Index</h2><div>
    @ProductID
</div><div>
    <h4>Basic Button</h4>
    <p>
    @(Html.Kendo().Button()
        .Name("primaryTextButton")
        .HtmlAttributes( new {type = "button", @class = "k-primary" } )
        .Content("Clear"))
       
    </p>
</div>
    <div id="clientsDb">
        @(Html.Kendo().Grid<TelerikMvcApp2.Models.Products>()
            .Name("grid")
            .Columns(columns =>
            {
                columns.Bound(c => c.ProductID).Width(140);
                columns.Bound(c => c.ProductName).Width(190);
                columns.Bound(c => c.UnitPrice);
                columns.Bound(c => c.UnitsInStock).Width(110);
            })
            .HtmlAttributes(new { style = "height: 380px;" })
            .Scrollable()
            .Groupable()
            .Sortable()
            .Pageable(pageable => pageable
            .Refresh(true)
            .PageSizes(true)
            .ButtonCount(5))
                .Sortable()
            .Selectable(selectable => selectable
                .Mode(GridSelectionMode.Single)
                .Type(GridSelectionType.Row))
            .Events(events => events.Change("onChange"))
            .DataSource(dataSource => dataSource
                .Ajax()
                .Read(read => read.Action("Customers_Read", "Home"))
            )
        )
      </div>    <div>        
        <img name="Pic1" alt="test" src='@Url.Action("Events", "Home", new { id = @ProductID })'/>
    </div>
       <script type="text/javascript">        function onChange()
        {
            var selectedrow = $("#grid").find("tbody tr.k-state-selected");
            var goods = $('#grid').data("kendoGrid").dataItem(selectedrow);
            var goodsjson = goods.toJSON();
            var goodsID = goodsjson.ProductID;
            document.Pic1.src = '@(Url.Action("Events", "Home", new { id= goodsID}))';
                    }</script>   

it can build successfully but when run it, it will show The name 'goodsID' does not exist in the current context 
Stefan
Telerik team
 answered on 15 Aug 2017
1 answer
209 views

I am using kendo ui scheduler in dynamics 365 as an extensible control. The problem I am facing is when navigate to week view with around 200-250 events. It is taking 15-20 seconds which is not acceptable for client. Although I have tested the same scenario in simple .Net project and it is loading very fast. I am able to integrate all required functionalities except this. These below two lines are taking time to re-render scheduler in dynamics 365. 

var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.dataSource.read();//line#1
scheduler.view(scheduler.view().name);//line#2

I am using limited data regarding the selected date. So in reading and rendering it is taking 15-20 seconds for week view.

 

Regards,

Hassan (Software Engineer)

Veselin Tsvetanov
Telerik team
 answered on 15 Aug 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?