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

Is there a way to select an item in SideDrawer from C#?

1 Answer 43 Views
SideDrawer
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jason
Top achievements
Rank 1
Jason asked on 31 Oct 2016, 10:38 PM

I have the TKSideDrawer configured and working correctly. I have a delegate that responds to "DidSelectItem" when a user selects an item from the menu. My question is - how can I manually select an item in the side drawer using C#? I have tried the "SelectItem()" method, but the DidSelectItem method doesn't get fired.

Can you point me to an example on how to accomplish this? What I want to do is after a user signs in to automatically select the first item in the menu.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 04 Nov 2016, 07:11 AM
Hello, Jason,

I apologize for the late response.

Yes, manual selection of item in TKSideDrawer doesn't invoke its delegate's DidSelectItem method. DidSelectItem, similar to UITableView delegate, is called when the user selects an item through the UI. This is expected behavior because since you are selecting an item manually you can easily manipulate the selected item. Could you, please, elaborate on why you need DidSelectItem to be called when you are selecting an item with code?

Regards,
Adrian
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
SideDrawer
Asked by
Jason
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or