Telerik Forums
Kendo UI for jQuery Forum
1 answer
251 views
I have Two scenarios, where i want to provide filtering, which does not have direct Mapping with Table column Field.
1) First one i am using Foreign Key Column with Combo Editior, this column is also using Template to display Name isntead of IDs.
  so the Table Relationship is like this, degree has DegreeCategoryID_FK  & joins to DegreeCategory's  DegreeCategoryID_PK Column.

On the Server WebAPI Read method Looks like
==========================================================================================================================
  public PageResult<Degree> GetDegrees(ODataQueryOptions<Degree> options)
        {
            IQueryable results = options.ApplyTo(db.Degrees.Include(dc => dc.DegreeCategory));

            return new PageResult<Degree>(
                results as IEnumerable<Degree>,
                Request.GetNextPageLink(),
                Request.GetInlineCount());

        }
==========================================================================================================================

So when user filters on this Column, it should actually translate that filter to DegreeCategory.Name on the server. 
How can i achieve this ?

The following is in Degree Grid
   {
                                    field: "DegreeCategoryID_FK",
                                    title: "DegreeCategory",
                                    width: 140,
                                    editor: DegreeCategoryComboEditor,
                                    template: function (dataItem) {
                                        //if (window.SelectedDegree != null) {
                                        //    dataItem.DGID_FK = window.SelectedDegree.DGID_PK;
                                        //    return window.SelectedDegree.Name;
                                        //}
                                        //else
                                        //    return "";
                                        return GetdegreeCategoryName(dataItem.DegreeCategoryID_FK, dataItem.DegreeCategory.CategoryName);
                                    }
                                },
Petur Subev
Telerik team
 answered on 15 Jan 2014
1 answer
174 views
Hello, we are trying to combine ellipses and sortable columns in Kendo grid. But if we set sortable:true the column does no longer get the ellipses feature. The full header is displayed without the "..." at the end.

The reason seems to be, that the sortable option adds another <a> Tag to the column Header, disabling the Display:inline style required for the ellipses.

Is there any workaround for that? Is this a bug that will be fixed in a future version of Kendo UI?

Thanks a log
Johann
Dimiter Madjarov
Telerik team
 answered on 15 Jan 2014
1 answer
1.0K+ views
I have been looking through the forums and the docs, but can't find a way to have separate arrays of colors for each series.  I know how to specify the color array using seriesColors, but not at each series level.  I want my donut chart with two series to have 2 different color schemes without using colors from the data, i.e. series.colorField

For example:  http://demos.kendoui.com/dataviz/donut-charts/index.html   I want the inner circle to have one set of colors, and the outer circle to have another.  I want to do this via JS/HTML, not from the data source.    Something like:

"seriesColorsOne": [
            "#428bca",
            "#014478",
            "#a8d166"]

"seriesColorsTwo": [
            "#ED9C28",
            "#d9534f",
            "#363636"]

I am sure I am just overlooking something.
Iliana Dyankova
Telerik team
 answered on 15 Jan 2014
3 answers
173 views
We were trying to implement right to Left text functionality for the KendoUI Dataviz by using css (kendo.rtl.css) provided by KendoUI library. But the chart is completely broken? We can’t fix that issue because we have no control over the SVG. I have tried the same thing for the Grids. Its working fine. Is kendo UI supports Right to Left functionality for the charts? If so please provide some insights in to that.
Iliana Dyankova
Telerik team
 answered on 15 Jan 2014
1 answer
31 views
Hi
If we add any record, after save it should by default select the
record which has been added if it exists in the grid.
How do we achieve this in Kendo?



Kiril Nikolov
Telerik team
 answered on 15 Jan 2014
1 answer
79 views
I believe there may be a bug in the way panes are removed from splitter IF there are more that one splitter on the page.  The following is the remove method from kendo.splitter.js in v2013.3.1119:

remove: function(pane) {
    pane = $(pane);
 
    var that = this;
 
    if (pane.length) {
        kendo.destroy(pane);
        pane.each(function(idx, element){
            that.options.panes.splice($(element).index(".k-pane"), 1);
            $(element).remove();
        });
 
        that._removeSplitBars();
 
        if (that.options.panes.length) {
            that.resize();
        }
    }
 
    return that;
},
If there is only one splitter on the page, $(element).index(".k-pane") will return the appropriate index of the pane.  If there are more than one splitter on the page, the ".k-pane" selector will return panes for ALL the splitters on the page (not just the splitter in question) and the element's index within that jquery object will NOT correspond to the index in the that.options.panes array.  I haven't tried it but I think that the following would eliminate the erroneous panes:
that.options.panes.splice($(element).parent().children(".k-pane").index($(element)),
1);


Dimo
Telerik team
 answered on 15 Jan 2014
1 answer
174 views
Dear Support, 
I want to use the scheduler in classic ASP as the existing Telerik Rad Scheduler is very slow.

Can I please have the Vertical Grouping sample project in Classic ASP please.

Thanks,
Mrinal
Vladimir Iliev
Telerik team
 answered on 15 Jan 2014
1 answer
57 views
Hi,

I'm having a problem and I just can't figure out what I'm doing wrong.

Basically .expand(".k-item") is not expanding any item.  I'm using the latest internal version (2013.3.1309).

I'm not using the latest published version (2013.3.1119) since with this one I couldnt expand any item at all.
(i even created a jsbin with this problem of not expanding any item, although i'm not sure if it has anything to do with this later problem)

The code for the expand method problem is right below.

Thanks in advance,
Luciano / Fabricio

var treeDataSource = new kendo.data.HierarchicalDataSource({
    transport: {
        read: {
            url: settings.GetTreeDataAction,
            dataType: 'json',
            type: 'POST'
        }
    },
    schema: {
        data: "Model.RootItems",
        model: {
            children: "ChildItems",
            hasChildren: "ChildItems.length > 0"
        }
    }
});
 
var treeView = $("#treeview").kendoTreeView({
    dataSource: treeDataSource,
    dataTextField: "Item.Nome",
    loadOnDemand: false
}).data("kendoTreeView");
 
treeView.expand(".k-item");

Alex Gyoshev
Telerik team
 answered on 15 Jan 2014
1 answer
259 views
Currently week is displayed Sunday thru Saturday. How do I change the view to show Monday thru Sunday (so weekend shows up together on right hand side)?
Atanas Korchev
Telerik team
 answered on 15 Jan 2014
1 answer
67 views
We are not using the "transport" mechanism to do CRUD calls due to other dependencies. Instead we are using add/remove API calls to manually manage Scheduler data.

To do an update of an event, can I safely  do "Add" without "Remove"? Will the new added event with same id replace existing event (of same id) or will it cause any unexpected issues?
Atanas Korchev
Telerik team
 answered on 15 Jan 2014
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?