Barbaros Saglamtimur
Top achievements
Rank 1
Barbaros Saglamtimur
asked on 28 Jul 2010, 02:04 PM
Hi,
Both GridRatingColumn or RadRating control in a GridTemplateColumn values are changed after postback. I have attached screen shots for before-after postback. As you will see, values are not changed but ratings are. Here is my code:
I have put a button to trigger postback event outside of the grid. RadGrid uses NeedDataSource event to populate data. If I call RadGrid1.Rebind() method in Button1_Click event, everything works fine. What am I missing? Or is this a bug?
Thanks in advance.
Both GridRatingColumn or RadRating control in a GridTemplateColumn values are changed after postback. I have attached screen shots for before-after postback. As you will see, values are not changed but ratings are. Here is my code:
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<%# Convert.ToDouble(Eval("Yuzde")) %>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridRatingColumn
DataField
=
"Yuzde"
>
</
telerik:GridRatingColumn
>
Thanks in advance.
7 Answers, 1 is accepted
0
Hi barbaros saglamtimur,
I tried to reproduce the problem you describe, but to no avail. I have attached my test page for your reference. Could you please open a new support ticket and send me a simple running project that demonstrates this problem?
Regards,
Tsvetie
the Telerik team
I tried to reproduce the problem you describe, but to no avail. I have attached my test page for your reference. Could you please open a new support ticket and send me a simple running project that demonstrates this problem?
Regards,
Tsvetie
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 29 Jul 2010, 07:18 PM
Thanks for your replay.
Your solution have same problem, and I found why. Its because culture settings, decimal separator. My server is configured to use Turkish regional settings and Turkish decimal separator is comma. If you pass decimal values with comma RadRating fails. You can reproduce the problem if you change your culture settings to use Turkish (tr-TR). I can see it working without a problem when I change culture setting to en-US. One more note, changing culture at page level or application level works, other decimal formatting methods (like using IFromatProvider, or using new CultureInfo) doesnt work either.
Changing culture at page or application level is not acceptable, so I still need a solution.
Thanks
Your solution have same problem, and I found why. Its because culture settings, decimal separator. My server is configured to use Turkish regional settings and Turkish decimal separator is comma. If you pass decimal values with comma RadRating fails. You can reproduce the problem if you change your culture settings to use Turkish (tr-TR). I can see it working without a problem when I change culture setting to en-US. One more note, changing culture at page level or application level works, other decimal formatting methods (like using IFromatProvider, or using new CultureInfo) doesnt work either.
But interesting point is, it does not fail at first load with Turkish format, but after a postback.Changing culture at page or application level is not acceptable, so I still need a solution.
Thanks
0
Hello barbaros saglamtimur,
Thank you for the additional information - I was able to reproduce the problem following your instructions. We will fix the problem for Q2 2010 SP1.
Regards,
Tsvetie
the Telerik team
Thank you for the additional information - I was able to reproduce the problem following your instructions. We will fix the problem for Q2 2010 SP1.
Regards,
Tsvetie
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Barbaros Saglamtimur
Top achievements
Rank 1
answered on 01 Aug 2010, 10:37 AM
Well, what is the expected date for Q2 2010 SP1?
0
Hello,
The service pack release for RadControls for ASP.NET AJAX Q2 2010 will be released at the end of this month (August).
Best wishes,
Lini
the Telerik team
The service pack release for RadControls for ASP.NET AJAX Q2 2010 will be released at the end of this month (August).
Best wishes,
Lini
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Noel
Top achievements
Rank 1
answered on 26 Sep 2014, 01:10 PM
Hi there
I have the same problem, but width the Telerik RadGrid.
I have the same problem, but width the Telerik RadGrid.
0
Hi Noel,
I have tried reproducing the mentioned issue with the provided code form my colleague but to no avail. You can watch the short video test in the attached archive and then tell me if I am missing something.
Regards,
Danail Vasilev
Telerik
I have tried reproducing the mentioned issue with the provided code form my colleague but to no avail. You can watch the short video test in the attached archive and then tell me if I am missing something.
Regards,
Danail Vasilev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.