This is a migrated thread and some comments may be shown as answers.

rad window and grid

3 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
ehsan
Top achievements
Rank 1
ehsan asked on 15 Dec 2008, 11:56 AM
hi telerik

when i add radgrid in my code my radalert in (button1_click) doesnt work,
  <telerik:RadGrid ID="RadGrid1" runat="server"></telerik:RadGrid>

but when i remove radgrid from my code 
, it works fine( shows that alert) . i think that radgrid prevent to open radwindow.

this is my code :

<

 

body><form id="form1" runat="server"><div>

 

 

 


<
telerik:RadWindowManager ID="RadWindowManager1" runat="server" DestroyOnClose="True" Modal="True" KeepInScreenBounds="True"></telerik:RadWindowManager>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

 

 

<asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
<ContentTemplate>

    <
asp:Button ID="Button3" runat="server" onclick="Button1_Click" style="height: 26px" Text="alert" Width="56px" />

 

 

 

    <telerik:RadGrid ID="RadGrid1" runat="server"></telerik:RadGrid>

 

 

   </ContentTemplate>

 

 

 

</asp:UpdatePanel>

 

 

 

</div></form></body>
-------------------------------------------------------------------
and this is code behinde :
 

 

 

 

protected void Button1_Click(object sender, EventArgs e)

{

 

    ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "radalert('123', 200, 100,'MyAlert');", true);

 

}
---------------------------------------------------------------------
help!

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Dec 2008, 02:38 PM
Hi e,

I tried your code but was not able to reproduce the problem - please check the attached movie. This leads me to believe that the problem is somewhere else.
Please open a support ticket and send us a full, working project where this behavior can be reproduced - we will check it and do our best to help.


Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ehsan
Top achievements
Rank 1
answered on 20 Dec 2008, 07:50 AM
hi telerik
thank u about ur reply, i tested my project on another machines and it works ,
but in my machine i get this error :

Microsoft JScript runtime error: Sys.ScriptLoadFailedException: The script '/wn_project/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b' could not be loaded.

i think my browser have problem , i tested it on firefox 3.0 and ie7 but is not solved.
0
Accepted
Georgi Tunev
Telerik team
answered on 20 Dec 2008, 08:52 AM
Hello e,

Try replacing the RadScriptManager in your code with a standard asp:scriptmanager and see if the error persists.



Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
ehsan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
ehsan
Top achievements
Rank 1
Share this question
or