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

Columns header text is not updating

0 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 28 Sep 2012, 07:44 PM
Hi, 

I have kendo grid that is being binded in the js with a collection from the View Model. as follow when the page loads. 

$('Grid1').kendoGrid({ columns: this.Grid1.Columns, resizable: "true", selectable: "row", sortable: "true", rowTemplate: kendo.template($("#listview-rowTemplate").html()) });

At this point(when the page loads) the ViewModel collection has some default values, later in a callAction of a button event, the ViewModel collection is filled with different information for every column (text, width and others). Looking at the json retrieved the information is correct but the Grid is not being updated until I refresh the page using F5 and the js line of binding is executed again.

The binding is right because in another Grid the ViewModel Collection is filled before the binding and it shows the width, header text and all the rest of the information right.

My question is if the binding for the columns of a grid just work with initial values (previously loaded) and you cannot changes the titles and width or am I missing some details about binding and that´s why the grid is not updating the columns?

Thanks in advance!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Gonzalo
Top achievements
Rank 1
Share this question
or