Telerik Forums
Kendo UI for jQuery Forum
1 answer
134 views
Is there a way to customize the column Menu to add additional options for formatting the column?  We would like to add a Formating menu option that would allow the user to dynamically format the column as needed.  (ie: Change from one date format to another, etc.)
Dimiter Madjarov
Telerik team
 answered on 10 Jul 2015
4 answers
337 views
Hi. I've been trying to figure out why my DataTable bound grid (with dynamic columns and Ajax data source) was erroring whenever I clicked a column heading to sort it. This has been driving me crazy as my view and controller code is very similar to the binding to data table sample code you provide.

I finally discovered the problem occurs whenever a column has certain characters in the column name (e.g. a space, a period or a hash character). If one of these characters is present the request becomes a GET rather than a POST which results in a 404 error as JSON results are not permitted via GET by default.

Please let me know how I can have column names with these characters as they are required for our column names.  Thanks!

View code:
@(Html.Kendo().Grid(Model)
           .Name("grid")
           .Columns(columns =>
           {
               foreach (System.Data.DataColumn column in Model.Columns)
               {
                   columns.Bound(column.ColumnName);
               }
           })
           .Pageable()
           .Sortable()
           .DataSource(dataSource => dataSource
               .Ajax()
               .Model(model =>
               {
                   foreach (System.Data.DataColumn column in Model.Columns)
                   {
                       model.Field(column.ColumnName, column.DataType);
                   }
               })
               .Read(read => read.Action("Read", "Reports"))
           )
       )
Controller code:
public ActionResult Read([DataSourceRequest] DataSourceRequest request)
        {
            DataTable products = Products();
 
            return Json(products.ToDataSourceResult(request));
        }
Andreas Mildenberger
Top achievements
Rank 1
 answered on 10 Jul 2015
1 answer
428 views
Is it possible to build MultiSelect with hierarchy as attached image?
Georgi Krustev
Telerik team
 answered on 10 Jul 2015
5 answers
402 views
How to enable showing tooltips for Pagination numbers in grid !
Alexander Popov
Telerik team
 answered on 10 Jul 2015
1 answer
258 views

Hi. As show in this demo http://plnkr.co/w44pS20LB0K1EpxPIq1i.
In index.html line 82, i am using a custom command.
I want to when i click custom command (inside background color green) it will triggle 'create' command in sub grid(background color blue).
Is it possible?

Radoslav
Telerik team
 answered on 10 Jul 2015
2 answers
654 views

Hi,

 

I have a Kendo Scheduler which has Editable=false applied as it's for viewing only.  However, if you double-click on a date, I'd like the site to navigate to a separate page specific to that date to display a summary of what's happening on that date.  Therefore, I have bound a double-click event to each cell for this event - however, I don't have access to the date selected to pass to my next page.

        $('div.k-event-template').parent().dblclick(function () {
            alert("Handler for .dblclick() called.");
        });

What's the best way of achieving this?

 Thanks, Mark

Mark
Top achievements
Rank 1
 answered on 10 Jul 2015
6 answers
164 views

I'm inserting a row into my grid, with a default ID of zero, and when I save it I'm setting the ID on the server.

I now want to refresh the grid so it includes the new ID value, rather than the default, so that I can re-edit the row (if it stays with a zero ID it tries adding it as a new row again).

I can achieve this by adding grid.dataSource.read(); to the requestEnd event, but this refreshes the whole grid, moving the new row to its correct position depending on sort order (which might be on a different page). I want the display to remain the same, with the new row at the top.

I've found a lot of similar posts, and the solution usually offered is that if the new row is returned from the Post method is the same format as the Get method returns, then everything should refresh automagically.

I can't get this working though. Perhaps the two methods don't return compatible results?

My Get method returns IHttpActionResult

    return Ok<PageResult<CurrencyViewModel>>(result)

but my Post method returns Task<IHttpActionResult>

    return Ok(currency)

 

Any ideas? I can post more source code if needed but don't want to confuse matters by posting lots of irrelevant stuff!

Thanks

Simon
Top achievements
Rank 1
 answered on 10 Jul 2015
7 answers
956 views
I tried to filter in attached POC Due Date column with operator "Is before or equal to"  and date 23-june-2015, in the output it gives null records, which i don't want. can you please help.
Boyan Dimitrov
Telerik team
 answered on 10 Jul 2015
1 answer
116 views

Hi,

The kendo.data.Model editable function returns true if a field is not defined. Shouldn't it return false for undefined fields? 

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Kendo UI Snippet</title>
 
 
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
<body>
   
<script>
var Product = kendo.data.Model.define({
    fields: {
        id: {
            editable: false
        },
        name: {
            editable: true
        }
    }
});
var product = new Product();
alert(product.editable("id")); // outputs "false"
alert(product.editable("name")); // outputs "true"
alert(product.editable("name2")); // outputs "true", why???
</script>
</body>
</html>

 

Regards,

Laszlo

Rosen
Telerik team
 answered on 10 Jul 2015
3 answers
324 views
I would like to ask is it possible to have button groups in multiple lines? I need 9 buttons that will work together (e.g free per line) - there is no space for more.

Regards
Marcin
Kiril Nikolov
Telerik team
 answered on 10 Jul 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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?