Bug in behavior handling of strings in radGrid

2 posts, 0 answers
  1. Ken Lassesen
    Ken Lassesen avatar
    37 posts
    Member since:
    Nov 2008

    Posted 18 Feb 2010 Link to this post

    To deal with issues of translations for the radGrid I call a routine that looks at the value in various string properties and then do a translation if needed (i.e. the string would be something like %Resource%Mnemonic%) with routines to show the mnemonic on screen for debugging as [Resource].[Mnemonic].

    There's a difference in behaviour between how the Grid behaves with these two lines:
    • grid.MasterTableView.CommandItemSettings.RefreshText =
    • ResourceTranslation.TranslateField(grid.MasterTableView.CommandItemSettings.RefreshText);
    • grid.MasterTableView.Caption =
    • ResourceTranslation.TranslateField(grid.MasterTableView.Caption);
      •  

        I would expect them to behave the same...

         

        On the initial get I get:


         

        [CurrentPage].[AccountSummaryTable]

         

      and [MasterPage].[Grid_RefreshText]   
      as expected.

      On a post back, it changes to:
      [Error].[[CurrentPage].[AccountSummaryTable]]
      and [MasterPage].[Grid_RefreshText]   

      In other words -- one property appears to be getting it from the original properties and the other from the current properties.

      The bug is the inconsistancy. I can easily code around it -- but I thought it should be reported.
    • Ken Lassesen
      Ken Lassesen avatar
      37 posts
      Member since:
      Nov 2008

      Posted 18 Feb 2010 Link to this post

      Ignore this report -- I found a bug in my code...
    • UI for ASP.NET Ajax is Ready for VS 2017
    Back to Top