Hello,
DataFormatString works fine if I bind the datasource on the server, however after a client side bind DataFormatString no longer seems to be applied.
For Example: 18/10/2007 Changes to: Thu Oct 18 2007 00:00:00 GMT-0400 (Eastern Daylight Time) after a sort, paging etc.
Column Tag:
Do I need to reset the DataFormatString in the OnCommand Event Handler, how would I do that.
If not is there a workaround?
This is happening with all formated columns Decimals etc.
Thanks,
Marc
DataFormatString works fine if I bind the datasource on the server, however after a client side bind DataFormatString no longer seems to be applied.
For Example: 18/10/2007 Changes to: Thu Oct 18 2007 00:00:00 GMT-0400 (Eastern Daylight Time) after a sort, paging etc.
Column Tag:
<telerik:GridBoundColumn HeaderText="Date of Service" SortExpression="ClaimDateOfService" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" DataField="ClaimDateOfService" /> |
OnCommand:
function grdMemberClaims_Command(sender, args) |
{ |
var currentPageIndex = sender.get_masterTableView().get_currentPageIndex(); |
var pageSize = sender.get_masterTableView().get_pageSize(); |
var sortExpressions = sender.get_masterTableView().get_sortExpressions(); |
sender.get_masterTableView().clearSelectedItems(); |
if(sortExpressions.length > 0 && currentPageIndex > 0) |
sender.get_masterTableView().set_currentPageIndex(0); |
var sortExpressionssortExpressionsAsSQL = sortExpressions.toString(); |
MemberInquiryService.GetMemberClaimsByMemberId("<%=MemberId %>",currentPageIndex * pageSize, pageSize, sortExpressionsAsSQL, GetMemberClaimsByMemberIdCompleted); |
logDebug("MemberInquiryService", "GetMemberClaimsByMemberId", "MemberId=<%=MemberId %>" + " PageSize=" + pageSize + " ResultOffset=" +(currentPageIndex * pageSize) +" SortExpression="+sortExpressionsAsSQL); |
args.set_cancel(true); |
} |
Do I need to reset the DataFormatString in the OnCommand Event Handler, how would I do that.
If not is there a workaround?
This is happening with all formated columns Decimals etc.
Thanks,
Marc