Menu Item Selection Required

13 posts, 0 answers
  1. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 27 Aug 2008 Link to this post

    Hi,

    We just bought Telerik control suite and working on Menu and Panel bar control. I wanted to know that, how can i get menu item 'Selected' after postback of page? ( If you have property for menu selection or use of CSS)

    Please send me an example code in C#, it would be helpful for me.

    Hope to hear you fast.

    Aamir
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 27 Aug 2008 Link to this post

    Hi Aamir,

    If you use the ItemClick event the clicked item is passed in the event arguments.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 28 Aug 2008 Link to this post

    Hi,

    Thanks for replying.

    Can you send me C# sample code, it will help me.

    Hope to hear you soon.

    Aamir
  4. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 29 Aug 2008 Link to this post

    Hi Aamir,

    Please, check the RadMenu Server-Side Events example.

    I hope this helps.
    Kind regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 01 Sep 2008 Link to this post

    Hi,

    In this example , it is showing the text of the item clicked.

    I was looking for ITEM SELECTION. Can you give me any example of item selection after postback?

    Aamir
  6. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 01 Sep 2008 Link to this post

    Hello Aamir,

    Perhaps this example will help you to get started.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 02 Sep 2008 Link to this post

    Hi,

    Given example working only with EnableEmbeddedSkins="true" , i am using 

    EnableEmbeddedSkins

    ="false" in my user control. Can we do Selection using CSS or any other way?

    Your code example always help me, can you send me code example using 

    EnableEmbeddedSkins

    ="false" .

    Thanks.

    Aamir

  8. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Sep 2008 Link to this post

    Hi Aamir,

    Do you mean you are using a custom skin? If yes you need to define a CSS class named rmFocused which is used to highlight the selected path.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 04 Sep 2008 Link to this post

    Hi Albert,

    Thanks for replying me.

    Yes, i am using Custom css. Could you send me working code in C# ?
    (i am using c# in code behind)

    If you send me working code for custom css in c#, will help alot.

    Hope to hear you soon.

    Aamir
  10. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 05 Sep 2008 Link to this post

    Hi Aamir,

    Did you add the rmFocused css class in your custom skin? Have you tried using the example I've sent you earlier? What are the problems you are currently experiencing?

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 07 Sep 2008 Link to this post

    Hi,

    I am using MAC css file for my menu control. rmFocused is already part of it. I have passed the Menu name in my URL as done in example code you sent to me and access that variable in my user control as shown in example code behind. But still menu is not getting selected after postback.

    I requested you to send me small application as example with custom skin, if you do it for me, would help me alot to solve it.

    Thanks for your reply.

    Aamir
  12. Aamir
    Aamir avatar
    19 posts
    Member since:
    Jul 2008

    Posted 10 Sep 2008 Link to this post

    Hi Albert,

    I am still waiting for your response. Please respond me on my last reply.

    Aamir
  13. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 11 Sep 2008 Link to this post

    Hi Aamir,

    Find attached the example. It works as expected without modifying anything (neither the example nor the skin). I wonder why it didn't work at your side.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top