Rating values are changed after postback in RadGrid

8 posts, 0 answers
  1. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 28 Jul 2010 Link to this post

    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:
    <telerik:GridTemplateColumn>
        <ItemTemplate>
            <%# Convert.ToDouble(Eval("Yuzde")) %>
        </ItemTemplate>
    </telerik:GridTemplateColumn>
    <telerik:GridRatingColumn DataField="Yuzde">
    </telerik:GridRatingColumn>
    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.
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 29 Jul 2010 Link to this post

    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
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 29 Jul 2010 Link to this post

    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.

    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
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 30 Jul 2010 Link to this post

    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
    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
  6. Barbaros Saglamtimur
    Barbaros Saglamtimur avatar
    110 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2010 Link to this post

    Well, what is the expected date for Q2 2010 SP1?
  7. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 02 Aug 2010 Link to this post

    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
    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
  8. Noel
    Noel avatar
    2 posts
    Member since:
    Feb 2014

    Posted 26 Sep 2014 Link to this post

    Hi there
    I have the same problem, but width the Telerik RadGrid. 

  9. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 01 Oct 2014 Link to this post

    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
     

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017