1

I added a column to the admin grid, to filter on a custom attribute. But this filter does not work properly.

When I filter on value "50" it also display all values with "150". How can I change that?

I use this admin grid code:

 $this->addColumn('type_staffel', array(
 'header' => $helper->__('type_staffel'),
 'width' => 100,
 'index' => 'type_staffel',
 ));
asked Nov 24, 2015 at 13:03
3
  • is type_staffel number? Commented Nov 24, 2015 at 13:05
  • @Abdul What do you mean with is number? Commented Nov 24, 2015 at 13:06
  • add 'type' => 'number' to filter with range value Commented Nov 24, 2015 at 13:09

1 Answer 1

3

define your column like this:

$this->addColumn('type_staffel', array(
 'header' => $helper->__('type_staffel'),
 'width' => 100,
 'index' => 'type_staffel',
 'type' => 'number'
));
answered Nov 24, 2015 at 13:05
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.