How to hide the scrollbars in tileview

How can I hide the scrollbars in tileview.
I tried lv_page_set_scrlbar_mode(tileview, LV_SCROLLBAR_OFF)
But that gives me compile errors.

lv_obj_set_scrollbar_mode(obj, LV_SCROLLBAR_MODE_OFF);

Thanks worked perfectly