This is a migrated thread and some comments may be shown as answers.

Bug in behavior handling of strings in radGrid

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ken Lassesen
Top achievements
Rank 2
Ken Lassesen asked on 19 Feb 2010, 12:49 AM
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.

    1 Answer, 1 is accepted

    Sort by
    0
    Ken Lassesen
    Top achievements
    Rank 2
    answered on 19 Feb 2010, 12:53 AM
    Ignore this report -- I found a bug in my code...
    Tags
    Grid
    Asked by
    Ken Lassesen
    Top achievements
    Rank 2
    Answers by
    Ken Lassesen
    Top achievements
    Rank 2
    Share this question
    or