Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. RadWindow does not display

RadWindow does not display

Scheduled Pinned Locked Moved ASP.NET
cssquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Holdorf
    wrote on last edited by
    #1

    I have a RadGrid using a standard grid hierarchy and am trying to open a RadWindow from within the OnItemCommand event when a radbutton column item is selected. When I select the button the code below does run (checked using a break point); however, the radwindow does not open and the radgrid itself appears to do a partial postback. Any Ideas why the rad window does not display? The code is as follows: protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "ButtonEdit") { //opening window RadWindow newWindow = new RadWindow(); newWindow.ID = "RadWindow1"; newWindow.NavigateUrl = "Window1.aspx"; newWindow.VisibleOnPageLoad = true; RadWindowManager1.Windows.Add(newWindow); } } Also note, the RadWindowManager is valid as it is used elsewhere on the page with no problems. Thanks, Steve Holdorf

    Kornfeld Eliyahu PeterK 1 Reply Last reply
    0
    • S Steve Holdorf

      I have a RadGrid using a standard grid hierarchy and am trying to open a RadWindow from within the OnItemCommand event when a radbutton column item is selected. When I select the button the code below does run (checked using a break point); however, the radwindow does not open and the radgrid itself appears to do a partial postback. Any Ideas why the rad window does not display? The code is as follows: protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "ButtonEdit") { //opening window RadWindow newWindow = new RadWindow(); newWindow.ID = "RadWindow1"; newWindow.NavigateUrl = "Window1.aspx"; newWindow.VisibleOnPageLoad = true; RadWindowManager1.Windows.Add(newWindow); } } Also note, the RadWindowManager is valid as it is used elsewhere on the page with no problems. Thanks, Steve Holdorf

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      Hi, You wrote that RadGrid seem to do a partial post-back. You may check it by looking to IsPostBack property... If this is true (and older RadGrid has it own ajax and used it to partial post back independently from your declarations) than setting VisibleOnPageLoad will not work (no pageload...). In that case you mast render some js to open the window... May I suggest something? Use client side js to open RadWindow...

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is (V).

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups