="1160px"
="RateID"
="true">
>
="control-column"
="control-column-header">
="DeleteRow();return false;"
/>
="Rate Code"
="430px">
="Category/UOM">
="Rate Type"
="30px">
="140px">
="MinRate"
="number-column-header"
="System.Double">
="MaxRate"
="Single">
My grid looks as given above.
1.After i enabled client rendering on grid i am getting Sys.FormatException as i have set DataFormatString to certain columns in my grid.
How can i fix this?
2.
grid.get_columns().get_column(0).set_hidden(
true);
I tried hiding certain columns in the grid as given above.
But this just hides the column header and not the cells in the column.
So i tried hiding the cells by
$(grid.get_rows().get_row(i).get_cell(0).get_element()).hide();
This messes up the CSS applied to the grid and the widths of the columns are totally messed up.
Can you please suggest me methods to get over this problems.
Thanks,
Divya
Hi Divya,
The issue with column hiding is most likely a a bug that has thus been fixed. Can you download the latest Service Release and retry it. The issue with the data format string is a limitation. There are more options for formatting on the server. On the client, we attempt to use Microsoft AJAX framework formatting, but not all are allowed. You may have to change the format string.
regards,David Young
Can you provide a solution soon so that our development is not halted.
I think this works. DataFormatString="{0:N2}". You could also try searching for it in MSDN for what is supported and not. I'm not super positive myselft.
http://msdn.microsoft.com/en-us/library/bb397701.aspx
-Dave
Which service release should we get so that the client hiding of columns happen properly?
Ok thanks Dave.
We have somehow worked around this problem by applying some hide class on client also when
adding data on server.
-best
Hi,
I was able to replicate this problem. The problem that had been fixed was rendering hidden columns from the server. The problem here is that no hidden css is generated in the row template from the server, and when the column is hidden, it's not udpated. So when you rebind on the client, the data cells reappear. This has been submitted internally as bug # 85736. If you set Hidden="false" on the aspx, a hidden css should be sent from the server and this scenario should work.
David,
I downloaded the latest service release and tried it.The column hiding is still a problem.
Can you provide a better solution?
-Divya