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

[Solved] GridMenuItem "not found"

1 Answer 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Santiago
Top achievements
Rank 1
Santiago asked on 15 Apr 2008, 06:26 PM
Hi,

After install the last version "prometheus future" the next function not work:

GridFilterMenu not found in the class tree.

Thank you.


public

void TraducirMenuFiltrosGrid(RadGrid grid)
{

GridFilterMenu menu = grid.FilterMenu;

foreach (GridMenuItem item in menu.Items)

{

//change the text for the menu item with text StartsWith

switch (item.Text)

{

case "NoFilter":

item.Text =

"Sin Filtro";

break;

case "Contains":

item.Text =

"Que contenga";

break;

case "DoesNotContain":

item.Text =

"Que no contenga";

break;

case "StartsWith":

item.Text =

"Comienza por";

break;

case "EndsWith":

item.Text =

"Finaliza por";

break;

case "EqualTo":

item.Text =

"Igual A";

break;

case "NotEqualTo":

item.Text =

"Distinto de";

break;

case "GreaterThan":

item.Text =

"Mayor que";

break;

case "LessThan":

item.Text =

"Menor que";

break;

case "GreaterThanOrEqualTo":

item.Text =

"Mayor o igual que";

break;

case "LessThanOrEqualTo":

item.Text =

"Menor o igual que";

break;

case "Between":

item.Text =

"Incluido entre";

break;

case "NotBetween":

item.Text =

"No incluido entre";

break;

case "IsEmpty":

item.Text =

"Campo vacio";

break;

case "NotIsEmpty":

item.Text =

"Campo con valor";

break;

case "IsNull":

item.Text =

"Valor nulo";

break;

case "NotIsNull":

item.Text =

"Con valor";

break;

}

}

}

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 16 Apr 2008, 02:37 PM
Hi Santiago,

The new FilteringMenu is actually RadMenu. You can access its items like this:

        GridFilterMenu menu = RadGrid1.FilterMenu;
        foreach (RadMenuItem item in menu.Items)
       {
          //change the item text the way you need
        }

I hope this helps.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Santiago
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or