Telerik Forums
Kendo UI for jQuery Forum
1 answer
317 views

In our below case:

http://dojo.telerik.com/irEje/2

1. Select in the second row: Org 3, so that the multiselection value is Org4, Org 3

2. Click outside the grid

3. Select again in the second row: Org 3, you will see that the value becoms: Org4, Org3, Org 3

Georgi Krustev
Telerik team
 answered on 28 Oct 2016
1 answer
310 views

Hi,

I'm trying to add http header to transport read in angularJS.

I use bellow option, but It did not work. I think this is because JQuery function did not work in angularJS frame. Can you give me some guide?

            beforeSend: function(req) {
                req.setRequestHeader('Authorization', auth);
            }

 

PS, could you give me some information for Kendo UI Integrate angularJS. I am not sure Kendo UI will work perfectly in angularJS. I use angularJS 1.X.

Thanks very much!

 

 

Stefan
Telerik team
 answered on 28 Oct 2016
1 answer
249 views

We want to do some calculations to determine if the axis labels and legend box of the chart should be displayed based on the plot area size(check blue highlighted areas on attached image).
Is there any way to get the size/dimensions for that element?

 

Daniel
Telerik team
 answered on 28 Oct 2016
15 answers
232 views
Hi;

I've read that the TabStrip utlizes SecurityTrimming capabilities. Explcility stated in the documentation is if OnAuthorization returns HttpUnauthorizedResult then the tab item that made the request for the action will not be included. I have derived a class from AuthorizeAttribute and have overriden the OnAuthorization function and during a check I'm doing the following:
filterContext.Result = new HttpUnauthorizedResult();

After doing this the site stays on the Login Page. What do I have to do to make the TabStrip work with the authorization I placed.

Peter
Veselin Tsvetanov
Telerik team
 answered on 27 Oct 2016
4 answers
3.5K+ views
I'm having trouble using the option 'data' to send variables to the server with a get command when doing a read.

Example of the code that doesn't work:
var dataSource = new kendo.data.DataSource({
    transport: {
        read: {
            url: '/OFB/GetMijnUrenOpAct',
            dataType: "json",
            contentType: 'application/json; charset=utf-8',
            type: "GET",
	    data: {
		sendVar1: var1,
		sendVar2: var2
	    }
        } });

Instead I now use the following:
var dataSource = new kendo.data.DataSource({
    transport: {
        read: {
            url: '/OFB/GetMijnUrenOpAct?sendVar1=' + var1 + "&sendVar2=" + var2,
            dataType: "json",
            contentType: 'application/json; charset=utf-8',
            type: "GET",
        }
});
I also tried doing a POST instead of a GET.
Is there another way to do this?

tlaguz
Top achievements
Rank 1
 answered on 27 Oct 2016
8 answers
3.2K+ views

Hi,

 

we use our own bootstrap and kendo themes. All works well, but one problem: because we use a very dark accent color (default is #428bca, we use #242b46) the close icon (x) is not visible on the buttons. This happens because the x-sprite is black or a very grey dark that leads to very low contrast and quasi invisibility.

So please, how to achieve, that the x-sprite is white?

Thanks for your reply.

Bastian
Top achievements
Rank 1
 answered on 27 Oct 2016
1 answer
296 views

Hello,

we noticed that in R3 2016 (UI for ASP.NET MVC R3 2016) the typescript definition files (d.ts) are not shipped with a correct definition for the kendo.throttle function.

Its defined as

function throttle(fn: Function, timeout: number): void;

 

while it should be

function throttle(fn: Function, timeout: number): Function;

 

Regards,

Alex Gyoshev
Telerik team
 answered on 27 Oct 2016
6 answers
770 views

Hello,

I'm currently working on a kendo grid where sorting and groupping are enabled.

when I sort the grid depending on one or more columns, the grid is sorted as expected, however if I choose to group the grid according to any column afterwards, the sorting gets cancelled.

I understand that this has been an issue raised before since kendo didn't support it. but is it still the case?

Is there a workaround for this?

 

 

 

Nikolay Rusev
Telerik team
 answered on 27 Oct 2016
2 answers
7.3K+ views

I have the following grid:

Html.Kendo().Grid<ABC>()
                                .Name("grid")
                                .Columns(columns =>
                                    {
                                        columns.Bound(p => p.Apply).Width(155);
                                        columns.Bound(p => p.Number).Width(155);
                                        columns.Bound(p => p.Paid).Width(155);
                                        columns.Bound(p => p.Note);
                                        columns.Bound(p => p.CompanyName);
                                        columns.Bound(p => p.ReferenceNumber);
                                        columns.Bound(p => p.ProcessedDate).Format("{0:d}");
                                        columns.Bound(p => p.ErrorMessage);
                                        columns.Command(command => command.Edit()).Width(100).Visible(???);
                                    })
                                .Editable(editable => editable.Mode(GridEditMode.InLine))
                                .Events(events => events.DataBound("onDataBound"))

How do I set the visibility on a row by row basis? I want the edit button to be invisible if the ProcessedDate has a value.
The edit command contains a visible property, but I don't see a way to write a lambda expression within the visible property to set it.
There is also an DataBound event, but I can't find an example of how to use this or some other grid event to check the value of the ProcessedDate so that I can hide or show the edit button.

The regular ASP.Net Grid has an onItemDataBound event, what is the equivelant in MVC?

Dimiter Madjarov
Telerik team
 answered on 27 Oct 2016
1 answer
307 views

I'm implementing a Kendo bar chart representing power usage for 24 hours of a day. I'm following the demo from here.( http://demos.telerik.com/kendo-ui/chart-api/selection ). Assuming the hour axis(x-axis) has 24 points and 24 data values, the start point being 12am and end point 12am next day (or 11:59:59pm same day), how to get value of the 25th axis point. The way chart represents data is, 24 bars placed between 25 axis points. In the above demo,if you select first single unit in x-axis it console logs `Select end :: 0 - 1 (1952 - 1952), Select start :: 0 - 1 (1952 - 1952)` , which is little confusing, How can start and end value be same? In my case, it is working fine till 24th axis point, but once i select 24th bar, the 25th axis point(the end point) logs out undefined. How to get around this? Any suggestions?

 

Iliana Dyankova
Telerik team
 answered on 27 Oct 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
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
SmartPasteButton
PromptBox
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?