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

Thread is closed for posting
2 posts, 0 answers
  1. Jason
    Jason avatar
    13 posts
    Member since:
    May 2008

    Posted 31 Oct 2016 Link to this post

    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.


  2. Adrian
    Adrian avatar
    174 posts

    Posted 04 Nov 2016 Link to this post

    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?

    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
Back to Top