Telerik Forums
Kendo UI for jQuery Forum
5 answers
307 views

I'm having some trouble getting my nested listview to sort properly(child listview). I want to be able to sort each listview individually.

<div class="mainsortable">

    @(Html.Kendo().ListView<KendoUI_MVC.ViewModel.Product>()
    .Name("listView")
    .TagName("div")
    .ClientTemplateId("template")
    .DataSource(dataSource =>
    {
        dataSource.Read(read => read.Action("ProductGrid_Read", "ListView"));
        dataSource.PageSize(21);
    })
    .Pageable()
    )

    @(Html.Kendo().Sortable()
        .For("#listView")
        .Filter(">div.product")
        .Cursor("move")
        .PlaceholderHandler("placeholder")
        .HintHandler("hint")
            //.Events(events => events.Change("onChange"))
    )

</div>

<script type="text/x-kendo-tmpl" id="template">

    <div class="product">
        <div class="panel panel-default">
            <div class="panel-heading">#=ProductID# #:ProductName#</div>
            <div class="panel-body">
                <div class="partialsortable">
                    

                    @(Html.Kendo().ListView<KendoUI_MVC.ViewModel.Order>()
                        .Name("OrderlistView_#=ProductID#")
                        .TagName("div")
                        .ClientTemplateId("ordertemplate")
                        .DataSource(dataSource =>
                        {
                            dataSource.Read(read => read.Action("Order_Read", "ListView", new { ProductID = "#=ProductID#" }));
                            dataSource.PageSize(21);
                        })
                            //.Pageable()
                                 .ToClientTemplate()
                    )

                    @(Html.Kendo().Sortable()
                        .For("#OrderlistView_#=ProductID#")
                       .Filter(">div.order")                     
                        .Cursor("move")
                        .PlaceholderHandler("placeholder")
                        .HintHandler("hint")
               
                                 .ToClientTemplate()
                    )


                </div>
            </div>
        </div>
    </div>
</script>

 

<script type="text/x-kendo-tmpl" id="ordertemplate">

    <div class="order">
        Unit Price : #:UnitPrice#<br />
        Quantity : #:Quantity#<br />
        Discount : #:Discount#
    </div>

</script>

<script>
    function placeholder(element) {        
        return element.clone().addClass("placeholder");
    }

    function hint(element) {
        return element.clone().removeClass("k-state-selected");
    }
</script>

.

bold sortable controller does not working

Tsvetina
Telerik team
 answered on 18 Oct 2017
3 answers
127 views
can the autocomplete no difference when key the halfwidth or fullwidth word?
Dimitar
Telerik team
 answered on 18 Oct 2017
7 answers
360 views

I'm having an issue where even in the simplest Kendo UI MVC 5 application I can not see the results of Kendo widgets. I tried using the simple datapicker widget and I don't see the icon to pick the date. And with this autocomplete widget. When uploaded, I don't see a text box to type into. 

 

@using Kendo.Mvc.UI

@{ 
    ViewBag.Title = "HomePage";
}
@{ 
    var countries = new String[] {
                "America",
                "Ansonia",
                "Latvia",
                "Italy",
                "Lithuania"};
        }
<br/>
<br />
<br />
<br />
<div>
        @{Html.Kendo().AutoComplete()
                            .Name("myAutoCompletion")
                            .Placeholder("Country")
                            .BindTo(@countries);
        }

</div>

Nencho
Telerik team
 answered on 18 Oct 2017
4 answers
1.2K+ views
When I create new record in grid and after that I delete that row, delete action method is not requested by client side as I see in firebug and Delete action doesnt fire. What should I do with this?

My grid:

<code>

@(Html.Kendo().Grid<TelerikMvcApp2.Models.Car>()
    .Name("grid")
    .Columns(c=>
    {
        c.Bound(x=>x.Name);
        c.Bound(x=>x.Model);
        c.Bound(x => x.YearOfProduction);
        c.Bound(x => x.Cena);
        c.Command(cmd => cmd.Edit());
        c.Command(cmd => cmd.Destroy());
    })
    .ToolBar(toolbar=>toolbar.Create())
    .Sortable()
    .Editable(e=>e.Mode(GridEditMode.PopUp))
    .Filterable()    
    .DataSource(d=>d
    .Ajax()
    .Model(m=>m.Id(p=>p.Id))
    .Read("GetCars","Home")
    .Destroy("Delete","Home")
    .Create("Create","Home")
    .Update("UpdateCar","Home")
    )
    )

</code>
 
My delete Action:

<code>

 [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Delete([DataSourceRequest] DataSourceRequest request, Car car)
        {

            return Json(new[] { car }.ToDataSourceResult(request, ModelState));
        }

</code>     






Michael
Top achievements
Rank 1
 answered on 18 Oct 2017
3 answers
1.3K+ views

Hello,



In my application (Dynamics 365), I added many Kendo Grid (using TypeScript and C# WCF as Backend). I'd like to implement a general dynamic functionnality of server filtering (because I use paging on read request, so it must be filtered on server side).

 

Firstly, I'd like to know how to implement exactly a server filtering of data source. In my backend function, I have the DataSourceRequest parameter, I added serverFiltering:true to my DataSource definition in TS. But I think that I miss something here, particularly the filter parameters on the data source (JSON format right?). Something like this:

   "take":10,
   "skip":0,
   "page":1,
   "pageSize":10,
   "filter":{ 
      "filters":[ 
         
            "field":"Column1",
            "operator":"eq",
            "value":"val1"
         },
         
            "field":"Column1",
            "operator":"eq",
            "value":"val2"
         },
         
            "logic":"or",
            "filters":[ 
               
                  "field":"Column2",
                  "operator":"eq",
                  "value":5
               },
               
                  "field":"Column2",
                  "operator":"eq",
                  "value":1
               }
            ]
         }
      ],
      "logic":"and"
   },
   "group":[ 
 
   ]
}

 

How it can be done?Should I check if filtering is applied every column of my grid and what is the filter? And I guess that once the filter passed, I will be able to read it on the parameter passed to the backend function (request.Filters).

 

I'm newbie on Kendo, so I'll appreciate a detailed answer with full example if possible.

 

Thank you.

Moshe.

Moshe Hayun
Top achievements
Rank 1
 answered on 18 Oct 2017
1 answer
137 views

Hi,

I have a problem in dropdownlist angularjs

how to set dropdownlist ng-model after get ajax data

Sample my codes: http://dojo.telerik.com/@muratoner/icoBuB

Dimitar
Telerik team
 answered on 18 Oct 2017
7 answers
441 views
Hi, The gantt charts have the default feature of displaying a red marker on top of the time slot for the current date/time. Is it possible to add this marker to any other time slot other than the current date ? Can anyone please provide an answer, because this feature is crucial for a project that I'm working on.
Mohomed
Top achievements
Rank 1
 answered on 18 Oct 2017
2 answers
182 views

Hello everyone,

the wanted behavior is that I want to sort 3 columns with multi sort functionality of the grid, but the problem is that two of my columns are build from objects and the multi sort is not working over them. 

This is the example https://jsfiddle.net/x3Lqn2h3/

So, try first to sort over "age" descending (it works) after that try to sort over "name" (it works) and finally sort over "address" (it does not work). When you click over address the values "Pernik" and "Silistra" should swap their places but they don't.

 

Thank you for your help in advance!

Petar
Top achievements
Rank 1
 answered on 18 Oct 2017
13 answers
525 views

Hello,

We have a problem with Kendo UI charts in Internet Explorer 11 ( may be problem there is in another version IE too, we used only IE 11 to check it). It is memory leak.  When we change dataSource (setDataSource method) or when we do refresh / redraw, memory is not released.
Our datasource is large (10-15k points) and we need  to refresh data every 10 seconds. It means that after 2 hours IE has size 1gb memory and allocated memory continues to grow.
You can see this leak at your tutorial page 
http://demos.telerik.com/kendo-ui/scatter-charts/local-data-binding  . Just Increase datasource to one thousand items and try to set data with setDataSource method at least 10 times. Every call setDataSource  will increase memory to 3-5 mb.
Are there another way to update data in chart without this problem? Can you help us in this trouble?

Thank you in advance!
T. Tsonev
Telerik team
 answered on 17 Oct 2017
2 answers
152 views

https://dojo.telerik.com/EHiYU

In the datasource, the 4th date plot point is October 21, with a Revenue of 64, however when you run it the 4th plot point on the chart appears as October 18, with a Revenue of 64.

What's going on?

Joon-Sae
Top achievements
Rank 1
 answered on 17 Oct 2017
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
ContextMenu
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
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?