set SelectedItemTemplate at page load

4 posts, 1 answers
  1. Jayesh Goyani
    Jayesh Goyani avatar
    2732 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
    2732 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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Martin
    Admin
    Martin avatar
    811 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
  5. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 27 Oct 2010 Link to this post

    thanx for your post.

    it work successfully.
Back to Top