Tollbar+window

3 posts, 0 answers
  1. Maksut
    Maksut avatar
    5 posts
    Member since:
    Jan 2012

    Posted 12 Mar 2012 Link to this post

    Hi. I add   radtoolbar. it has 2 buttons. 

    When I push the first button, I wanna do this code

     

     

     

     

    Vx.Windows[0].NavigateUrl = "number.aspx?no=" + no.Text;
                    Vx.Windows[0].VisibleOnPageLoad = true;


    Can I do? how?

    Sorry for my english.

    Thanks

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Mar 2012 Link to this post

    Hello,

    Try the following code.
    ASPX:
    <telerik:RadToolBar ID="RadToolBar1" runat="server" onbuttonclick="RadToolBar1_ButtonClick"  >
      <Items>
        <telerik:RadToolBarButton Text="RadToolBarButton1"  > </telerik:RadToolBarButton>
        <telerik:RadToolBarButton Text="RadToolBarButton2" ></telerik:RadToolBarButton>
      </Items>
    </telerik:RadToolBar>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
      <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server"></telerik:RadWindow>
      </Windows>
    </telerik:RadWindowManager>

    C#:
    protected void RadToolBar1_ButtonClick(object sender, Telerik.Web.UI.RadToolBarEventArgs e)
     {
      if (e.Item.Index == 0)
       {
        RadWindowManager1.Windows[0].NavigateUrl = "number.aspx?no=" + no.Text;
        RadWindowManager1.Windows[0].VisibleOnPageLoad = true;
       }
     }

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maksut
    Maksut avatar
    5 posts
    Member since:
    Jan 2012

    Posted 12 Mar 2012 Link to this post

    Thanks :) 

Back to Top