Telerik Forums
Kendo UI for jQuery Forum
0 answers
90 views
Hi,

Considering the fiddle here : http://jsfiddle.net/sT94F/3/

When clicking the "Add" button, there's a reference error, "colA is not defined".

Is there a way I can pass an "empty" object when adding the row?

I am using v2012.1.327

Thanks,

Pascal.
Pascal
Top achievements
Rank 1
 asked on 23 Jul 2012
0 answers
325 views
how can i pass parameter to service method..here is my code

Service Method which accept the argument

  public string AllBooks(string models)
  { 
                return models;
  }

KendoListView Binding Script
$(function () {
            var id = "ammar";
            var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        type: "POST",
                        url: "../../books.svc/AllBooks",
                        dataType: "json"
                    },
                    parameterMap: function (options, operation) {
                        if (operation == "read") {
                            return { models: kendo.stringify(id) };
                        }
                    }
                },
                schema: {

                    parse: function (data) {
                        return JSON.parse(data.d);
                    }
                },
                pageSize: 8
            });

            $("#listView").kendoListView({
                dataSource: dataSource,
                template: kendo.template($("#template").html())

            });

        });
   
service method not call,in firebug i saw Post tab when service method call following is the format which is going to be pass,i think this is the reason why service method not call..please someboy tell me where i m wrong

Ammar
Top achievements
Rank 1
 asked on 23 Jul 2012
3 answers
156 views
Hi,

Im using Kendo Tree view. Whenever Im trying to use Hierarchical data source in my tree view, my web view page comes up with an error that "Object doesnt support this action". Can U suggest any help or provide sample for this?

Thanks and Regards,
Durga Bhavani
Iliana Dyankova
Telerik team
 answered on 23 Jul 2012
0 answers
291 views

I am trying to do a custom paging by using mvvm, datasource and template. My problem is I have to use this.set to set the dataSource page() or total pages() to get the value this.get("dataSource").totalPages() or this.get("dataSource").page() refreshed. That is why I set a variable pageRefreshHolder as work-around. Is there some easy way?

var viewModel=kendo.observable({
        dataSource:new kendo.data.DataSource({
            data:ReportsData,
            pageSize:12,
            sort:{ field: "name", dir: "asc" }
        }),
        copy:function(e){
            this.dataSource.add(e.data);
            this.set("pageRefreshHolder",this.dataSource.totalPages()); //I have to have this line to get the totalPage work
        },
        goToNextPage:function(){
            if(this.dataSource.page()<this.dataSource.totalPages())
                this.dataSource.page(this.dataSource.page()+1);
            else
                this.dataSource.page(1);
            $jquery("#reportsArea").find("div#phItem").show("slide",{direction:"right"}, 500);
            this.set("pageRefreshHolder",this.dataSource.page()); //I have to have this line to get the currentPage work
 
        },
        goToPrevPage:function(){
            if(this.dataSource.page()>1)
                this.dataSource.page(this.dataSource.page()-1);
            else
                this.dataSource.page(this.dataSource.totalPages());
            $jquery("#reportsArea").find("div#phItem").show("slide",{direction:"left"}, 500);
            this.set("pageRefreshHolder",this.dataSource.page()); //I have to have this line to get the currentPage work
        },
        pageRefreshHolder: 1,
        totalPage: function() {
            return this.get("dataSource").totalPages();
        },
        currentPage: function(){
            return this.get("dataSource").page();
        }
    });
    kendo.bind($jquery("#reportsArea"),viewModel);
Jenny
Top achievements
Rank 1
 asked on 23 Jul 2012
3 answers
130 views
I want to create some what of a product catalog using listviews. Basically the page will start with a listview of high level categories. When a person selects a category, I will perform a jsonp query and they will see a new listview with the subcategories of that category. I don't know ahead of time how deep the categories can be nested but it seems that there should be a simple design pattern so this can be done with a single page that can be reused over and over at each level and that each (different page/category query) could be cached to avoid making the same jsonp request.

Would appreciate if someone can point me in the right direction.

Thanks,
EE
Psmontte
Top achievements
Rank 1
 answered on 23 Jul 2012
0 answers
132 views
I'm trying to set the combobox template in a jquery way, but doesn't work

$("#titles").kendoComboBox({
        ..//set some other properties except template
});

var combobox = $("#titles").data("kendoComboBox");

// set template
if (something)
{
combobox.template('some template');
}

any ideas why this doesn't work?

kashim





Kashim
Top achievements
Rank 1
 asked on 23 Jul 2012
0 answers
239 views
Hello, I'm trying to make use of the new container feature, and it works like a charm if you define a hint for the draggable element.
So, that's my question, is there any chance to use this container feature without having to define a hint so it does not throw an exception when it tries to get the hint dimensions to check boundaries?

My draggable elements do not need any hint, just the original element. If I set the hint function to return a clone of it I'm exposed to have elements duplicated every time I try to drag them.

Thank you.
Nohinn
Top achievements
Rank 1
 asked on 23 Jul 2012
1 answer
345 views
Hi,
can you please let me know if the tool tip is supported in the dropdown, if not can you please let me know if there is any way to show popup associated with each item in the dropdwon

thanks
Wisam
Alexander Valchev
Telerik team
 answered on 23 Jul 2012
2 answers
178 views
I am using the overload of ToDataSourceResult to postproceess my DBContext Entity into my model. However, I receive a LINQ error when I use it in the manner below. I know LINQ enough to understand the error, but I am confused because this forum post seemed to indicate the postprocessing expression would be used AFTER the object has been retrieved from the DBContext and not as part of the retrieval from the DBContext. Can you provide clarification?

My code:

DataSourceResult result = this.StateProvinceService
                .GetQueryable()
                .ToDataSourceResult<StateProvince, StateProvinceModel>(
                    request,
                    province => Mapper.Map<StateProvince, StateProvinceModel>(province));

The result:

LINQ to Entities does not recognize the method 'XYZ.Web.Areas.Admin.Models.StateProvinceModel Map[StateProvince,StateProvinceModel](XYZ.Model.StateProvince)' method, and this method cannot be translated into a store expression.

Mo
Top achievements
Rank 1
 answered on 23 Jul 2012
0 answers
98 views

Hi all,

I am trying to use the Kendo TreeView for a .NET application where people can edit a hierarchy. So far I have most of the client-side functionality implemented, whereby users can move, delete, rename nodes etc. My issue now is how to propagate those changes back to my application where server-side code will make database changes based on those client-side hierarchy changes. Can anybody advise me on the best way to propagate changes made to the treeview back to my .NET app? I’ve looked into the possibility of using a hidden field which I can post back on form submission but I’m not sure if this is the best way to go about it.

Kind regards,

Richard

Richard
Top achievements
Rank 1
 asked on 23 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?