Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.3K+ views
Hi,

I have a very simple requirement of displaying a success message when an item is successfully deleted from the system on the server. In the action result for Destroy command I return the following
return Json(ModelState.ToDataSourceResult(), JsonRequestBehavior.AllowGet);

In case of any known error scenario I add a ModelError to the ModelState and catch it in the event.error handler of kendo grid which works fine. But now I need to handle the success and display a user friendly information. I read through the blogs and found that we can use RequestEnd event handler and check for e.type == "remove". I have implemented accordingly, but in no scenarios I get the TYPE property of "e" back with a valid value on it. It always comes back 'undefined'. Following is the snapshot of the grid I use. Please can someone guide if I am going wrong somewhere or missing something. Version of kendo used is 2013.1.319
  <div>
        @(Html.Kendo().Grid<WorkTemplateDto>()
        .Name("Grid1")
        .Columns(columns =>
            {
                columns.Bound(col => col.Column1).Hidden(true);
                columns.Bound(col => col.Column2);
                columns.Bound(col => col.Column3);
                columns.Bound(col => col.Column4).ClientTemplate(@" #=displayhtmlInGrid(Objective)# ");
                columns.Bound(col => col.Column5).Format("{0:dd/MM/yyyy HH:mm:ss}");
                columns.Bound(col => col.Column6);
                columns.Bound(col => col.Column7).Hidden(true);
                columns.Command(command => command.Destroy())
                   .Hidden(true)
                   .IncludeInMenu(false);
                columns.Bound(x => x.Id)
                   .Width(50)
                   .HeaderTemplate(@"<span onclick=""javascript:DisplayDeleteLinksOnGrid();""><img src=""/Content/Images/delete.png"" alt=""Delete"" style=""cursor: pointer;"" /></span>")
                   .IncludeInMenu(false)
                   .Sortable(false)
                   .Groupable(false)
                   .Filterable(false)
                   .ClientTemplate(@"<a class=""k-button-icontext k-grid-delete"" style=""display: none;""><img src=""/Content/Images/delete.png"" alt=""Delete"" /></a>");
            })
        .Groupable()
     .Resizable(resize => resize.Columns(true))
              .Pageable(pages => pages
                                     .PageSizes(true)
                                     .Refresh(true)
              )
        .Sortable()
        .Scrollable()
        .Reorderable(order => order.Columns(true))
        .ColumnMenu(menu => menu.Columns(true))
        .DataSource(datasource => datasource
            .Ajax()
            .Model(model => model.Id(p => p.Id))
            .Events(events => {
                events.Error("griderrorHandler");
                events.RequestEnd("onRequestEnd");
            })
            .Read(action => action.Action("AjaxListSource", "Contoller1"))
            .Destroy(action => action.Action("Delete", "Contoller1"))
        )
        .Selectable(selectable =>
            {
                selectable.Mode(GridSelectionMode.Single);
                selectable.Enabled(true);
                selectable.Type(GridSelectionType.Row);
            }
        )
        .Events(e => {
                e.Change("gridchangeEvent");
            })
    )
    </div>
Rosen
Telerik team
 answered on 09 Apr 2013
3 answers
82 views
When you click the spin button and release the mouse button the button keeps spinning until the mouse leaves the spin button.
Keeping spinning should only be done when the mouse button is down.
You can reproduce it in the current demos: http://demos.kendoui.com/web/numerictextbox/index.html

Regards, Jaap
Georgi Krustev
Telerik team
 answered on 09 Apr 2013
1 answer
240 views
Is there a way to add my own fromat tool item and customize it's behavior?
I want my custom item for example that wraps everything in a qutoation and gives the qutation a specific class
I couldn't find anything about this in the documentation, but i notice that the demo example has a modified format tool with the 'fieldset' item which is not part of the regular format tools.
Daniel
Telerik team
 answered on 09 Apr 2013
3 answers
407 views
Because of the way the MultiSelect field grows when many items are selected, there is a potential issue when it is used in a static form layout where fields are not supposed to grow in width/height... One way I can think of to get around this issue is have an option to show ellipses(...) when the width of the field is reached, clicking on the ellipses(...) will grow the field temporary to it full size showing all the selected values; the field shrinks back to default size on blur or out of focus.

Also, it would be great if you can add a multi-select option for the DropDownList or Combobox similar to some of the custom plugins found at this thread here.
Georgi Krustev
Telerik team
 answered on 09 Apr 2013
1 answer
117 views
How to repo:
1. goto : http://demos.kendoui.com/web/treeview/api.html
2. Click on "item 1.1"
3. Click on “Append node”
4. Collapse "item 1.1"
5. Try to expand "item 1.1"

I believe append node should automatically set the hasChildren to true, but now is not the case

Thanks
Alex Gyoshev
Telerik team
 answered on 09 Apr 2013
1 answer
274 views
Hello,

I have a treeview with property checkChildren enabled, around 1.5k nodes and lots of divisions between parents and childrens, 
the load is slow, but click at first one it's just deadly slow, sometimes to broke the script

At this jsfiddle, have 990 nodes and check/uncheck the first one (test 10) takes 6 seconds or more to check all childrens

There is any work from Telerik/Kendo to improve this funcionality?

If not, now has my suggestion

Tri-state behavior is great and deserve receive some attention

Thank you very much
Alex Gyoshev
Telerik team
 answered on 09 Apr 2013
2 answers
76 views
If a DataSource is created and some values are then recalculated, cancelling editor reverts to values before recalculation.

Example here:
http://jsfiddle.net/uBfQ3/17/

1. Observe discount values set
2. Observe disount values recalculated
3. Hit edit
4. Hit cancel
5. Observe values reverting to values before recalculation

What do I do to make values revert to calculated values and not 0?

Lars Lykke
Top achievements
Rank 1
 answered on 09 Apr 2013
1 answer
180 views
   I am using  kendo hierarchical grid.  Both parent and child grid rows are editable.  ( Sample : http://jsfiddle.net/hAsE3/2/  )
Here  with I have list out some requirement and issues.

1. How to access parent (master grid) row details from detail grid column.
  E.g: To get primary key value of the master grid row from child row.

2. Not able add new record in a Child grid when apply filter as,

      filter: [{
            "logic": "or",
                "filters": [{
                field: "EmployeeID",
                operator: "eq",
                value: e.data.EmployeeID
            }]
        }]

3. How to get the child grid datasource from Hierarchical grid.




Thanks and Regards,
Thirumurthi


Alexander Valchev
Telerik team
 answered on 09 Apr 2013
1 answer
411 views

I want add custom toolTip text to kendo Grid coulmn header. right now I can only have a toolTip text for the title of the column as explained below
http://jsbin.com/iropem/8/edit

Thanks,
Ephrem
Iliana Dyankova
Telerik team
 answered on 09 Apr 2013
7 answers
226 views
If I have an array of items, and I want to display it either as a Listview or Kendo Grid (based on a toggle) what's the best way to go about that?...is there a demo somewhere?

I've got the toggle bound fine, and right now the listview works...but the only thing I can think to do is toggle visibility on the list-grid markup based on the view, and that seems WAYYY wasteful to me.

How would you do it?
Alexander Valchev
Telerik team
 answered on 09 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
Drag and Drop
Application
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?