For example :
step1///////////////////
at behind set the grid columns[o].caption="COL0";
step2//////////////////
at client use JS set the grid columns[0].setHeaderText("COLCOL");
step3//////////////////
but at behind get the grid columns[0].cation still "COL0"???
The header caption can change by JS??
or other mode can change the caption。only by JS。
who can help me?
Hi sismm,
I think you're posting code from the UltraWebGrid? As Petar showed, you can change the header text with client JavaScript, however, these values will not be transferred by the WebDataGrid at the moment. When you do that, you should set the value of some hidden input to know you need to update a server value later. You could submit a feature request for this if you'd like.
regards,David Young
In order to change the caption of a WebDataGrid's column, you can use something similar to:
ig_controls.WebDataGrid1.get_columns().get_column(0).get_headerElement().textContent = "New Header Caption"
You may find more useful information regarding client-side programming using the WebDataGrid in our documentation:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataGrid~Infragistics.Web.UI_namespace.html
Please let me know if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support