set SelectedItemTemplate at page load

4 posts, 1 answers
  1. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 21 Oct 2010 Link to this post

    hi,
    http://demos.telerik.com/aspnet-ajax/listview/examples/selecting/defaultcs.aspx

    i want to set one of the item selected (with selected SelectedItemTemplate) in Page_Load in above example.





  2. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 22 Oct 2010 Link to this post

    any one have a idea how can i solve above issue?
  3. Answer
    Martin
    Admin
    Martin avatar
    823 posts

    Posted 26 Oct 2010 Link to this post

    Hello Jayesh,

    You can use the SelectedIndexes colelction:

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RadListView1.SelectedIndexes.Add(0);
        }
    }

    I hope this helps.

    Regards,
    Martin
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  4. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 27 Oct 2010 Link to this post

    thanx for your post.

    it work successfully.
Back to Top