Telerik Forums
Kendo UI for jQuery Forum
1 answer
175 views

 I'm running Kendo UI v2015.3.1111 on IE 11.

I have an MVC6 controller action that looks like this:

public IActionResult GetJsonData(Guid id)
{
    var temp2 = "[{\"id\": 1, \"Product\": \"Mower\", \"MSRP\": 189.99}, {\"id\": 2,  \"Product\": \"Imagine Fountain\", \"MSRP\": 59.99}]";
    return Json(temp2);
}

On the client, my javascript function looks like this:

function ApplyGrid(componentId) {
 
    $('#grid01').kendoGrid({
        dataSource: {
            transport: {
                read: {
                    url: '/Data/GetJsonData/' + componentId,
                    dataType: 'json'
                }
            },
            schema: {
                data: 'data'
            }
        }
    });
}
 

 This generates the following exception: 

Unhandled exception at line 11, column 28216 in http://localhost:51518/kendo/kendo.all.min.js
 
0x800a138f - JavaScript runtime error: Unable to get property 'slice' of undefined or null reference

 How should my controller action return the json data?  Or is there a different setting in the kendoGrid I should be using?

 

 

 

 

Dan
Top achievements
Rank 1
 answered on 07 Dec 2015
1 answer
415 views

Hey there, I am reviewing the functionality of the AutoComplete and have a question on how the filtering works for the remote datasource.  I want to use it to pull a list of contacts.  Kendo Example: http://demos.telerik.com/kendo-ui/autocomplete/serverfiltering

However I don't understand how the remote datasource connection works.  All of the examples point to a service that pull a list but I don't see where they send the search filter criteria to the server?

For example I would expect the service call to be something like: \Controller\Action\myFilterString   (Or sending data in the body of an ajax call)

So that leads me to believe that the autocomplete pulls the entire list, and then does all filtering client side.  Which is probably great in most cases, but when the dataset gets very large does it hurt performance or use too much memory?   Does anyone have any experience with larger datasets?

In my case my User list is currently 3500 records, but I expect that to probably double in about a year.

If anyone wants to share there thoughts on best practices with large datasets, please chime in.  (IE when is a large dataset considered TOO large to pull the entire list?)

Thank You!

Coty
Top achievements
Rank 1
 answered on 07 Dec 2015
2 answers
281 views

Hi,

I´ve a pie chart with two data,

I need just one of the data labels in the center of the chart,

I´m trying to using the visual property with kendo.drawing.Text

 

labels: {
visual: function (e)
        {
          var x = 0;
            var y = 0;
               return new kendo.drawing.Text("65.99 %", [x, y], { font: "4em 'Open Sans', sans-serif", fill: { color: "red" } });
        }
}

 

but I don´t know how I can calculate the center of the char, because I need the size of the main div.

Thanks,

Jose

 
 
 
 
 
 
 
 
BuildBinder
Top achievements
Rank 1
 answered on 05 Dec 2015
3 answers
95 views
Hi, i have this issue (check the screens), only in safari (have tested it in 8 and 9). I've been looking around in the forums and maybe it has something to do with the stylesheets used, I'm only including: kendo.bootstrap.min.css and kendo.common-bootstrap.min.css. Maybe i'm missing some stylesheet that takes care of those safari issues?.
Michael
Top achievements
Rank 1
 answered on 04 Dec 2015
1 answer
102 views

Hi

 

We have a stock chart with many data points and a navigator panel. The dataseries is a boxplot type. When the chart is rendered it starts totally zoomed out. There is some magic aggregation happening, which can't really be a 100% correct boxplot. 

 What i actually want to accomplish to render the chart totally zoomed in and show only the last view boxplots which are comming raw from the backend (100% zoomed).

 

Is there an option where i can start 100% zoomed in? And best case would be to totally disable the "zoom out" option. So i am only able to move the navigator selection to the left or right.

T. Tsonev
Telerik team
 answered on 04 Dec 2015
3 answers
352 views

Is there a way to conditionally enable/disable the Add new Record command?

 

We have a scenario where users are allowed to add a record only if a specific pre-requisite criteria is met which can be checked from the back end 

Boyan Dimitrov
Telerik team
 answered on 04 Dec 2015
5 answers
521 views

 Hello all,

     I'm trying to interface with some rather antiquated technology, and thus far have been successful. My back-end is RM/COBOL 11. I have a custom library which I pass values in an array to the COBOL programs in which they return an array via delegates.These are passed as Collections via a Web API in ASP.Net 5 using the repository pattern, no IQuerryable. This has worked well for me so far, until i got to detail grids and I'm looking for some direction or options. I am somewhat new to Angular and Kendo UI. 

The issue at hand is when I set the datasource on my detail grid everything is fine for single row expansion. But once i bind the next expanded column all prior (still) expanded rows then reflect the calling rows data. I know this is due to way my data is bound to a JSON array and its replaced on the subsequent calls, but my question would be is whats the best way to retain a specific rows data that belongs to it without a query-able datasource? or is my only option to only allow single row expansion? If so can someone point in the right direction on collapsing each prior expanded row before expanding the next?

The detail grid (Party) is looked via the instrument number column value in the main grid. The data in the second expanded party detail overwrites the original data the first expanded row had in it.

Angular Datacontext service

function getParty(instrument) {
 
           return $http({
               url: '/api/app/getparty',
               method: 'GET',
               params: { instrument: instrument }
           })
               .then(success)
               .catch(fail)
 
           function success(response) {
               return response.data;
 
           }
 
           function fail(e) {
               return exception.catcher("XHR Failed for getParty");
           }
       }
 

 Angular Controller (controller as vm syntax)

vm.detailPartyDataSource = [];
 vm.detailPartyOptions = function (dataItem) {
            return {
                dataSource: {
                    data: datacontext.getParty(dataItem.documentInstrument).then(function(data){return vm.detailPartyDataSource = data}),
                    type: "json"
                    },
                     
                scrollable: false,
                sortable: true,
                columns: [
                { field: "name", title: "Name" },
                { field: "nameType", title: "Name Type" },
                { field: "bookPage", title: "Book & Page" },
                { field: "docType", title: "Document Type" },
                { field: "date", title: "Date" },
                { field: "indexed", title: "Indexed" }
                ]
            };
 
        };
ian
Top achievements
Rank 2
 answered on 04 Dec 2015
1 answer
108 views

Hi there

I have a div with an absolute position, that contains an image element that's overlayed on top of the .k-dropzone div (by using a higher z-index). When a file is dropped onto the image in Google Chrome, the browser thinks you want to copy the file, so the upload doesn't work. How can I get the upload to trigger when the file is dropped onto the image? It works when a file is dropped onto any other part of the k-dropzone.

 HTML:

            <div class="logoUpload k-content">
                <div style="float:left;">
                    <img id="logo" style="width: 80px; height: 80px; float:left;"
                         alt="loading" />
                </div>
                <input name="files" id="files" type="file" data-show-file-list="false" style="float:right; width: 50px !important;" />
            </div>
            <div id="minLogoText">gif, png or jpeg - min 128px x 128px</div>

 

            <script>

                $(document).ready(function () {
                    $("#files").kendoUpload({  .....

                    .......

            </script>

 CSS:

 .logoUpload {
     position: relative;
     margin-top: 7px;
}

 #logo {
    position: absolute;
    left: 35px;
    top: 30px;
    z-index: 1;
}

 

 

    

Dimiter Madjarov
Telerik team
 answered on 04 Dec 2015
1 answer
77 views

Hi,

I created simple grid with two columns - 25% and 75%. 

http://dojo.telerik.com/oRagU

Then i try to resize first column to be narrower. On Chrome there is no problem. On IE there is problem with cursor alignment to columns separator, you can check it on this screencast:

http://screencast.com/t/zEqfCjK0

Cursor is moved to left from the column separator. Is this a known issue?

 

Radosław Maziarka

 

Atanas Georgiev
Telerik team
 answered on 04 Dec 2015
1 answer
789 views

Hi

I'm using the async uploader, and I'm executing this function on the 'upload' event of the Kendo UI Upload widget. The function validates the file size for a single file. I'm displaying a custom div to present the error message when the file size exceeds the specified limit, and I want to also display the k-warning icon, but at the point when I execute the function, no DOM element has been added for the k-upload-status. Is my only option to manually create an element with a class of .k-warning? It feels like the right way to do this is to somehow trigger the k-upload-status - can I do that?

 

                    function onUpload(e) {

                        $("#logoUploadErrorMessage").hide();
                        $(".k-icon.k-warning").hide();

                        var files = e.files;

                        if (files[0].size > 4 * 1024 * 1024) {
                            $(".k-icon.k-warning").show();
                            $("#logoUploadErrorMessage").text("Max logo size 4mb");
                            $("#logoUploadErrorMessage").show();
                            e.preventDefault(); // This cancels the upload for the file
                        }
                    }

Dimiter Madjarov
Telerik team
 answered on 04 Dec 2015
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
Licensing
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?