Telerik Forums
Kendo UI for jQuery Forum
1 answer
114 views

HI,

I'm missing the changeLoadingMessage method in the definition file:

 

 class Application extends Observable {
        options: ApplicationOptions;
        router: kendo.Router;
        pane: kendo.mobile.ui.Pane;
        constructor(element?: any, options?: ApplicationOptions);
        init(element?: any, options?: ApplicationOptions): void;
        hideLoading(): void;
        navigate(url: string, transition?: string): void;
        replace(url: string, transition?: string): void;
        scroller(): kendo.mobile.ui.Scroller;
        showLoading(): void;
        view(): kendo.mobile.ui.View;
    }

 

Kind regards,

 

Marco

 

Veselin Tsvetanov
Telerik team
 answered on 19 Oct 2017
7 answers
1.6K+ views

Hi, I have a grid with column templates where each column hold two or more values.I'm trying to achieve 'in cell' edit for such templates.

I would like to request if post any sample here to achieve in cell editing for a column template.I'm attaching a snapshot of how my grid looks like. Thanks

Sohail
Top achievements
Rank 1
 answered on 18 Oct 2017
1 answer
169 views

How to group only one field?

When I group an item I want to disable the grouping of other fields.

 

Preslav
Telerik team
 answered on 18 Oct 2017
2 answers
280 views

Hello.  I noticed a bug where the validation message does not disappear for the mobile switch, but does for a regular switch.

Dojo: http://dojo.telerik.com/ISuvI

Can you fix this please?

John
Top achievements
Rank 1
 answered on 18 Oct 2017
5 answers
539 views
Hello,
I use Kendo Scheduler in my solution, and use the collection of Employees as resources for columns. Each of the employees has his/her own work hours, so I want to highlight cells grey for non-working hours and white for working hours in each column. But I could not find any appropriate solution. Is it even possible using to?

Best Regards
Nencho
Telerik team
 answered on 18 Oct 2017
5 answers
278 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
100 views
can the autocomplete no difference when key the halfwidth or fullwidth word?
Dimitar
Telerik team
 answered on 18 Oct 2017
7 answers
325 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.1K+ 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.2K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?