Window launch or rebind issues

9 posts, 0 answers
  1. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 12 Jan 2010 Link to this post

    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

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 Jan 2010 Link to this post

    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.
  3. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 15 Jan 2010 Link to this post

    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
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 Jan 2010 Link to this post

    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.
  5. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 18 Jan 2010 Link to this post

    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
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 Jan 2010 Link to this post

    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.
  7. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 24 Jan 2010 Link to this post

    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
  8. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jan 2010 Link to this post

    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.
  9. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 25 Jan 2010 Link to this post

    Hi:
    Yes, I am opening the RadWindow server-side.
    Phil
Back to Top