This is a migrated thread and some comments may be shown as answers.

Problem with DropDownList and ComboBox gradients

6 Answers 73 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 04 Jan 2013, 03:49 AM
There appears to be a problem with the k-header class' gradients when used with the DropDownList and ComboBox. The problem appears in those widgets' demos and in a custom DropDownList that I built off the demo. The problem occurs in both Chrome and FireFox.

6 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 07 Jan 2013, 05:35 PM
Hello Michael,

Can you please describe in more details what is the problem? A screen shot will be also appreciated.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sriraksha
Top achievements
Rank 1
answered on 21 Apr 2015, 11:52 AM

Hi,

We are using the latest release of telerik 2015.1.408 and observe that data binding issue is still not fixed. It is neither working on combobox/grid. When we try to deploy the code on IE it works well, but the same doesnt work on chrome. Please send us the solution or ETA for the same.

0
Alexander Valchev
Telerik team
answered on 23 Apr 2015, 07:18 AM
Hi Sriraksha,

Could you please provide a small but run-able Kendo Dojo example which demonstrates your current implementation so I can examine it and advise you accordingly?

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sriraksha
Top achievements
Rank 1
answered on 23 Apr 2015, 11:25 AM

Hello Alexander,

Thanks for your reply.

The chrome issue has been resolved but now I am unable to bind the "checked" property of kendo  treeview(checkboxes).

I have data with json format and those having  a isChecked:true ,I want that to bind to treeview checkbox but its not accepting that code.

Please have a look

The scenario is like this:

//Json data in flatdata variable

var flatdata = [{ "columnId": null, "hasChildren": true, "id": 1, "isChecked": true, "objectId": 1029578706, "parentId": null, "name": "Audit" },
  { "columnId": 11, "hasChildren": false, "id": 19, "isChecked": true, "objectId": 1029578706, "parentId": 1, "name": "AuditId" },
                     { "columnId": 4, "hasChildren": false, "id": 20, "isChecked": true, "objectId": 1029578706, "parentId": 1, "name": "FieldName" }];

//Binding that to treeview.

  $("#treeview").kendoTreeView({                   
        checkboxes: {
            checkChildren: true,           
        },
        dataTextField: "name",      
        
        dataSource: {
            transport: {
                read: function (options) {
                    var id = options.data.id || null;
                    options.success($.grep(flatdata, function (x) {
                        return x.parentId == id;
                    }));
                }
            },                       schema: {
                model: {                 
                    id: "id",                      
                    hasChildren: function (x) {
                        var id = x.id;
                        for (var i = 0; i < flatdata.length; i++) {
                            if (flatdata[i].parentId == id) {
                                return true;
                            }
                        }
                        return false;
                       
                    }
                            
                }
            }
        }
    })

Everything is fine ,Means the Parent-child relationship is working fine .

You can find in that flatdata ,there is a property isChecked, I want to assign that property to treeview,so that I can checked the checkboxes whose isChecked=true.

Means here Audit and AuditId should be checked condition.

Please have a look into it.

Thanks

Sriraksha

 

 

 

0
Alexander Valchev
Telerik team
answered on 27 Apr 2015, 10:41 AM
Hello Sriraksha,

Please use 'checked' instead of 'isChecked' and the TreeView will automatically update the checkboxes state. For your convenience I prepared a small example:
  • http://dojo.telerik.com/@valchev/ejUmU


Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sriraksha
Top achievements
Rank 1
answered on 27 Apr 2015, 10:48 AM
Thank You Alexander... will check it out
Tags
DropDownList
Asked by
Mike
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Sriraksha
Top achievements
Rank 1
Share this question
or