Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Can edit the column header caption by JS?
posted

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?

 

 

Parents
No Data
Reply
  • 33839
    posted

    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 

Children
No Data