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

Window launch or rebind issues

8 Answers 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 12 Jan 2010, 07:34 PM
Hi:

I am trying to launch a RadWindow from a Master/Detail RadGrid.  Once all editing is done would like to rebind the data in the source detail part of the grid.  Lauched grid like I have done in the past, but now need to disable viewstate.  Have JavaScript to tell host page that I am closing and should rebind (fine there too).  Host page is AjaxManager request event is posted and the data bind command is executed.
RadGrid1.DataBind() 
But the grid seem to be the same.  So is the above sufficient to bind the detail data? 
Secondly, I was thinking that ajaxs needs to understand to refresh that control, so I added RadAjaxManager to the grid and the manager and then the RadWindow stopped launching.
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
How can I keep the window launching?
Phil

8 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 15 Jan 2010, 12:05 PM
Hi Phil,

I would suggest to examine the Window Editing demo on our site - it shows a scenario similar to yours where RadGrid is rebound after RadWindow is closed. You can examine the code for every file used in that demo by clicking on the arrow next to the ASPX and code-behind pages in the Example Source Code & Description section.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Phil
Top achievements
Rank 2
answered on 15 Jan 2010, 07:00 PM
Already been there.  Already looked at them.
OK, lets assume the problem is that the Ajax is not configured correctly.  So, what would be causing the following to stop the Rad Window from launching?

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    <AjaxSettings>  
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
            <UpdatedControls>  
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
            </UpdatedControls>  
        </telerik:AjaxSetting>  
        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
            <UpdatedControls>  
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
            </UpdatedControls>  
        </telerik:AjaxSetting>  
    </AjaxSettings>  
</telerik:RadAjaxManager>  
 

But if it is like the following the RadWindow launches.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    <AjaxSettings>  
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
        </telerik:AjaxSetting>  
        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
        </telerik:AjaxSetting>  
    </AjaxSettings>  
</telerik:RadAjaxManager>  
 
Phil
0
Georgi Tunev
Telerik team
answered on 18 Jan 2010, 08:32 AM
Hi Phil,

The first configuration (the manager ajaxifies the grid and the grid ajaxifies itself) is the same used in the demo that I mentioned, so at this point I cannot say what can be the reason for the problem.
Please open a support ticket and send a small sample project that reproduces your setup and the problem itself - we will check it and do our best to help.


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Phil
Top achievements
Rank 2
answered on 18 Jan 2010, 03:44 PM
Hi Georgi:
I will try distilling it down.
It is a mystery to me.  I can step through and see it hit the launch window, but nothing happens.
Phil
0
Georgi Tunev
Telerik team
answered on 19 Jan 2010, 03:13 PM
OK Phil,

I hope that you will be able to find the reason for the problem. If you need assistance, just send me the isolated project and I will check it.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Phil
Top achievements
Rank 2
answered on 25 Jan 2010, 02:17 AM
Hi
Per the support ticket the web demo seems incomplete:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">   
    <AjaxSettings>   
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">   
            <UpdatedControls>   
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />   
            </UpdatedControls>   
        </telerik:AjaxSetting>   
        <telerik:AjaxSetting AjaxControlID="RadGrid1">   
            <UpdatedControls>   
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                <Telerik:AjaxUpdatedControl ControlID="RadWindowManager1" /> 
            </UpdatedControls>   
        </telerik:AjaxSetting>   
    </AjaxSettings>   
</telerik:RadAjaxManager>   
  
Which makes sense.  I suggest watching the video:
http://tv.telerik.com/aspnet/radajax/radajax-overview
Phil
0
Georgi Tunev
Telerik team
answered on 25 Jan 2010, 02:09 PM
Hello Phil,

I am not quite sure if I understand your last post correctly. If this is the configuration that is working on your side, I assume that you are opening the RadWindow from the server - only then you would need to ajaxify the manager. In the Grid Editing demo, RadWindow is opened from the client by using radopen() - that is why the manager is not ajaxified.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Phil
Top achievements
Rank 2
answered on 26 Jan 2010, 12:39 AM
Hi:
Yes, I am opening the RadWindow server-side.
Phil
Tags
Window
Asked by
Phil
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Phil
Top achievements
Rank 2
Share this question
or