Hi,
As per our requirement we are creating a Rad Grid programmatically(Telerik DLL Version 2009.3.1103.35).
We have added a GridMasked Column and provided it with data that is alha numeric(String Datatype.eg AC2334565).
The mask value is set to "(###) ## ###".
But when i execute the code this is not applied to the data and it show plain with formatting.
Here is my code snippet:
objGridMaskedColumn = New Telerik.GridMaskedColumn
With objGridMaskedColumn
.UniqueName = cColNameTelephone
.HeaderText = "Auth Code"
.DataField = "AuthCode"
.Mask = "(###) ## ###"
End With
gridSample.MasterTableView.Columns.Add(objGridMaskedColumn)
My requirement is that i need to store the data in the database with any format.But while displaying the same text on grid i want to apply formatting to it.As per my understanding GridMasked Column was for that purpose.
The same can be seen in below demo for Masked Column: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx
Any help is greatly appreciated.
Regards,
Aayam
As per our requirement we are creating a Rad Grid programmatically(Telerik DLL Version 2009.3.1103.35).
We have added a GridMasked Column and provided it with data that is alha numeric(String Datatype.eg AC2334565).
The mask value is set to "(###) ## ###".
But when i execute the code this is not applied to the data and it show plain with formatting.
Here is my code snippet:
objGridMaskedColumn = New Telerik.GridMaskedColumn
With objGridMaskedColumn
.UniqueName = cColNameTelephone
.HeaderText = "Auth Code"
.DataField = "AuthCode"
.Mask = "(###) ## ###"
End With
gridSample.MasterTableView.Columns.Add(objGridMaskedColumn)
My requirement is that i need to store the data in the database with any format.But while displaying the same text on grid i want to apply formatting to it.As per my understanding GridMasked Column was for that purpose.
The same can be seen in below demo for Masked Column: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx
Any help is greatly appreciated.
Regards,
Aayam