we have a multi language project, so i need to set the columns headertext dynamicaly.
So what is the problem.
I cannot use server-side oncolumncreated because i am using client-side databinding with paging. I wrote a script like this for the client-side event.
My question is: How can i assign the text for rowheader ?
I used this column.get_parent().headerRow but i know this isnt the right one, and i couldnt found the correct one. If someone can give an answer for this i will be happy.
Regards...
So what is the problem.
I cannot use server-side oncolumncreated because i am using client-side databinding with paging. I wrote a script like this for the client-side event.
My question is: How can i assign the text for rowheader ?
I used this column.get_parent().headerRow but i know this isnt the right one, and i couldnt found the correct one. If someone can give an answer for this i will be happy.
Regards...
function ColumnCreated(sender, eventArgs) |
{ |
var column = eventArgs.get_column(); |
if (column.get_dataField() == "RET_CODE") |
column.get_parent().headerRow = '<%= Messages.GetMessage(1112) %>'; |
if (column.get_dataField() == "RET_DELIVERYNAME") |
column.get_parent().headerRow = '<%= Messages.GetMessage(1442) %>'; |
if (column.get_dataField() == "RET_DELIVERY_ADDRESS") |
column.get_parent().headerRow = '<%= Messages.GetMessage(1398) %>'; |
if (column.get_dataField() == "RET_CONTACTNAME") |
column.get_parent().headerRow = '<%= Messages.GetMessage(1029) %>'; |
if (column.get_dataField() == "RET_PHONE") |
column.get_parent().headerRow = '<%= Messages.GetMessage(1031) %>'; |
if (column.get_dataField() == "CL_STATUS") |
column.set_visible(false); |
} |