Telerik Forums
Kendo UI for jQuery Forum
3 answers
541 views
I have a need for a custom column editor for a grid I'm working on. As such, I'm adding a custom column menu item to handle column editing. My code looks like:

element.kendoGrid({
    columnMenu: {
        filterable: true,
        sortable: true,
        columns: false
    },
    columnMenuInit: function(e) {
        var menu = e.container.find(".k-menu").data("kendoMenu");
        var field = e.field;
        menu.append({ text: "Columns", spriteCssClass: "k-i-columns" });
        menu.bind("select", function(e) {
            if ($(e.item).text() == "Columns") {
                console.log("Custom button for", field);
            }
        });
    }
  // Other configuration here
}

The good news is that the column menu now has my custom Columns menu item in it. The bad news is that after running the custom select function when being clicked, the menu won't close. I've tried menu.close(), but that doesn't do anything. How do I get the popup menu to close after performing my custom action?
Kiril Nikolov
Telerik team
 answered on 28 Jan 2014
11 answers
137 views
The slider appears broken on iOS7. We are seeing this on iPhone5 with iOS7 and iPads with iOS7. If you open the mobile demos and look in the Forms - Overview demo on an actual iOS device, the track bar is not there. The handle will slide but its offset and you can't see the track. It works in the simulator so you have to use an real device to see it. 
Kiril Nikolov
Telerik team
 answered on 28 Jan 2014
2 answers
606 views
Hi
Could you explain how to refresh and filter the listView according to a specific category in the web sushi sample ?

var items = new kendo.data.DataSource({
    schema: { model: {} },
    transport: { read: { url: window.sushiMenuPath, dataType: "json" } }
});

thanks

Alexander Valchev
Telerik team
 answered on 28 Jan 2014
1 answer
230 views
We have a kendoAutoComplete field where we need the autocomplete list to have column titles at the top.  The AutoComplete documentation describes as headerTemplate property that take a string or a function.

I am assigning html to the headerTemplate property.  But it does not appear with the autocomplete list.  Nor are the header items present when I search the DOM for those header items.

The headerTemplate is our only issue with autoComplete.  Please let us know how we can fix or at least work around this issue.

Code...

                $this.kendoAutoComplete({
                    placeholder: settings.placeholder,
                    minLength: settings.minLength,
                    dataSource: settings.dataSource,
                    dataTextField: settings.dataTextField,
                    delay: settings.delay,
                    height: settings.listHeight,
                    highlightFirst: settings.highlightFirst,
                    select: function (e) {
                        //console.log("autocomplete select");
                        if (settings.onSelect)
                            settings.onSelect(this.dataItem(e.item.index()));
                    },
                    close: function(e) {
                        if (settings.onClose)
                            settings.onClose(e);
                    },
                    dataBound: function(e) {
                        if (settings.onDataBound)
                            settings.onDataBound(e);
                    },
                    open: function (e) {
                        if (settings.onOpen)
                            settings.onOpen(e);
                    },
                    template: settings.contentTemplate,
                    headerTemplate: settings.headerTemplate
                });
Suffice to say, I am confident that the value of settings.headerTemplate is valid html 

Thanks,
Rod Early
McKesson, Inc.
Alexander Valchev
Telerik team
 answered on 28 Jan 2014
2 answers
73 views
 
                  We have one asp.net major project. which has many pages and its fully depends on gridview. Dropdown box bounded on grid row.  Now, we have to change that project to MVC application. which one is best in MVC(asp.net or razor) for developing my project using telerik(kendo). 


                And give me one sample application for gridview with dropdown selection in MVC using telerik.

vinothini
Top achievements
Rank 1
 answered on 28 Jan 2014
1 answer
79 views
Hi,
   How to enable keyboard navigation for grid?  What i want to achieve is on clicking tab it control should goto next cell, similarly left/right/up/down arrows should go to previous/next/above/bottom cells.

Thanks
Shaneed
shaneed
Top achievements
Rank 1
 answered on 28 Jan 2014
5 answers
117 views
I have a very simple page , which displays Log4Net entries on the page. It has a grid with a refresh button.
When I hit the  refresh button, I do supply additional parameter to the refresh function.
It works in 2013.3.1119 and before, but that functionality is broken in 2013.3.1316.340.

The Page:
@using Monitoring.Contracts.Models
@model  Tuple<IEnumerable<string>, IEnumerable<Log4NetLogItem>>
@{
    var items = Model.Item1.Select(m => new SelectListItem {Text = m, Value = m});
}

<div style="width: 100%;text-align: center">
    <div style="display: inline-block">
        Log4NET Log Viewer &nbsp; 
        @(Html.Kendo().DropDownList()
              .Name("ddLogFiles")
              .DataTextField("Text")
              .DataValueField("Value")
              .Events(e => e.Change("adminContext.ddLogFilesChange"))
              .BindTo(items)
              .SelectedIndex(0)
              )
    </div>
    <br/><br/>
    <div style="text-align: left">
        @(Html.Kendo().Grid(Model.Item2).Name("grdLogItems")
        .Columns(c =>
                     {
                         c.Bound(a => a.LogDate).ClientTemplate("#= kendo.toString(LogDate, \"yyyy-MM-dd HH:mm:ss\") #").Width("10%");
                         c.Bound(a => a.LogLevel).Width("5%");
                         c.Bound(a => a.UserName).Width("10%");
                         c.Bound(a => a.UserAddress).Width("10%");                        
                         c.Bound(a => a.LoggingClass).Width("10%");
                         c.Bound(a => a.LogMessage).Width("45%");
                         c.Bound(a => a.UserAgent).Width("20%");
                     }
        )       
        .Pageable(p=>p.PageSizes(new[]{5,20,100}).Refresh(true))
        .Sortable() 
        .Filterable() 
        .Scrollable(a=>a.Height(500))   
        .Resizable(a=>a.Columns(true))   
        .DataSource(d=>d.Ajax().PageSize(100).ServerOperation(false).Read(r=>r.Action("GetLogEntries","Admin").Data("adminContext.extraLogData")))
        )
    </div>
</div>
Controller Action:

 
public ActionResult GetLogEntries([DataSourceRequest]DataSourceRequest request, string fileName)
        {
            string path = Server.MapPath("~\\Logs");
            var newpath = string.Format("{0}\\{1}{2}", path, fileName, ".log");
            IEnumerable<Log4NetLogItem> lines = ClientNetworkManager.GetLogItems(newpath);
            return Json(lines.ToDataSourceResult(request));
        }

Javascript function:
extraLogData: function () {
        var dropdownlist = $("#ddLogFiles").data("kendoDropDownList");
        return { fileName: dropdownlist.value() };
    }

Javascript correctly returns the fileName parameter, but the controller's fileName parameter is now always null. 
And as I said it works in  2013.3.1119 .
Looking into the raw HTML request  I'm no longer see fileName as a part of the Form data.






Shawn
Top achievements
Rank 2
 answered on 27 Jan 2014
1 answer
4.3K+ views
Hello team, we are facing issue where we want to insert a summary row below the grid, that also with the space between the grid and the summary row.

This row will contain
1. Custom text
2. addition resulting value column wise
3. jscript, so that editing the value in upper grid changes in addition of the summary row.

grid is model binded.
Please give your response to acheive this ASAP please.
  
Jono
Top achievements
Rank 1
 answered on 27 Jan 2014
2 answers
54 views
Hi

Your search " Grid " did not match any documents. Suggestions:Make sure all words are spelled correctly.Try different keywords.Try more general keywords.

Your search " Datetime " did not match any documents. Suggestions:Make sure all words are spelled correctly.Try different keywords.Try more general keywords.

I cant get any hits, even with words i know are in some of the threads here.

Cheers
Bonsak
Dimo Mitev
Telerik team
 answered on 27 Jan 2014
8 answers
325 views
Hi,

setting the background as transparent:

chartArea: {
    background: "transparent"
},

works like a charm in IE9 and FF but doesn't work in IE7 or 8.  They both set the background a solid black instead.

Thanks.
Iliana Dyankova
Telerik team
 answered on 27 Jan 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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?