Telerik Forums
Kendo UI for jQuery Forum
3 answers
228 views
I've created an accordion style panel bar system in a View in an MVC project. I tried to set the expand mode to "single", but all of the panel bars load as automatically expanded and refuse to collapse/expand--not to mention ignore the "single" expandMode command. I've attempted the exact same code in jsfiddle with all the kendo css/js files and it works fine. Can someone please explain how to get around this bug? Thank you!
Kiril Nikolov
Telerik team
 answered on 03 Jun 2014
3 answers
574 views
In my application there is a Kendo  grid which is being populated by data coming from a webservice call.
The requirement is to display 20 data per scrolling and I want every time user scroll through the grid the service will be called to fetch the data.

We can see the similar functionality in the social media site like Facebook.
I have done it in the following way but it is not working I mean in each scrolling the webservice call is not happing.

Please any one help me. I have attached the file herewith.
Alexander Popov
Telerik team
 answered on 03 Jun 2014
1 answer
593 views

Hi, 

I'm having an issue with the HTML 5 report viewer. The initial POST request  to create a client Id fails: 

http://thoitrangkv.localhost.com/api/reports/clients

And it happens for every reports though they used to be working. I have not made changes to the report code, so I suspect the issue may have something to do with my build process. 

Please assist. Thank you

{"message":"An error has occurred.","exceptionMessage":"Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.","exceptionType":"System.Runtime.Serialization.SerializationException","stackTrace":"   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()\r\n   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)\r\n   at Telerik.Reporting.Services.Engine.CacheStorage.Deserialize[T](ICache cache, String key)\r\n   at Telerik.Reporting.Services.Engine.Client.Clear(Predicate`1 clearCondition)\r\n   at Telerik.Reporting.Services.Engine.Client.Expire()\r\n   at Telerik.Reporting.Services.Engine.ReportEngine.ClearExpiredSessions(ReportEngineState state)\r\n   at Telerik.Reporting.Services.Engine.ReportEngine.RegisterClient()\r\n   at Telerik.Reporting.Services.WebApi.ReportsControllerBase.RegisterClient()\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeUsingResultConverterAsync>d__8.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.ApiController.<InvokeActionWithExceptionFilters>d__1.MoveNext()"}
Stef
Telerik team
 answered on 03 Jun 2014
5 answers
242 views
I am trying to do a multi-leveled diagram using a layout of layered type and radial subtype with my items coming from a datasource and my template based of the one in the demo example. The chart itself does display and the items are connected properly as to their relation but using straight connectors under 90° angle separation (0, 90, 180, 270) and not how I expected from what I've seen in the picture within the API documentation.

Is there something else I have to do to achieve this kind of connectors instead of the classic rigid structure?

Including my code for better reference on what I have so far:

    function visualTemplate(options) {
            var dataviz = kendo.dataviz;
            var g = new dataviz.diagram.Group();
            var dataItem = options.dataItem;
            
            var bgcolor = '#' + (Math.random() * 0xFFFFFF << 0).toString(16);


            g.append(new dataviz.diagram.Rectangle({
                width: 100,
                height: 100,
                stroke: {
                    width: 0,
                    color: "black"
                },
                background: bgcolor
            }));
            g.append(new dataviz.diagram.TextBlock({
                text: dataItem.name,
                x: 10,
                y: 25,
                color: "white"
            }));
            g.append(new dataviz.diagram.TextBlock({
                x: 10,
                y: 45,
                text: dataItem.ref_no,
                color: "white"
            }));

            g.append(new dataviz.diagram.TextBlock({
                x: 10,
                y: 65,
                width: 100,
                text: dataItem.level,
                color: "white"
            }));
            return g;
        }

        function createDiagram() {
            $("#diagram").kendoDiagram({
                dataSource: new kendo.data.HierarchicalDataSource({
                    transport: {
                        read: {
                            url: "ashx/hierarchicalDiagram.ashx",
                            dataType: "jsonp"
                        }
                    },
                    schema: {
                        model: {
                            children: "items"
                        }
                    }
                }),
                layout: {
                    type: "layered",
                    subtype: "radial",
                    startRadialAngle: 0,
                    endRadialAngle: 60,
                    iterations: 500,
                    nodeDistanc: 80,
                    grid: {
                        width: 900,
                        height: 800,
                        componentsGridWidth: 900,
                        offsetX: 0,
                        offsetY: 0 
                    }
                },
                shapeDefaults: {
                    visual: visualTemplate,
                    editable: false,
                    rotatable: false,
                    resizable: false
                },
                shapes: {
                    content: {
                        align: "center"
                    },
                    rotation: {
                        angle: 15
                    }
                },
                connectionDefaults: {
                    hover: {
                        stroke: {
                            color: "red"
                        }
                    },
                    stroke: {
                        color: "black"
                    }
                }
            });

            var diagram = $("#diagram").getKendoDiagram();

            diagram.bringIntoView(diagram.shapes, {align: "center"});
        }

        $(document).ready(createDiagram);
Hristo Germanov
Telerik team
 answered on 03 Jun 2014
8 answers
690 views
Currently I'm working on a Kendo UI Grid which has Autocomplete functionality in the cell of one column via the custom editor method. The Autocomplete dataSource is an array of objects that was received from a REST endpoint. When select an autocomplete entry, a create is fired to the REST endpoint and I also receive the created entry back. My problem is now, I need to use that new data to populate the cells of the grid so that the update method on all the cells works consistant, otherwise the Id that is necessary for the update is missing and I receive an error. The objects the Autocomplete searches in are different from the one that are necessary to populate the grid.
Is there any way to manipulate the dataSource of the Grid from the select method of the Autocomplete within a cell of the grid?
Daniel
Telerik team
 answered on 03 Jun 2014
1 answer
255 views
I'm selecting a node on a TreeView programmatically. How would I expand all parent nodes and scroll the node into the viewport? Thanks!
Alex Gyoshev
Telerik team
 answered on 03 Jun 2014
1 answer
118 views
Hello,

I use a custom delete operation to delete a row on a successful delete via REST. I also use a custom method to get a new row which pretty much inserts just an empty row at the end of all entries. My problem is that when I delete an item an then try to add one again, I don't see a new row, only when I hit the sorting then I see the empty row.
Alexander Popov
Telerik team
 answered on 03 Jun 2014
1 answer
308 views
Can someone please explain how to make a custom editor template that has no concept of time zones? 

My attempts to turn them off still lead to end times being converted which caused start comparisons to end to be invalid.

Vladimir Iliev
Telerik team
 answered on 03 Jun 2014
2 answers
751 views
I have a grid defined like this: I'll refer to it as grid A.

@(Html.Kendo().Grid<My.NameSpace.ViewModel>()
 .Name("grid")
 .Columns(columns =>
 {
 columns.Bound(p => p.ColumnA)
 columns.Bound(p => p.ColumnB).Width(130);
 columns.Bound(p => p.ColumnC);
 columns.Bound(p => p.ColumnD).Width(130);
 columns.Command(command => { command.Edit(); }).Width(160);
 })
 .Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("EditingTemplate"))
 .Events(e => e.Edit("onEdit"))
 .Pageable()
 .Sortable()
 .Scrollable()
 .HtmlAttributes(new { style = "height:430px;" })
 .DataSource(dataSource => dataSource
 .Ajax()
 .PageSize(20)
 .Events(events => events.Error("error_handler"))
 .Model(model => model.Id(p => p.ViewModelID))
 .Create(update => update.Action("A_Create", "ControllerName"))
 .Read(read => read.Action("A_read", "ControllerName"))
 .Update(update => update.Action("A_Update", "ControllerName"))
 .Destroy(update => update.Action("A_Destroy", "ControllerName"))
 )

When the user clicks the "Edit" button in the grid, and thus launches "EditingTemplate" I want to pass the ID from the model of the selected row to the "EditingTemplate". The reason for this, is I want to pass the ID to another kendo grid that exists on the "EditingTemplate". I will refer to that as grid B. 

I have defined an "additionalData" function that is called by the read method on grid B, so I have   

.Read(read => read.Action("B_read","ControllerName").data("additionalData"))

function additionalData() {
var myID = %%How do I get this value from the selected row to edit from grid A?%%

return {
  ViewModelID: myID
 }
}

So far I have tried setting the value on a hidden field in grid A's "edit" event, and then retrieving it in additionalData, however the methods fire in the wrong order, so first additionalData fires, then the edit event fires. additionalData never is able to access the value.

I have also tried things in the additionalData to like below, however the result is always "undefined"

var item = $("#grid").data("kendoGrid").model/dataItem/data/item

I have also tried

var grid = $("#grid").data("kendoGrid");
var item = grid.dataItem(grid.select());

This produces the following error in Kendo.all.js

Unhandled exception at line 36448, column 13 in http://SERVERNAME/Scripts/kendo/kendo.all.js0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'value': object is null or undefinedIf there is a handler for this exception, the program may be safely continued.

None of the above options work. I don't understand why this is so difficult to do. Can someone show me the correct way of doing this?

Thanks  

Dave
Top achievements
Rank 1
 answered on 02 Jun 2014
3 answers
233 views
I need notification hiding to be stopped when hovering over a notification. Can you give me a suggestion to attach this feature to kendo notification . 
Dimiter Madjarov
Telerik team
 answered on 02 Jun 2014
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
Drag and Drop
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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?