Telerik Forums
Kendo UI for jQuery Forum
11 answers
2.0K+ views
Hi,

I have searched the documentation and the forums but have not managed to find a topic on this issue. I would like to know if it is possible to define a template to use for the delete command prompt in a Grid control.

I'm using MVC and I currently have grids on certain pages that make use of the 'Delete' command button. My problem is that when using the delete command the command prompt is the default ugly browser one which is inconsistent with the theme of my application (I am aware that I can hide the prompt altogether but I'd like to keep it and if I use a custom command button instead then I lose the icon on the button which I don't want either).

On other forms I have been able to make use of the Kendo UI Window as a prompt which is working fine and I would like to be able to use this same style prompt in the Grid too. 

Is this possible?

Thanks,

Neil.
Alexander Valchev
Telerik team
 answered on 15 Apr 2013
1 answer
178 views
Hi,
I am using a Kendo UI Menu server wrapper (razor), which enables security trimming based on the Authorize Attribute on the Controller Action (this is an MVC 4 project). When a user is not authorized to access an Action, the Menu Item is not rendered.
I have a requirement to dosplay the Menu Item as disabled (as opposed to hiding it) when the user is not authorized to access it. Ideally, it should also be determined through the Authorize Attribute on the Controller Actions. Is it possible?
Georgi Krustev
Telerik team
 answered on 15 Apr 2013
3 answers
147 views
We are trying to group some data for display using a Column chart. This works fine in IE, Safari etc, but when viewing in Chrome the data is mixed up, with values not falling into the correct groups. Removing the grouping shows that the data being handled is exactly the same in all browsers. Has anybody else come across this issue, and if so are there any known workarounds?

For info, the function in which grouping takes place is as follows:

function ajaxCallColumn(div, hier, dsField, stck, catAxisField, filter, srsClk, data) {
    $.ajax({
        url: '/api/Chart/',
        cache: false,
        type: 'POST',
        contentType: 'application/json; charset=utf-8',
        data: JSON.stringify(data),
        success: function (result) {
 
            $(div).kendoChart({
                dataSource: {
                    data: result,
                    group: {
                        field: dsField
                    },
                    filter: { field: "Category", operator: "neq", value: categorySwitch }
                },
                chartArea: {
                    background: "transparent"
                },
                title: {
                    text: result[0]["TableCaption"]
                },
                seriesColors: ["#007c85", "#f3901d", "#b2bb1e", "#a40046",
                            "#00aeef", "#ffcc00", "#5f6062", "#25567b", "#ccccff",
                            "#380470", "#6FFF00", "#9000FF"],
                legend: {
                    visible: true
                },
                series: [{
                    type: "column",
                    field: "Value",
                    tooltip:{
                        visible: true,
                        template: "#= series.name # - #= value #"
                    }
                }],
                seriesClick: srsClk,
                categoryAxis: {
                    field: catAxisField,
                    labels: {
                        rotation: 90
                    }
                }
            });
        },
        error: function (result) {
            if (result.status != 401) {
                alert(result.status + " " + result.statusText);
            }
        },
        statusCode: {
            401: function (jqXHR, textStatus, errorThrown) {
                self.location = '/Account/Login/';
            }
        }
    });
}
T. Tsonev
Telerik team
 answered on 15 Apr 2013
3 answers
616 views
I am trying to use a Kendo Dropdownlist that uses a template.  I have a page where a user can select a dataset and that dataset with populate dropdowns with values.  Most of my dropdowns do not use templates however the one that isnt working properly is using templates.

My template:

<script type="text/x-kendo-tmpl" id="dropdownTemplate">
<div>
<p><strong>#= Name #</strong></p>
<p>#= Description #</p>
</div>
</script>

My dropdown definition:

$("#listTemplates").kendoDropDownList({
dataTextField: "Name",
dataValueField: "ChartTemplateId",
template: kendo.template($("#dropdownTemplate").html()),
change: listTemplatesChange
});

How I am populating my dropdown:
portalTemplatesModel = [
[{
Name: "Test",
Description: "Long Description",
ChartTemplateId: "1"
}],
[{
Name: "Test2",
Description: "Long Description2",
ChartTemplateId: "2"
}]
]
 for (i = 0; i < portalTemplatesModel.length; i++) {
debugger;
$("#listTemplates").data("kendoDropDownList").dataSource.add(portalTemplatesModel[i]);
}

My setter:

var ddTemplates = $("#listTemplates").data("kendoDropDownList");
ddTemplates.select(function (dataItem) {
debugger;
return dataItem.value === placeHolderChart.ChartTemplateId;
});

dataItem looks like the following:
[{
Name: "Test",
Description: "Long Description",
ChartTemplateId: "1"
}]

I noticed in the setter documentation you are supposed to use either value or item.  However, with the dataset that I am using it seems to use a different object that does not contain value or text like the other dropdowns that dont use templates have.

Thank you in advance!
Alexander Valchev
Telerik team
 answered on 15 Apr 2013
1 answer
104 views
Does Kendo Ui Mobile support this number notification? Like in the picture..
Kamen Bundev
Telerik team
 answered on 15 Apr 2013
5 answers
123 views
The kendoui menu demos don't work properly in IE 10 on touch enabled device...When you move your finger over a menu...the menu expands but you cannot select a sub-menu.

The Same demo works in Google Chrome on the same touch enabled device.

Georgi Krustev
Telerik team
 answered on 15 Apr 2013
2 answers
285 views
Have attached the images of the strange behaviour of Date Picker in Different browser i.e chrome and mozilla.Why is this happening have used the same code as specified in the Demo of Kendo UI.
Sanket
Top achievements
Rank 1
 answered on 15 Apr 2013
1 answer
95 views
Kendo UI Version : kendoui.complete.2013.1.411
Test Browser : IE 10 (Browser mode IE7, Document mod IE7)
Kenudo UI example of kendoui.complete.2013.1.411.zip file

Test Page : examples/web/datepicker/index.html

IE Console Message : jquery.min.js, line 3 character 23238

choose date not selected!!
the calendar opens up but it does not selected.
Dimo
Telerik team
 answered on 15 Apr 2013
4 answers
90 views
We are using Kendo UI 2nd quarter 2012 with MVC 4 2010. Using Razor, in our Index.cshtml we define a date picker control. We found that if one launches the application in a browser window that is not maximized, then before doing anything else, maximizes the browser window, the date time picker control does not display the calandar when clicked. Any help on this would be appreciated. Thanks.
Dimo
Telerik team
 answered on 15 Apr 2013
3 answers
226 views
Hi!

My company will probably buy the Kendo UI Complete for ASP.NET MVC, but we would like to know if the Single Page Application feature is already stable to do development based on it...?

Another thing that we would like to know is if we can use SPA Kendo feature and Knockout (for data binding) together?  Or if it's possible to use Kendo MVVM pattern with another SPA template? (if yes, which one is recomended?)

Thanks!
mgs
Top achievements
Rank 1
 answered on 15 Apr 2013
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
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?